| java.lang.Object henplus.CommandDispatcher
CommandDispatcher | public class CommandDispatcher implements ReadlineCompleter(Code) | | The Command Dispatcher for all commands.
|
addExecutionListener | public void addExecutionListener(ExecutionListener listener)(Code) | | Add an execution listener that is informed whenever a command
is executed.
Parameters: listener - an Execution Listener |
containsCommand | public boolean containsCommand(String cmd)(Code) | | |
endBatch | public void endBatch()(Code) | | |
execute | public void execute(SQLSession session, String givenCommand)(Code) | | execute the command given. This strips whitespaces and trailing
semicolons and calls the Command class.
|
getCommandNameFrom | public String getCommandNameFrom(String completeCmd)(Code) | | extracts the command from the commandstring. This even works, if there
is not delimiter between the command and its arguments (this is esp.
needed for the commands '?', '!', '@' and '@@').
|
getRegisteredCommandNames | public Iterator getRegisteredCommandNames()(Code) | | returns a sorted list of command names.
|
getRegisteredCommandNames | public Iterator getRegisteredCommandNames(String key)(Code) | | returns a sorted list of command names, starting with the first entry
matching the key.
|
getRegisteredCommands | public Iterator getRegisteredCommands()(Code) | | returns the commands in the sequence they have been added.
|
isInBatch | public boolean isInBatch()(Code) | | |
removeExecutionListener | public boolean removeExecutionListener(ExecutionListener listener)(Code) | | remove an execution listener.
Parameters: listener - the execution listener to be removed true, if this has been successful. |
shutdown | public void shutdown()(Code) | | |
startBatch | public void startBatch()(Code) | | |
unregister | public void unregister(Command c)(Code) | | unregister command. This is an 'expensive' operation, since we
go through the internal list until we find the command and remove
it. But since the number of commands is low and this is a rare
operation (the plugin-mechanism does this) .. we don't care.
|
unregisterAdditionalCommand | public void unregisterAdditionalCommand(String cmd)(Code) | | |
|
|