irc
Class CTCPInterpretor

java.lang.Object
  |
  +--irc.IRCObject
        |
        +--irc.RootInterpretor
              |
              +--irc.BasicInterpretor
                    |
                    +--irc.CTCPInterpretor
All Implemented Interfaces:
Interpretor

public class CTCPInterpretor
extends BasicInterpretor

The CTCP interpretor.


Field Summary
protected  CTCPFilter _filter
          The CTCPFilter.
 
Fields inherited from class irc.RootInterpretor
_next, _parser
 
Fields inherited from class irc.IRCObject
_ircConfiguration
 
Constructor Summary
CTCPInterpretor(IRCConfiguration config, Interpretor next, CTCPFilter filter)
          Create a new CTCPInterpretor.
 
Method Summary
protected  void handleCommand(Source source, java.lang.String cmd, java.lang.String[] parts, java.lang.String[] cumul)
          Handle the received command.
 
Methods inherited from class irc.RootInterpretor
addLast, getNextInterpretor, isInside, say, sendString, setNextInterpretor, test
 
Methods inherited from class irc.IRCObject
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface irc.Interpretor
addLast, getNextInterpretor, isInside, sendString, setNextInterpretor
 

Field Detail

_filter

protected CTCPFilter _filter
The CTCPFilter.

Constructor Detail

CTCPInterpretor

public CTCPInterpretor(IRCConfiguration config,
                       Interpretor next,
                       CTCPFilter filter)
Create a new CTCPInterpretor.

Parameters:
config - global configuration.
next - next interpretor to use if command is unknown.
filter - CTCPFilter to use.
Method Detail

handleCommand

protected void handleCommand(Source source,
                             java.lang.String cmd,
                             java.lang.String[] parts,
                             java.lang.String[] cumul)
Description copied from class: BasicInterpretor
Handle the received command.

Overrides:
handleCommand in class BasicInterpretor
Parameters:
source - the source that emitted the command.
cmd - the hole command line.
parts - the parsed command line.
cumul - the cumul parsed command line.