| java.lang.Object oscript.NodeEvaluator oscript.compiler.CompiledInnerNodeEvaluator
CompiledInnerNodeEvaluator | public class CompiledInnerNodeEvaluator extends NodeEvaluator (Code) | | In an effort to generate fewer classes, and improve startup performance,
functions within the file/function node that is passed to the compiler
generate additional evalNodeX methods within the same class that
is generated for the parent. But since we still need individual
NodeEvaluator s for each function, this class acts as a lightweight
wrapper object which forwards the
CompiledInnerNodeEvaluator.evalNode method to the appropriate
CompiledNodeEvaluator.evalInnerNode author: Rob Clark (rob@ti.com) version: 1 |
CompiledInnerNodeEvaluator | public CompiledInnerNodeEvaluator(int id, int idx, CompiledNodeEvaluator cne)(Code) | | Class Constructor.
Parameters: id - the function name symbol id Parameters: idx - the index to pass back to CompiledNodeEvaluator.evalInnerNode Parameters: cne - the compiled node which contains the compiled code |
evalNode | public Object evalNode(StackFrame sf, Scope scope) throws PackagedScriptObjectException(Code) | | Evaluate, in the specified scope. If this is a function, the Arguments
to the function, etc., are defined in the scope that the
function is evaluated in.
Parameters: sf - the stack frame to evaluate the node in Parameters: scope - the scope to evaluate the function in the result of evaluating the function |
getFile | public AbstractFile getFile()(Code) | | Get the file that this node was parsed from.
the file |
getId | public int getId()(Code) | | Get the function symbol (name), if this node evaluator is a function,
otherwise return -1 .
the symbol, or -1 |
getSharedMemberIndexTable | public SymbolTable getSharedMemberIndexTable(int perm)(Code) | | Get the SMIT for the scope(s) created when invoking this node evaluator.
Parameters: perm - PRIVATE , PUBPROT ,ALL |
|
|