f00f.net.irc.martyr.commands
Class GenericCommand

java.lang.Object
  |
  +--f00f.net.irc.martyr.commands.GenericInCommand
        |
        +--f00f.net.irc.martyr.commands.GenericCommand
All Implemented Interfaces:
Command, InCommand, OutCommand
Direct Known Subclasses:
InviteCommand, JoinCommand, KickCommand, MessageCommand, NickCommand, NoticeCommand, PartCommand, PingCommand, QuitCommand, TopicCommand

public abstract class GenericCommand
extends GenericInCommand
implements OutCommand

Defines a generic command. Most commands will simply have to override the getIrcIdentifier method and implement the parse and render methods using convenience methods.


Fields inherited from class f00f.net.irc.martyr.commands.GenericInCommand
attributes
 
Constructor Summary
GenericCommand()
           
 
Method Summary
 java.lang.String render()
          Forms a string appropriate to send to the server.
abstract  java.lang.String renderParams()
          Renders the parameters of this command.
 
Methods inherited from class f00f.net.irc.martyr.commands.GenericInCommand
getAttribute, getAttributeKeys, getIntParameter, getParameter, getSourceString, getState, parse, selfRegister, setAttribute, setSourceString, updateClientState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface f00f.net.irc.martyr.Command
getIrcIdentifier
 

Constructor Detail

GenericCommand

public GenericCommand()
Method Detail

render

public java.lang.String render()
Forms a string appropriate to send to the server. All commands can be sent by the client.
Specified by:
render in interface OutCommand

renderParams

public abstract java.lang.String renderParams()
Renders the parameters of this command.


Copyright © 2000,2001,2002,2003 f00f networks.