public class MespMathExpressionParser extends Object implements MathExpressionParser
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
error |
protected String |
errorInfo |
protected com.graphbuilder.math.Expression |
expression |
protected com.graphbuilder.math.FuncMap |
funcMap |
protected com.graphbuilder.math.VarMap |
varMap |
JEP, JEP3x, MESP| Constructor and Description |
|---|
MespMathExpressionParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(String key,
Object function) |
void |
addStandardConstants() |
void |
addStandardFunctions() |
void |
addVariable(String var,
double value) |
void |
addVariableAsObject(String var,
Object o) |
String |
getErrorInfo() |
double |
getValue() |
Object |
getValueAsObject() |
boolean |
hasError() |
void |
parseExpression(String expression) |
void |
removeVariable(String var) |
void |
setTraverse(boolean value) |
protected com.graphbuilder.math.FuncMap funcMap
protected com.graphbuilder.math.VarMap varMap
protected com.graphbuilder.math.Expression expression
protected String errorInfo
protected boolean error
public void addFunction(String key, Object function)
addFunction in interface MathExpressionParserpublic void addStandardConstants()
addStandardConstants in interface MathExpressionParserpublic void addStandardFunctions()
addStandardFunctions in interface MathExpressionParserpublic void addVariable(String var, double value)
addVariable in interface MathExpressionParserpublic void addVariableAsObject(String var, Object o)
addVariableAsObject in interface MathExpressionParserpublic String getErrorInfo()
getErrorInfo in interface MathExpressionParserpublic double getValue()
getValue in interface MathExpressionParserpublic Object getValueAsObject()
getValueAsObject in interface MathExpressionParserpublic boolean hasError()
hasError in interface MathExpressionParserpublic void parseExpression(String expression)
parseExpression in interface MathExpressionParserpublic void removeVariable(String var)
removeVariable in interface MathExpressionParserpublic void setTraverse(boolean value)
setTraverse in interface MathExpressionParserCopyright © 2016 Imatia Innovation S.L.. All rights reserved.