|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.JEP
org.lsmp.djep.vectorJep.VectorJep
An extension of JEP with support for basic vectors and matricies. Use this class instead of JEP if you wish to use vectors and matricies.
Field Summary |
Fields inherited from class org.nfunk.jep.JEP |
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab |
Constructor Summary | |
VectorJep()
|
|
VectorJep(JEP j)
|
Method Summary | |
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. |
Methods inherited from class org.nfunk.jep.JEP |
addComplex, addConstant, addFunction, addStandardConstants, addVariable, addVariable, addVariable, getAllowAssignment, getAllowUndeclared, getComplexValue, getErrorInfo, getFunctionTable, getImplicitMul, getNumberFactory, getOperatorSet, getParser, getSymbolTable, getTopNode, getTraverse, getValue, getValueAsObject, getVar, getVarValue, hasError, initFunTab, initSymTab, parse, parseExpression, removeFunction, removeVariable, setAllowAssignment, setAllowUndeclared, setImplicitMul, setTraverse, setVarValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VectorJep()
public VectorJep(JEP j)
Method Detail |
public void addStandardFunctions()
JEP
addStandardFunctions
in class JEP
public java.lang.Object evaluate(Node node) throws java.lang.Exception
evaluate
in class JEP
node
- the top node of the tree representing the expression.
java.lang.Exception
- if for some reason the expression could not be evaluatedpublic java.lang.Object evaluateRaw(Node node) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |