Package org.jmol.script
Class ScriptContext
java.lang.Object
org.jmol.script.ScriptContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T[][](package private) boolean(package private) booleanprivate static int(package private) boolean(package private) Stringbooleanboolean(package private) SV[]intintbooleanbooleanboolean(package private) booleanboolean(package private) boolean(package private) boolean(package private) int(package private) intint[][](package private) short[]booleanjavajs.util.SB(package private) JmolParallelProcessorintintintprivate int[](package private) String(package private) intT[](package private) int(package private) int(package private) T(package private) ContextToken(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionT[]getToken(int i) intgetVariable(String var) Context variables go up the stack until a function is found.(package private) T[][](package private) voidsaveTokens(T[][] aa) save pointers indicating state of if/thenvoid
-
Field Details
-
contextCount
private static int contextCount -
aatoken
-
allowJSThreads
boolean allowJSThreads -
chk
boolean chk -
contextPath
-
vars
-
displayLoadErrorsSave
boolean displayLoadErrorsSave -
errorMessage
-
errorMessageUntranslated
String errorMessageUntranslated -
errorType
-
executionPaused
public boolean executionPaused -
executionStepping
public boolean executionStepping -
isEditor
public boolean isEditor -
isEditorScript
public boolean isEditorScript -
functionName
-
iCommandError
public int iCommandError -
id
public int id -
isComplete
public boolean isComplete -
isFunction
boolean isFunction -
isJSThread
public boolean isJSThread -
isStateScript
boolean isStateScript -
isTryCatch
boolean isTryCatch -
forVars
SV[] forVars -
iToken
int iToken -
lineEnd
int lineEnd -
lineIndices
public int[][] lineIndices -
lineNumbers
short[] lineNumbers -
mustResumeEval
public boolean mustResumeEval -
outputBuffer
public javajs.util.SB outputBuffer -
parallelProcessor
JmolParallelProcessor parallelProcessor -
parentContext
-
pc
public int pc -
pc0
public int pc0 -
pcEnd
public int pcEnd -
script
-
scriptExtensions
String scriptExtensions -
scriptFileName
-
scriptLevel
int scriptLevel -
statement
-
htFileCache
-
statementLength
int statementLength -
token
ContextToken token -
tryPt
int tryPt -
theToken
T theToken -
theTok
int theTok -
pointers
private int[] pointers -
why
-
privateFuncs
-
-
Constructor Details
-
ScriptContext
ScriptContext()
-
-
Method Details
-
setMustResume
public void setMustResume() -
getVariable
Context variables go up the stack until a function is found. That is considered to be the highest level.- Parameters:
var-- Returns:
- context variables
-
getFullMap
-
saveTokens
save pointers indicating state of if/then- Parameters:
aa- the command array token list
-
restoreTokens
T[][] restoreTokens() -
getTokenCount
public int getTokenCount() -
getToken
-