java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.interpreter.AbstractCommandInterpreter |
Skeleton for a command interpreter.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractCommandInterpreter() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutocompletionResult |
autoComplete(String command)
Provide a best-effort completion suggestion for the provided partial command.
| ||||||||||
String |
getBanner()
Retrieve the interpreter's banner/logo string.
| ||||||||||
String |
getDescription()
Get the long name or description.
| ||||||||||
void |
prepare()
Interpreters may place resource intensive preparation operations here.
| ||||||||||
boolean |
shouldDisplayRawResults()
Determine whether this interpreter prefers that the results of
executed commands be printed as-is. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.util.interpreter.ICommandInterpreter
|
Provide a best-effort completion suggestion for the provided partial command.
Retrieve the interpreter's banner/logo string.
Get the long name or description.
Interpreters may place resource intensive preparation operations here. Clients may optionally
call this method before invoking either: executeCommand(String)
or
autoComplete(String)
. Clients may decide to not call thsi method. An interpreter
implementation must handle cases where prepare() is never called, sometimes called, called
multiple times, etc.
Determine whether this interpreter prefers that the results of executed commands
be printed as-is. Clients decide whether or not they want to follow this
guideline.