|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jackofalltrades.irc.IrcCommand
Represents a message received from, or to be sent to, an IRC server.
| Constructor Summary | |
IrcCommand()
Creates a new instance of IrcCommand. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name)
Creates a new named instance of IrcCommand. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params)
Creates a new named instance of IrcCommand with the
specified parameters and prefix. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params,
java.lang.String trailing)
Creates a new named instance of IrcCommand with the
specified parameters and a "trailing" message. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params,
java.lang.String trailing,
java.util.List ctcpCommands)
Creates a new named instance of IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params)
Creates a new named instance of IrcCommand with the
specified parameters. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params,
java.lang.String trailing)
Creates a new named instance of IrcCommand with the
specified parameters and a "trailing" message. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
Creates a new named instance of IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
Creates a new named instance of IrcCommand with the
"trailing" message and CTCP commands. |
|
IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String trailing,
java.util.List ctcpCommands)
Creates a new named instance of IrcCommand with the
"trailing" message and CTCP commands. |
|
IrcCommand(java.lang.String name)
Creates a new named instance of IrcCommand. |
|
IrcCommand(java.lang.String name,
java.util.List params)
Creates a new named instance of IrcCommand with the
specified parameters. |
|
IrcCommand(java.lang.String name,
java.util.List params,
java.lang.String trailing)
Creates a new named instance of IrcCommand with the
specified parameters and a "trailing" message. |
|
IrcCommand(java.lang.String name,
java.util.List params,
java.lang.String trailing,
java.util.List ctcpCommands)
Creates a new named instance of IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands. |
|
IrcCommand(java.lang.String name,
java.lang.String[] params)
Creates a new named instance of IrcCommand with the
specified parameters. |
|
IrcCommand(java.lang.String name,
java.lang.String[] params,
java.lang.String trailing)
Creates a new named instance of IrcCommand with the
specified parameters and a "trailing" message. |
|
IrcCommand(java.lang.String name,
java.lang.String[] params,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
Creates a new named instance of IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands. |
|
IrcCommand(java.lang.String name,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
Creates a new named instance of IrcCommand with the
"trailing" message and CTCP commands. |
|
IrcCommand(java.lang.String name,
java.lang.String trailing,
java.util.List ctcpCommands)
Creates a new named instance of IrcCommand with the
"trailing" message and CTCP commands. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Determines if o is equivalent to the current object. |
CtcpCommand |
getCtcpCommand(int index)
Indexed getter for property ctcpCommand. |
java.util.List |
getCtcpCommands()
Getter for property ctcpCommands. |
java.lang.String |
getName()
Returns the name of the command. |
java.lang.String |
getParam(int index)
Returns the String parameter at the specified index. |
java.util.List |
getParams()
Returns a copy of the java.util.List of String
parameters. |
IrcPrefix |
getPrefix()
Returns the ident prefix of the message's originator. |
java.lang.String |
getTrailing()
Returns the "trailing" portion of the message. |
boolean |
hasCtcpCommands()
Indicates whether the current IrcCommand contains any
CtcpCommands. |
int |
hashCode()
Returns a hashcode of the current object. |
boolean |
hasParams()
Indicates whether the current IrcCommand has parameters. |
void |
setCtcpCommands(java.util.List ctcpCommands)
Setter for property ctcpCommands. |
void |
setName(java.lang.String name)
Sets the name of the command. |
void |
setParams(java.util.List params)
Sets the java.util.List of String parameters. |
void |
setPrefix(IrcPrefix prefix)
Sets the ident prefix of the message's originator. |
void |
setTrailing(java.lang.String trailing)
Sets the "trailing" portion of the message. |
java.lang.String |
toString()
Returns a string representation of the current object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IrcCommand()
IrcCommand.
public IrcCommand(java.lang.String name)
IrcCommand.
name - the name of the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.lang.String[] params)
IrcCommand with the
specified parameters.
name - the name of the command.params - the parameters for the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.util.List params)
IrcCommand with the
specified parameters.
name - the name of the command.params - the parameters for the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.lang.String[] params,
java.lang.String trailing)
IrcCommand with the
specified parameters and a "trailing" message.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.util.List params,
java.lang.String trailing)
IrcCommand with the
specified parameters and a "trailing" message.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
IrcCommand with the
"trailing" message and CTCP commands.
name - the name of the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.lang.String trailing,
java.util.List ctcpCommands)
IrcCommand with the
"trailing" message and CTCP commands.
name - the name of the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.lang.String[] params,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(java.lang.String name,
java.util.List params,
java.lang.String trailing,
java.util.List ctcpCommands)
IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name)
IrcCommand. The prefix
specified indicates from whom the command is coming.
prefix - the ident prefix of the message originator.name - the name of the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params)
IrcCommand with the
specified parameters and prefix.
prefix - the command prefix.name - the name of the command.params - the parameters for the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params)
IrcCommand with the
specified parameters.
name - the name of the command.params - the parameters for the command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params,
java.lang.String trailing)
IrcCommand with the
specified parameters and a "trailing" message.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params,
java.lang.String trailing)
IrcCommand with the
specified parameters and a "trailing" message.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
IrcCommand with the
"trailing" message and CTCP commands.
name - the name of the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String trailing,
java.util.List ctcpCommands)
IrcCommand with the
"trailing" message and CTCP commands.
name - the name of the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.lang.String[] params,
java.lang.String trailing,
CtcpCommand[] ctcpCommands)
IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.
public IrcCommand(IrcPrefix prefix,
java.lang.String name,
java.util.List params,
java.lang.String trailing,
java.util.List ctcpCommands)
IrcCommand with the
specified parameters, a "trailing" message, and CTCP commands.
name - the name of the command.params - the parameters for the command.trailing - the "trailing" portion of the command. (aka. the 15th
parameter.)ctcpCommands - the CTCP command to send with the current command.
java.lang.IllegalArgumentException - if name is null
or blank.| Method Detail |
public IrcPrefix getPrefix()
public void setPrefix(IrcPrefix prefix)
prefix - the new ident prefix.public java.lang.String getName()
public void setName(java.lang.String name)
name - the new command name.
java.lang.IllegalArgumentException - if name is null
or blank.public java.util.List getParams()
java.util.List of String
parameters.
public void setParams(java.util.List params)
java.util.List of String parameters.
params - the new parameter java.util.List.public java.lang.String getParam(int index)
String parameter at the specified index.
index - the zero-based index of the parameter to be returned.
index or null.public boolean hasParams()
IrcCommand has parameters.
public java.lang.String getTrailing()
public void setTrailing(java.lang.String trailing)
trailing - the message's new "trailing" portion.public java.util.List getCtcpCommands()
public void setCtcpCommands(java.util.List ctcpCommands)
ctcpCommands - New value of property ctcpCommands.public boolean hasCtcpCommands()
IrcCommand contains any
CtcpCommands.
IrcCommand does have
CtcpCommand objects, otherwise false.public CtcpCommand getCtcpCommand(int index)
index - Index of the property.
index.public boolean equals(java.lang.Object o)
o is equivalent to the current object.
o - the object to compare.
o is equivalent to the current object,
otherwise, false.public int hashCode()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||