|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hive.cli.beeline.AbstractCommandHandler
public abstract class AbstractCommandHandler
An abstract implementation of CommandHandler.
| Constructor Summary | |
|---|---|
AbstractCommandHandler(BeeLine beeLine,
String[] names,
String helpText,
jline.Completor[] completors)
|
|
| Method Summary | |
|---|---|
boolean |
execute(String line)
Execute the specified command. |
String |
getHelpText()
|
String |
getName()
|
String[] |
getNames()
|
jline.Completor[] |
getParameterCompletors()
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 |
setParameterCompletors(jline.Completor[] parameterCompletors)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCommandHandler(BeeLine beeLine,
String[] names,
String helpText,
jline.Completor[] completors)
| Method Detail |
|---|
public String getHelpText()
public String getName()
public String[] getNames()
public String matches(String line)
line - the command line to check.
public void setParameterCompletors(jline.Completor[] parameterCompletors)
public jline.Completor[] getParameterCompletors()
public boolean execute(String line)
line - the full command line to execute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||