org.xnap.chat.command
Class AbstractMessageCommand

java.lang.Object
  extended by org.xnap.cmdl.AbstractCommand
      extended by org.xnap.chat.command.AbstractMessageCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
OpenNapMessageCommand, PircBotMessageCommand

public abstract class AbstractMessageCommand
extends AbstractCommand

This class provides the default join action.


Field Summary
 
Fields inherited from interface org.xnap.cmdl.Command
ALIASES, CMD, LONG_HELP, PARAMETER, SHORT_HELP
 
Constructor Summary
AbstractMessageCommand()
           
 
Method Summary
 void execute(java.lang.String command, Console console)
          Executes this command with argv parameters.
abstract  void send(Console console, java.lang.String nick, java.lang.String message)
           
 
Methods inherited from class org.xnap.cmdl.AbstractCommand
getAliases, getCommand, getInt, getLongHelp, getParameter, getShortHelp, putValue, tokenize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMessageCommand

public AbstractMessageCommand()
Method Detail

execute

public void execute(java.lang.String command,
                    Console console)
             throws SyntaxException
Description copied from interface: Command
Executes this command with argv parameters.

Parameters:
command - the command to execute
Throws:
SyntaxException

send

public abstract void send(Console console,
                          java.lang.String nick,
                          java.lang.String message)


Copyright © 2001-2005 XNap Team. All Rights Reserved.