org.jext.scripting.python
Class Run

java.lang.Object
  extended byorg.jext.scripting.python.Run

public final class Run
extends java.lang.Object


Constructor Summary
Run()
           
 
Method Summary
static org.python.core.PyObject eval(java.lang.String code, java.lang.String mapName, java.lang.Object[] map, JextFrame parent)
          Evaluates some Python code.
static void execute(java.lang.String code, JextFrame parent)
          Executes some Python code.
static org.python.util.PythonInterpreter getPythonInterpreter(JextFrame parent)
          Creates an interpreter.
static void runScript(java.lang.String fileName, JextFrame parent)
          Runs a Jext script from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Run

public Run()
Method Detail

getPythonInterpreter

public static org.python.util.PythonInterpreter getPythonInterpreter(JextFrame parent)
Creates an interpreter.

Parameters:
parent - The window which executes the script

eval

public static org.python.core.PyObject eval(java.lang.String code,
                                            java.lang.String mapName,
                                            java.lang.Object[] map,
                                            JextFrame parent)
Evaluates some Python code.

Parameters:
code - The script code to be evaluated
map - A map of properties to add to interpreter
parent - The window which executes the script
Returns:
The result of the evaluation

execute

public static void execute(java.lang.String code,
                           JextFrame parent)
Executes some Python code.

Parameters:
code - The script code to be interpreted
parent - The window which executes the script

runScript

public static void runScript(java.lang.String fileName,
                             JextFrame parent)
Runs a Jext script from a file.

Parameters:
fileName - Path to the script
parent - The Jext window which have to execute the script


Copyright © 2002 Romain Guy.