visad.python
Class RunJPython

java.lang.Object
  extended by visad.python.RunJPython

public class RunJPython
extends java.lang.Object

A stand-alone wrapper for launching JPython code.


Field Summary
protected  java.lang.Object python
          PythonInterpreter object
 
Constructor Summary
RunJPython()
          constructs a RunJPython object
 
Method Summary
 java.lang.Object eval(java.lang.String line)
          evaluates a line of JPython code
 void exec(java.lang.String line)
          executes a line of JPython code
 void execfile(java.lang.String filename)
          executes the document as JPython source code
 java.lang.Object get(java.lang.String name)
          gets a JPython variable's value
static void main(java.lang.String[] args)
          launches a JPython script
 void set(java.lang.String name, java.lang.Object value)
          sets a JPython variable's value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

python

protected java.lang.Object python
PythonInterpreter object

Constructor Detail

RunJPython

public RunJPython()
           throws VisADException
constructs a RunJPython object

Throws:
VisADException
Method Detail

eval

public java.lang.Object eval(java.lang.String line)
                      throws VisADException
evaluates a line of JPython code

Throws:
VisADException

exec

public void exec(java.lang.String line)
          throws VisADException
executes a line of JPython code

Throws:
VisADException

execfile

public void execfile(java.lang.String filename)
              throws VisADException
executes the document as JPython source code

Throws:
VisADException

set

public void set(java.lang.String name,
                java.lang.Object value)
         throws VisADException
sets a JPython variable's value

Throws:
VisADException

get

public java.lang.Object get(java.lang.String name)
                     throws VisADException
gets a JPython variable's value

Throws:
VisADException

main

public static void main(java.lang.String[] args)
                 throws VisADException
launches a JPython script

Throws:
VisADException