public abstract class AbstractCommandInterpreter extends Object implements CommandInterpreter
| Constructor and Description |
|---|
AbstractCommandInterpreter()
Returns a new, empty interpreter.
|
AbstractCommandInterpreter(Collection<SkbShellCommand> commands)
Returns a new interpreter set for a collection of commands.
|
AbstractCommandInterpreter(SkbShellCommand command)
Returns a new interpreter set for a single command.
|
AbstractCommandInterpreter(SkbShellCommand[] commands)
Returns a new interpreter set for an array of commands.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,SkbShellCommand> |
getCommands()
Returns the mapping of commands to
SkbShellCommand this interpreter does handle. |
Set<String> |
getCommandStrings()
Returns the set of commands this interpreter does handle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterpretCommandpublic AbstractCommandInterpreter()
public AbstractCommandInterpreter(SkbShellCommand command)
command - single command for the interpreterpublic AbstractCommandInterpreter(SkbShellCommand[] commands)
commands - array of commands for the interpreter, ignored if null and every member of the array that is null is ignored as wellpublic AbstractCommandInterpreter(Collection<SkbShellCommand> commands)
commands - collection of commands for the interpreter, ignored if null and every member of the array that is null is ignored as wellpublic Set<String> getCommandStrings()
CommandInterpretergetCommandStrings in interface CommandInterpreterpublic Map<String,SkbShellCommand> getCommands()
CommandInterpreterSkbShellCommand this interpreter does handle.getCommands in interface CommandInterpreterCopyright © 2010–2017. All rights reserved.