public class EvalJython
extends java.lang.Object
Constructor and Description |
---|
EvalJython() |
Modifier and Type | Method and Description |
---|---|
static void |
displayCell(Cell cell)
Display specified Cell after termination of currently running script
|
static void |
execJython(java.lang.String code)
Method to run the Jython interpreter on a given line of text.
|
static EditingPreferences |
getEditingPreferences()
returns EditingPreferences with default sizes and text descriptors
|
static boolean |
hasJython() |
static void |
runScript(java.lang.String fileName)
Method to execute a script file in a Job.
|
static void |
runScriptNoJob(java.lang.String fileName)
Method to execute a script file without starting a new Job.
|
static void |
setVarInJob(CellId cellId,
int nodeId,
Variable.Key key,
java.lang.Object newVal,
TextDescriptor td)
Method to set a variable on a NodeInst in a new Job.
|
public static boolean hasJython()
public static void execJython(java.lang.String code)
code
- the code to run.public static void runScript(java.lang.String fileName)
fileName
- the script file name.public static void runScriptNoJob(java.lang.String fileName)
fileName
- the script file name.public static EditingPreferences getEditingPreferences()
public static void displayCell(Cell cell)
cell
- the Cell to display.public static void setVarInJob(CellId cellId, int nodeId, Variable.Key key, java.lang.Object newVal, TextDescriptor td)
cellId
- the ID of the Cell in which to set a variable.nodeId
- the ID of the NodeInst (in the Cell) on which to set a variable.key
- the Variable key.newVal
- the new value of the Variable.td
- the Textdescriptor.