|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectShellCommand
Model those features common to all ShellCommands. Each concrete extension of this class provides a constructor and an implementation for method doIt.
| Constructor Summary | |
protected |
ShellCommand(String helpString)
A constructor for commands having no arguments. |
protected |
ShellCommand(String helpString,
String argString)
A constructor, always called (as super()) by the subclass. |
| Method Summary | |
abstract void |
doIt(StringTokenizer args,
Shell sh)
Execute the command. |
String |
getArgString()
The argument string prototype. |
String |
getHelpString()
Help for this command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ShellCommand(String helpString)
helpString - a brief description of what the command does.
protected ShellCommand(String helpString,
String argString)
helpString - a brief description of what the command does.argString - a prototype illustrating the required arguments.| Method Detail |
public abstract void doIt(StringTokenizer args,
Shell sh)
args - the remainder of the command line.sh - the current shellpublic String getArgString()
public String getHelpString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||