public class FunctionSafeJep extends JEP
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FunctionSafeJep.SafeFunctionTable
Function table implementation that pretends that all possible functions
exists, but sends an error message if someone tries to use a function that
doesn't really exists.
|
(package private) static class |
FunctionSafeJep.UnknownFunction
Represents an unknown function that appears in an expression.
|
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab
Constructor and Description |
---|
FunctionSafeJep()
Create a new function-safe JEP parser.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addError(java.lang.String error)
Adds an error message to the "real" JEP parser.
|
java.lang.Object |
getValueAsObject()
Override the superclass method so that exceptions are passed on
instead of swallowed.
|
void |
initFunTab()
Overrides the regular function lookup table by replacing it with a
function table that pretends that all functions has been registered,
but then generates an error message if it doesn't exists.
|
addComplex, addConstant, addFunction, addStandardConstants, addStandardFunctions, addVariable, addVariable, addVariable, evaluate, getAllowAssignment, getAllowUndeclared, getComplexValue, getErrorInfo, getEvaluatorVisitor, getFunctionTable, getImplicitMul, getNumberFactory, getOperatorSet, getParser, getSymbolTable, getTopNode, getTraverse, getValue, getVar, getVarValue, hasError, initSymTab, parse, parseExpression, removeFunction, removeVariable, setAllowAssignment, setAllowUndeclared, setImplicitMul, setTraverse, setVarValue
public void initFunTab()
initFunTab
in class JEP
void addError(java.lang.String error)
public java.lang.Object getValueAsObject()
getValueAsObject
in class JEP