|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Command
The Command class serves as the abstract base class for each of the commands. This class includes methods for executing the current command, returning the name of a command, and expanding the arguments of a command to include specified variables, if any.
| Constructor Summary | |
Command()
|
|
| Method Summary | |
abstract java.lang.String |
execute(java.lang.String args)
Executes the current command and returns the result in the form of a String object. |
java.lang.String |
ExpandArgs(java.lang.String a)
Expands the arguments of a command to include variables (if any) specified by the character '$' and returns the resulting expanded argument. |
abstract java.lang.String |
getDescription()
Returns a description of the command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Command()
| Method Detail |
public abstract java.lang.String execute(java.lang.String args)
String object.
args - arguments of the current command.
public abstract java.lang.String getDescription()
public java.lang.String ExpandArgs(java.lang.String a)
a - the arguments to be expanded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||