|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.ModeHandler
IRC mode handler.
Constructor Summary | |
ModeHandler(char[][] modes,
char[] prefix)
Create a new ModeHandler with empty mode. |
|
ModeHandler(java.lang.String mode,
char[][] modes,
char[] prefix)
Create a new ModeHandler with given mode. |
Method Summary | |
void |
apply(java.lang.String mode)
Apply a new mode on the current mode. |
int |
getLimit()
Get user limit (+l), if defined. |
java.lang.String |
getMode()
Get a string representation of the current mode. |
java.lang.String |
getPassword()
Get password (+k), if defined. |
boolean |
hasMode(char mode)
Test wether the given mode is set. |
void |
reset()
Reset current mode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModeHandler(char[][] modes, char[] prefix)
modes
- A,B,C,D known modes. This is an array of four arrays of chars.prefix
- prefix modes.public ModeHandler(java.lang.String mode, char[][] modes, char[] prefix)
mode
- initial mode.modes
- A,B,C,D know modes.prefix
- prefix modes.Method Detail |
public void reset()
public java.lang.String getPassword()
public int getLimit()
public void apply(java.lang.String mode)
mode
- new mode to apply.public boolean hasMode(char mode)
mode
- mode to test.public java.lang.String getMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |