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) int
functions are either local or global (static).(package private) SV
(package private) String
(package private) int
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addVariable
(String name, boolean isParameter) getName()
geTokens()
int
getTok()
(package private) boolean
isVariable
(String ident) void
(package private) static void
setFunction
(ScriptFunction function, String script, int ichCurrentCommand, int pt, short[] lineNumbers, int[][] lineIndices, javajs.util.Lst<T[]> lltoken) private void
(package private) void
setVariables
(Map<String, SV> contextVariables, javajs.util.Lst<SV> params) toString()
(package private) void
unsetVariables
(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:
getSignature
in interfaceJmolScriptFunction
-
geTokens
- Specified by:
geTokens
in interfaceJmolScriptFunction
-
getName
- Specified by:
getName
in interfaceJmolScriptFunction
-
getTok
public int getTok()- Specified by:
getTok
in interfaceJmolScriptFunction
-