Package edu.wisc.ssec.mcidasv.jython
Class InjectCommand
java.lang.Object
edu.wisc.ssec.mcidasv.jython.Command
edu.wisc.ssec.mcidasv.jython.InjectCommand
This class represents a
Command that injects a standard Java
variable into the local namespace of an Interpreter. This is useful
for allowing Jython to manipulate objects created by the IDV or McIDAS-V.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInjectCommand(Console console, String name, Object object) Creates an injection command based upon the specified name and object. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Interpreter interpreter) Attempts to inject a variable created in Java into the local namespace ofinterpreter.toString()Methods inherited from class edu.wisc.ssec.mcidasv.jython.Command
getInputStream
-
Field Details
-
name
Name Jython will use to refer toobject. -
object
Wrapper around the Java object that is being injected.
-
-
Constructor Details
-
InjectCommand
Creates an injection command based upon the specified name and object.- Parameters:
console- Likely not required in this context!name- Name Jython will use to refer toobject.object- Wrapper around the Java object that is being injected.
-
-
Method Details
-
execute
Attempts to inject a variable created in Java into the local namespace ofinterpreter. -
toString
-