|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jext.scripting.python.Run
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 |
public Run()
Method Detail |
public static org.python.util.PythonInterpreter getPythonInterpreter(JextFrame parent)
parent
- The window which executes the scriptpublic static org.python.core.PyObject eval(java.lang.String code, java.lang.String mapName, java.lang.Object[] map, JextFrame parent)
code
- The script code to be evaluatedmap
- A map of properties to add to interpreterparent
- The window which executes the script
public static void execute(java.lang.String code, JextFrame parent)
code
- The script code to be interpretedparent
- The window which executes the scriptpublic static void runScript(java.lang.String fileName, JextFrame parent)
fileName
- Path to the scriptparent
- The Jext window which have to execute the script
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |