org.lsmp.djep.vectorJep
Class VectorEvaluator

java.lang.Object
  extended by org.nfunk.jep.EvaluatorVisitor
      extended by org.lsmp.djep.vectorJep.VectorEvaluator
All Implemented Interfaces:
EvaluatorI, ParserVisitor

public class VectorEvaluator
extends EvaluatorVisitor

Author:
Rich Morris Created on 10-Dec-2004

Field Summary
 
Fields inherited from class org.nfunk.jep.EvaluatorVisitor
debug, stack, symTab, trapNullValues
 
Constructor Summary
VectorEvaluator()
           
 
Method Summary
 java.lang.Object visit(ASTFunNode node, java.lang.Object data)
          Visit a function node.
 
Methods inherited from class org.nfunk.jep.EvaluatorVisitor
eval, eval, getValue, isTrapNullValues, setTrapNullValues, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorEvaluator

public VectorEvaluator()
Method Detail

visit

public java.lang.Object visit(ASTFunNode node,
                              java.lang.Object data)
                       throws ParseException
Visit a function node. The values of the child nodes are first pushed onto the stack. Then the function class associated with the node is used to evaluate the function.

If a function implements SpecialEvaluationI then the evaluate method of PFMC is called.

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class EvaluatorVisitor
Throws:
ParseException


http://www.singularsys.com/jep Copyright © 2007 Singular Systems