edu.wisc.ssec.mcidasv.jython
Class RegisterCallbackCommand

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.jython.Command
      extended by edu.wisc.ssec.mcidasv.jython.RegisterCallbackCommand

 class RegisterCallbackCommand
extends Command


Field Summary
private  ConsoleCallback callback
           
 
Fields inherited from class edu.wisc.ssec.mcidasv.jython.Command
console
 
Constructor Summary
RegisterCallbackCommand(Console console, ConsoleCallback callback)
           
 
Method Summary
 void execute(Interpreter interpreter)
          Hook to provide various implementations of command execution.
 
Methods inherited from class edu.wisc.ssec.mcidasv.jython.Command
getInputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callback

private final ConsoleCallback callback
Constructor Detail

RegisterCallbackCommand

public RegisterCallbackCommand(Console console,
                               ConsoleCallback callback)
Method Detail

execute

public void execute(Interpreter interpreter)
             throws Exception
Description copied from class: Command
Hook to provide various implementations of command execution.

Specified by:
execute in class Command
Parameters:
interpreter - Jython interpreter that will execute the command.
Throws:
Exception - An error was encountered executing the command. Jython will catch three standard Python exceptions: SyntaxError, ValueError, and OverflowError. Other exceptions are thrown.