|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.NodeEvaluator
A NodeEvaluator
is created by the NodeFactory
to
evaluate a node. The node-evaluator can be used any number of times in
order to evaluate a node, and must be thread safe.
Field Summary | |
static int |
ALL
|
static int |
PRIVATE
|
static int |
PUBPROT
|
static int[] |
SMIT_PERMS
|
Constructor Summary | |
NodeEvaluator()
|
Method Summary | |
abstract java.lang.Object |
evalNode(StackFrame sf,
Scope scope)
Evaluate, in the specified scope. |
abstract AbstractFile |
getFile()
Get the file that this node was parsed from. |
abstract int |
getId()
Get the function symbol (name), if this node evaluator is a function, otherwise return -1 . |
abstract SymbolTable |
getSharedMemberIndexTable(int perm)
Get the SMIT for the scope(s) created when invoking this node evaluator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALL
public static final int PUBPROT
public static final int PRIVATE
public static final int[] SMIT_PERMS
Constructor Detail |
public NodeEvaluator()
Method Detail |
public abstract java.lang.Object evalNode(StackFrame sf, Scope scope) throws PackagedScriptObjectException
sf
- the stack frame to evaluate the node inscope
- the scope to evaluate the node in
PackagedScriptObjectException
public abstract AbstractFile getFile()
public abstract int getId()
-1
.
-1
public abstract SymbolTable getSharedMemberIndexTable(int perm)
perm
- PRIVATE
, PUBPROT
,
ALL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |