class RegisterCallbackCommand extends Command
Modifier and Type | Field and Description |
---|---|
private ConsoleCallback |
callback |
Constructor and Description |
---|
RegisterCallbackCommand(Console console,
ConsoleCallback callback) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Interpreter interpreter)
Hook to provide various implementations of command execution.
|
getInputStream
private final ConsoleCallback callback
public RegisterCallbackCommand(Console console, ConsoleCallback callback)
public void execute(Interpreter interpreter) throws Exception
Command
execute
in class Command
interpreter
- Jython interpreter that will execute the command.Exception
- An error was encountered executing the command. Jython
will catch three standard Python exceptions: SyntaxError, ValueError,
and OverflowError. Other exceptions are thrown.