Package org.jmol.script
Class ScriptFunction
java.lang.Object
org.jmol.script.ScriptFunction
- All Implemented Interfaces:
JmolScriptFunction
- Direct Known Subclasses:
ScriptParallelProcessor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) T[][](package private) int(package private) int(package private) boolean(package private) int[][](package private) short[](package private) String(package private) javajs.util.Lst<String>(package private) int(package private) intfunctions are either local or global (static).(package private) SV(package private) String(package private) intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddVariable(String name, boolean isParameter) getName()geTokens()intgetTok()(package private) booleanisVariable(String ident) void(package private) static voidsetFunction(ScriptFunction function, String script, int ichCurrentCommand, int pt, short[] lineNumbers, int[][] lineIndices, javajs.util.Lst<T[]> lltoken) private void(package private) voidsetVariables(Map<String, SV> contextVariables, javajs.util.Lst<SV> params) toString()(package private) voidunsetVariables(Map<String, SV> contextVariables, javajs.util.Lst<SV> params)
-
Field Details
-
pt0
int pt0functions are either local or global (static). The idea there is that a set of applets might share a set of functions. The default is global; prefix underscore makes them local. functions have contexts. Or, more specifically, contexts may have associated functions. Bob Hanson -- 11.3.29 includes parallel, catch -
chpt0
int chpt0 -
cmdpt0
int cmdpt0 -
typeName
-
name
String name -
nParameters
int nParameters -
names
javajs.util.Lst<String> names -
tok
int tok -
variables
-
returnValue
SV returnValue -
aatoken
T[][] aatoken -
lineIndices
int[][] lineIndices -
lineNumbers
short[] lineNumbers -
script
String script -
isPrivate
boolean isPrivate
-
-
Constructor Details
-
ScriptFunction
public ScriptFunction() -
ScriptFunction
-
-
Method Details
-
isVariable
-
set
-
setVariables
-
unsetVariables
-
addVariable
-
setFunction
static void setFunction(ScriptFunction function, String script, int ichCurrentCommand, int pt, short[] lineNumbers, int[][] lineIndices, javajs.util.Lst<T[]> lltoken) -
setScript
-
toString
-
getSignature
- Specified by:
getSignaturein interfaceJmolScriptFunction
-
geTokens
- Specified by:
geTokensin interfaceJmolScriptFunction
-
getName
- Specified by:
getNamein interfaceJmolScriptFunction
-
getTok
public int getTok()- Specified by:
getTokin interfaceJmolScriptFunction
-