|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectShellCommandTable
A ShellCommandTable object maintains a dispatch table of ShellCommand objects keyed by the command names used to invoke them. To add a new shell command to the table, install it from method fillTable().
ShellCommand| Constructor Summary | |
ShellCommandTable()
Construct and fill a shell command table. |
|
| Method Summary | |
String[] |
getCommandNames()
Get an array of the command names. |
ShellCommand |
lookup(String key)
Get a ShellCommand, given the command name key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShellCommandTable()
| Method Detail |
public String[] getCommandNames()
public ShellCommand lookup(String key)
key - the name associated with the command we're
looking for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||