public abstract class AbstractCommandHandler extends Object
Constructor and Description |
---|
AbstractCommandHandler(SqlLine sqlLine,
String[] names,
String helpText,
List<jline.console.completer.Completer> completers) |
Modifier and Type | Method and Description |
---|---|
void |
execute(String line,
DispatchCallback dispatchCallback)
Executes the specified command.
|
String |
getHelpText() |
String |
getName() |
List<String> |
getNames() |
List<jline.console.completer.Completer> |
getParameterCompleters()
Returns the completers that can handle parameters.
|
String |
matches(String line)
Checks to see if the specified string can be dispatched to this
command.
|
public String getHelpText()
public String getName()
public String matches(String line)
line
- the command line to check.public List<jline.console.completer.Completer> getParameterCompleters()
public void execute(String line, DispatchCallback dispatchCallback)
line
- the full command line to execute.dispatchCallback
- the callback to check or interrupt the actionCopyright © 2015–2016 Julian Hyde. All rights reserved.