Package edu.wisc.ssec.mcidasv.jython
Class LineCommand
java.lang.Object
edu.wisc.ssec.mcidasv.jython.Command
edu.wisc.ssec.mcidasv.jython.LineCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe line of jython that needs to be passed to the interpreter -
Constructor Summary
ConstructorsConstructorDescriptionLineCommand(Console console, String command) Creates a command based upon the contents ofcommand. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Interpreter interpreter) Attempts to execute a line of Jython.toString()Methods inherited from class edu.wisc.ssec.mcidasv.jython.Command
getInputStream
-
Field Details
-
command
The line of jython that needs to be passed to the interpreter
-
-
Constructor Details
-
LineCommand
Creates a command based upon the contents ofcommand.- Parameters:
console- Console where the specified text came from.command- Text that will be passed to anInterpreterfor execution.
-
-
Method Details
-
execute
Attempts to execute a line of Jython. Displays the appropriate prompt onCommand.console, depending upon whether Jython requires more input.- Specified by:
executein classCommand- Parameters:
interpreter- Interpreter that will execute this command.- Throws:
Exception- SeeCommand.execute(Interpreter).
-
toString
-