visad.python
Class RunJPython
- java.lang.Object
-
- visad.python.RunJPython
-
public class RunJPython extends java.lang.ObjectA stand-alone wrapper for launching JPython code.
-
-
Constructor Summary
Constructors Constructor and Description RunJPython()constructs a RunJPython object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objecteval(java.lang.String line)evaluates a line of JPython codevoidexec(java.lang.String line)executes a line of JPython codevoidexecfile(java.lang.String filename)executes the document as JPython source codejava.lang.Objectget(java.lang.String name)gets a JPython variable's valuestatic voidmain(java.lang.String[] args)launches a JPython scriptvoidset(java.lang.String name, java.lang.Object value)sets a JPython variable's value
-
-
-
Constructor Detail
-
RunJPython
public RunJPython() throws VisADExceptionconstructs a RunJPython object- Throws:
VisADException
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.String line) throws VisADExceptionevaluates a line of JPython code- Throws:
VisADException
-
exec
public void exec(java.lang.String line) throws VisADExceptionexecutes a line of JPython code- Throws:
VisADException
-
execfile
public void execfile(java.lang.String filename) throws VisADExceptionexecutes the document as JPython source code- Throws:
VisADException
-
set
public void set(java.lang.String name, java.lang.Object value) throws VisADExceptionsets a JPython variable's value- Throws:
VisADException
-
get
public java.lang.Object get(java.lang.String name) throws VisADExceptiongets a JPython variable's value- Throws:
VisADException
-
main
public static void main(java.lang.String[] args) throws VisADExceptionlaunches a JPython script- Throws:
VisADException
-
-
DMelt 3.0 © DataMelt by jWork.ORG