irc
Interface Interpretor

All Known Implementing Classes:
BasicInterpretor, RootInterpretor

public interface Interpretor

A source interpretor.


Method Summary
 void addLast(Interpretor in)
          Add the given interpretor at the end of this interpretor chain.
 Interpretor getNextInterpretor()
          Get the next interpretor.
 boolean isInside(Interpretor in)
          Check whether the given interpretor is already in the interpretor chain.
 void sendString(Source s, java.lang.String str)
          Send the given string to the server.
 void setNextInterpretor(Interpretor next)
          Set the next interpretor.
 

Method Detail

sendString

public void sendString(Source s,
                       java.lang.String str)
Send the given string to the server.

Parameters:
s - the source.
str - the string to send.

setNextInterpretor

public void setNextInterpretor(Interpretor next)
Set the next interpretor.

Parameters:
next - interpretor to use. May be null.

getNextInterpretor

public Interpretor getNextInterpretor()
Get the next interpretor.

Returns:
the next interpretor, or null if this interpretor is the last.

isInside

public boolean isInside(Interpretor in)
Check whether the given interpretor is already in the interpretor chain.

Parameters:
in - the interpretor to check.
Returns:
true if in is in the chain, false otherwise.

addLast

public void addLast(Interpretor in)
Add the given interpretor at the end of this interpretor chain. If in is already in the chain, nothing is done.

Parameters:
in - interpretor to add.