|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object f00f.net.irc.martyr.commands.RawCommand
public class RawCommand
Constructor Summary | |
---|---|
RawCommand(java.lang.String raw)
Tries to use the first "word" in the command as the identifier. |
|
RawCommand(java.lang.String identifier,
java.lang.String parameters)
The rendered command will be identifier + " " +
parameters . |
Method Summary | |
---|---|
java.lang.String |
getIrcIdentifier()
Returns the identifier, if supplied, or null. |
java.lang.String |
render()
Simply returns the string given in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawCommand(java.lang.String raw)
raw
- Raw command to send to serverpublic RawCommand(java.lang.String identifier, java.lang.String parameters)
identifier + " " +
parameters
. This constructure simply allows a correct
response to the getIrcIdentifier
method.
identifier
- Command identifierparameters
- Parameters to passMethod Detail |
---|
public java.lang.String getIrcIdentifier()
getIrcIdentifier
in interface Command
public java.lang.String render()
render
in interface OutCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |