|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.JEP
uk.co.agena.minerva.util.nptgenerator.ExpressionParser
public class ExpressionParser
This is a Minerva-specific parser that encapsulates various data and behaviour common throughout the NPT generation process.
Field Summary |
---|
Fields inherited from class org.nfunk.jep.JEP |
---|
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab |
Constructor Summary | |
---|---|
ExpressionParser()
Creates a basic Expression parser. |
Method Summary | |
---|---|
void |
addDataSetVars(DataSet dataSet)
Adds list of strings as variables to parser with string or double value. |
void |
addStringVars(java.util.List variables)
Adds list of strings as variables to parser with value of 0.0. |
void |
addVariableVars(java.util.List variables)
Adds list of strings as variables to parser with value set. |
void |
checkForErrors(java.lang.String nodeName)
|
static ExpressionParser |
getInstance()
|
void |
removeDataSetVars(DataSet dataSet)
Removes from the parser variables with names matching those in the supplied List. |
void |
removeStringVars(java.util.List variables)
Removes from the parser variables with names matching those in the supplied List. |
void |
removeVariableVars(java.util.List variables)
Removes from the parser variables with names matching those in the supplied List. |
Methods inherited from class org.nfunk.jep.JEP |
---|
addComplex, addConstant, addFunction, addStandardConstants, addStandardFunctions, addVariable, addVariable, addVariable, evaluate, 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 ExpressionParser()
Method Detail |
---|
public static ExpressionParser getInstance()
public void addDataSetVars(DataSet dataSet)
variables
- public void removeDataSetVars(DataSet dataSet)
variables
- public void addVariableVars(java.util.List variables)
variables
- public void removeVariableVars(java.util.List variables)
variables
- public void addStringVars(java.util.List variables)
variables
- public void removeStringVars(java.util.List variables)
variables
- public void checkForErrors(java.lang.String nodeName) throws NPTGeneratorException
NPTGeneratorException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |