public class VectorJep extends JEP
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab
Modifier and Type | Method and Description |
---|---|
void |
addStandardFunctions()
Adds the standard functions to the parser.
|
java.lang.Object |
evaluate(Node node)
Evaluate a node.
|
java.lang.Object |
evaluateRaw(Node node)
Evaluate a node.
|
void |
setElementMultiply(boolean value)
When set the multiplication of vectors and matrices will be element by element.
|
addComplex, addConstant, addFunction, addStandardConstants, addVariable, addVariable, addVariable, getAllowAssignment, getAllowUndeclared, getComplexValue, getErrorInfo, getEvaluatorVisitor, getFunctionTable, getImplicitMul, getNumberFactory, getOperatorSet, getParser, getSymbolTable, getTopNode, getTraverse, getValue, getValueAsObject, getVar, getVarValue, hasError, initFunTab, initSymTab, parse, parseExpression, removeFunction, removeVariable, setAllowAssignment, setAllowUndeclared, setImplicitMul, setTraverse, setVarValue
public VectorJep()
public VectorJep(JEP j)
public void addStandardFunctions()
JEP
addStandardFunctions
in class JEP
public java.lang.Object evaluate(Node node) throws ParseException
evaluate
in class JEP
node
- the top node of the tree representing the expression.ParseException
- if for some reason the expression could not be evaluatedpublic java.lang.Object evaluateRaw(Node node) throws java.lang.Exception
java.lang.Exception
public void setElementMultiply(boolean value)
http://www.singularsys.com/jep Copyright © 2007 Singular Systems