f00f.net.irc.martyr.commands
Class UserModeCommand
java.lang.Object
f00f.net.irc.martyr.commands.ModeCommand
f00f.net.irc.martyr.commands.UserModeCommand
- All Implemented Interfaces:
- Command, InCommand, OutCommand
public class UserModeCommand
- extends ModeCommand
Defines a user MODE command.
Constructor Summary |
UserModeCommand(java.lang.String prefix,
java.lang.String userStr,
java.util.StringTokenizer tokens)
|
Method Summary |
FullNick |
getSender()
|
FullNick |
getUser()
|
InCommand |
parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
Should not be called, as ModeCommand does the parsing and instantiation
of this class. |
java.lang.String |
render()
Should not be called, as ModeCommand doesn't actually represent a
command. |
java.lang.String |
toString()
|
boolean |
updateClientState(ClientState state)
Does nothing, as this is a factory command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserModeCommand
public UserModeCommand(java.lang.String prefix,
java.lang.String userStr,
java.util.StringTokenizer tokens)
parse
public InCommand parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
- Should not be called, as ModeCommand does the parsing and instantiation
of this class.
- Specified by:
parse
in interface InCommand
- Overrides:
parse
in class ModeCommand
- Parameters:
prefix
- Prefix of the commandidentifier
- ID of the commandparams
- Parameters of the command
- Returns:
- InCommand instance for parsed command
render
public java.lang.String render()
- Description copied from class:
ModeCommand
- Should not be called, as ModeCommand doesn't actually represent a
command. Use UserModeCommand or ChannelModeCommand instead.
- Specified by:
render
in interface OutCommand
- Overrides:
render
in class ModeCommand
- Returns:
- Rendered string
getUser
public FullNick getUser()
getSender
public FullNick getSender()
updateClientState
public boolean updateClientState(ClientState state)
- Description copied from class:
ModeCommand
- Does nothing, as this is a factory command.
- Specified by:
updateClientState
in interface InCommand
- Overrides:
updateClientState
in class ModeCommand
- Parameters:
state
- Client state to be updated
- Returns:
- True or false if changes were made
toString
public java.lang.String toString()
- Overrides:
toString
in class ModeCommand
Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.