|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--org.adougou.cline.CommandRegister
This class is used internally by the BasePrompt to maintain a table of registered commands. You should never be required to interact with it using the cline package.
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
CommandRegister()
|
|
| Method Summary | |
void |
add(Command command)
|
void |
add(ICLinePackage ci)
Registers an entire Java package for use with the command line. |
void |
execute(java.lang.String command)
Parses a string containing a command name and arguments and then executes the command if it was well structured (the string 'command' will be parsed - looking for the name of the command and any arguments required for that command). |
void |
exit()
|
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CommandRegister()
| Method Detail |
public final void add(Command command)
public void add(ICLinePackage ci)
public void exit()
public void execute(java.lang.String command)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||