public class ReflectiveCommandHandler extends AbstractCommandHandler
CommandHandler
implementation that
uses reflection to determine the method to dispatch the command.Constructor and Description |
---|
ReflectiveCommandHandler(SqlLine sqlLine,
jline.console.completer.Completer completer,
String... cmds) |
ReflectiveCommandHandler(SqlLine sqlLine,
List<jline.console.completer.Completer> completers,
String... cmds) |
Modifier and Type | Method and Description |
---|---|
void |
execute(String line,
DispatchCallback callback)
Executes the specified command.
|
getHelpText, getName, getNames, getParameterCompleters, matches
public ReflectiveCommandHandler(SqlLine sqlLine, List<jline.console.completer.Completer> completers, String... cmds)
public void execute(String line, DispatchCallback callback)
CommandHandler
line
- The full command line to executecallback
- the callback to check or interrupt the actionCopyright © 2002–2018 Julian Hyde. All rights reserved.