public abstract class Command
extends java.lang.Object
Command
class is an empty implementation of a console
command. The commands list is a linked list.Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Command next
public abstract java.lang.String getCommandName()
public abstract java.lang.String getCommandSummary()
public abstract boolean handleCommand(Console console, java.lang.String command)
Copyright ? 2002 Romain Guy.