oscript
Interface NodeEvaluatorFactory

All Known Implementing Classes:
CompiledNodeEvaluatorFactory, InterpretedNodeEvaluatorFactory

public interface NodeEvaluatorFactory

A NodeEvaluatorFactory transforms a Node into a NodeEvaluator. This forms the basis for the plug-in evaluator and/or compiler. By creating a NodeEvaluator we can abstract away wether or not the code gets compiled. It may seem weird to have the interpreter be a pluggable component, but just think of it as a nice clean distinction between the interpreter and the data.

Version:
1.3
Author:
Rob Clark (rob@ti.com)

Method Summary
 NodeEvaluator createNodeEvaluator(java.lang.String name, Node node)
          Given a Node, generate a NodeEvaluator.
 

Method Detail

createNodeEvaluator

public NodeEvaluator createNodeEvaluator(java.lang.String name,
                                         Node node)
Given a Node, generate a NodeEvaluator.

Parameters:
name - name of node to process, for debugging
node - the node
Returns:
the node-evaluator