org.jext.console.commands
Class Command

java.lang.Object
  extended by org.jext.console.commands.Command
Direct Known Subclasses:
ChangeDirCommand, ClearCommand, EvalCommand, ExitCommand, FileCommand, HelpCommand, HomeCommand, HttpCommand, JythonCommand, ListCommand, PwdCommand, RunCommand

public abstract class Command
extends java.lang.Object

The Command class is an empty implementation of a console command. The commands list is a linked list.

Author:
Romain Guy

Field Summary
 Command next
           
 
Constructor Summary
Command()
           
 
Method Summary
abstract  java.lang.String getCommandName()
          Return the command name.
abstract  java.lang.String getCommandSummary()
          Return the command summary.
abstract  boolean handleCommand(Console console, java.lang.String command)
          Handles a command given by the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public Command next
Constructor Detail

Command

public Command()
Method Detail

getCommandName

public abstract java.lang.String getCommandName()
Return the command name. Displayed in console help summary.


getCommandSummary

public abstract java.lang.String getCommandSummary()
Return the command summary. Displayed in console help summary.


handleCommand

public abstract boolean handleCommand(Console console,
                                      java.lang.String command)
Handles a command given by the console. If the command can be handled, return true, false otherwise.



Copyright ? 2002 Romain Guy.