org.lsst.ccs.shell
Class CommandTable
java.lang.Object
org.lsst.ccs.shell.CommandTable
public class CommandTable
- extends Object
Command table is responsible for managing a lot of ShellCommands and is like a dictionary,
because its main function is to return a command by name.
- Author:
- ASG
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandTable
public CommandTable(CommandNamer namer)
getNamer
public CommandNamer getNamer()
getCommandTable
public List<ShellCommand> getCommandTable()
addShellCommand
public void addShellCommand(ShellCommand command)
addMethod
public void addMethod(Method method,
Object handler,
String prefix)
commandsByName
public List<ShellCommand> commandsByName(String discriminator)
lookupCommand
public ShellCommand lookupCommand(String discriminator,
List<Token> tokens)
throws CLIException
- Throws:
CLIException
Copyright © 2013 LSST. All Rights Reserved.