public abstract class AbstractCommandHandler
extends java.lang.Object
Constructor and Description |
---|
AbstractCommandHandler(BeeLine beeLine,
java.lang.String[] names,
java.lang.String helpText,
jline.Completor[] completors) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String line)
Execute the specified command.
|
java.lang.String |
getHelpText() |
java.lang.String |
getName() |
java.lang.String[] |
getNames() |
jline.Completor[] |
getParameterCompletors()
Returns the completors that can handle parameters.
|
java.lang.String |
matches(java.lang.String line)
Check to see if the specified string can be dispatched to this
command.
|
void |
setParameterCompletors(jline.Completor[] parameterCompletors) |
public AbstractCommandHandler(BeeLine beeLine, java.lang.String[] names, java.lang.String helpText, jline.Completor[] completors)
public java.lang.String getHelpText()
public java.lang.String getName()
public java.lang.String[] getNames()
public java.lang.String matches(java.lang.String line)
line
- the command line to check.public void setParameterCompletors(jline.Completor[] parameterCompletors)
public jline.Completor[] getParameterCompletors()
public boolean execute(java.lang.String line)
line
- the full command line to execute.Copyright © 2012 The Apache Software Foundation