public interface CommandHandler
execute(String, DispatchCallback)
method after
determining that the command is appropriate with the
matches(String)
method.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.
|
String getName()
String getHelpText()
String matches(String line)
line
- The command line to checkvoid execute(String line, DispatchCallback dispatchCallback)
line
- The full command line to executedispatchCallback
- the callback to check or interrupt the actionList<jline.console.completer.Completer> getParameterCompleters()
Copyright © 2002–2018 Julian Hyde. All rights reserved.