|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.MultiModeHandler
Combined IRC mode handler.
Constructor Summary | |
MultiModeHandler(java.lang.String code,
char[][] modes,
char[] prefix)
Create a new ModeHandler with empty mode. |
Method Summary | |
java.lang.String |
getMode()
Get current mode to handle. |
java.lang.String |
getParameter()
Get the current parameter, if defined. |
boolean |
hasParameter()
Check whether the current mode has a parameter. |
boolean |
isModeA()
Check wether the current mode comes from the A list. |
boolean |
isPrefix()
Check wether the current mode comes from the prefix list instead of the A,B,C,D list. |
void |
next()
Handle the next mode. |
boolean |
terminated()
Check whether there is more modes to handle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiModeHandler(java.lang.String code, char[][] modes, char[] prefix)
modes
- A,B,C,D know modes. This is an array of four arrays of chars.prefix
- prefix modes.Method Detail |
public boolean terminated()
public void next()
public java.lang.String getMode()
public boolean hasParameter()
public java.lang.String getParameter()
public boolean isPrefix()
public boolean isModeA()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |