| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.interpreter.SimpleCommandManager |
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.util.interpreter.ICommandNode
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SimpleCommandManager() | |||||||||||
| SimpleCommandManager(ICommandManager parent, String name) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ICommandNode | addChild(ICommandNode node) | ||||||||||
| ExecutionResult | execute(String line) | ||||||||||
| ExecutionResult |
execute(List<InputToken> tokens)
Execute the command.
| ||||||||||
| List<ICommandNode> | getChildren() | ||||||||||
| String |
getHelp()
Retrieve a short help that describes the command
| ||||||||||
| String |
getName()
Retrieve the name of the command (used to invoke the command)
| ||||||||||
| int | getOptions() | ||||||||||
| ICommandManager | getParent() | ||||||||||
| List<InputToken> |
parseTokenString(String line)
@return
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ExecutionResult |
postCheck()
Override to do command post-execution check.
| ||||||||||
| ExecutionResult |
preCheck()
Override to do command pre-execution check.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.util.interpreter.ICommandManager
| |||||||||||
From interface
com.pnfsoftware.jeb.util.interpreter.ICommandNode
| |||||||||||
Retrieve a short help that describes the command
Retrieve the name of the command (used to invoke the command)
Override to do command post-execution check. Only executed if command execution succeeded. The default implementation does nothing.
Override to do command pre-execution check. The default implementation does nothing.