public abstract class AbstractCommandHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected Throwable |
lastException |
Constructor and Description |
---|
AbstractCommandHandler(BeeLine beeLine,
String[] names,
String helpText,
jline.console.completer.Completer[] completors) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(String line)
Execute the specified command.
|
String |
getHelpText() |
Throwable |
getLastException()
Returns exception thrown for last command
|
String |
getName() |
String[] |
getNames() |
jline.console.completer.Completer[] |
getParameterCompleters()
Returns the completors that can handle parameters.
|
String |
matches(String line)
Check to see if the specified string can be dispatched to this
command.
|
void |
setParameterCompleters(jline.console.completer.Completer[] parameterCompleters) |
protected transient Throwable lastException
public String getHelpText()
public String getName()
public String[] getNames()
public String matches(String line)
line
- the command line to check.public void setParameterCompleters(jline.console.completer.Completer[] parameterCompleters)
public jline.console.completer.Completer[] getParameterCompleters()
public Throwable getLastException()
public boolean execute(String line)
line
- the full command line to execute.Copyright © 2017 The Apache Software Foundation. All rights reserved.