|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectf00f.net.irc.martyr.commands.ModeCommand
f00f.net.irc.martyr.commands.ChannelModeCommand
public class ChannelModeCommand
Defines the ChannelMode command. Can be used to send a Channel mode. For receiving, this defines which channel modes Martyr knows about and passes them on to the Channel object. Note that the actual logic of what happens when a mode arrives lies in the clientstate.Channel object.
| Field Summary |
|---|
| Fields inherited from class f00f.net.irc.martyr.commands.ModeCommand |
|---|
IDENTIFIER |
| Constructor Summary | |
|---|---|
ChannelModeCommand(java.lang.String channelName)
For sending a mode discovery. |
|
ChannelModeCommand(java.lang.String prefix,
java.lang.String channelName,
java.util.StringTokenizer params)
For receiving a mode command. |
|
| Method Summary | |
|---|---|
java.lang.String |
getChannel()
|
java.lang.String |
getPrefix()
|
FullNick |
getSender()
|
void |
makeModes()
|
InCommand |
parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
Shouldn't be called, as ModeCommand should be responsible for parsing and creating this class. |
java.lang.String |
render()
Should not be called, as ModeCommand doesn't actually represent a command. |
java.lang.String |
renderParams()
|
boolean |
updateClientState(ClientState state)
Passes the modes on to the clientstate.Channel object. |
| Methods inherited from class f00f.net.irc.martyr.commands.ModeCommand |
|---|
getAttribute, getAttributeKeys, getIrcIdentifier, getSourceString, getState, parseModes, registerMode, selfRegister, setSourceString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelModeCommand(java.lang.String prefix,
java.lang.String channelName,
java.util.StringTokenizer params)
prefix - Currently unused prefix stringchannelName - Channel that the mode change is in reference toparams - List of params to be parsedpublic ChannelModeCommand(java.lang.String channelName)
channelName - Channel that the mode change is in reference to| Method Detail |
|---|
public void makeModes()
public InCommand parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
parse in interface InCommandparse in class ModeCommandprefix - Prefix of the commandidentifier - ID of the commandparams - Parameters of the command
public java.lang.String render()
ModeCommand
render in interface OutCommandrender in class ModeCommandpublic java.lang.String renderParams()
public java.lang.String getChannel()
public FullNick getSender()
public java.lang.String getPrefix()
public boolean updateClientState(ClientState state)
updateClientState in interface InCommandupdateClientState in class ModeCommandstate - Client state to be updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||