public class DefaultExpressionEvaluator extends AbstractEvaluator implements ExpressionEvaluator
EvaluatorWithDescriptions.Description| Constructor and Description |
|---|
DefaultExpressionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
compile() |
Object |
evaluate(EvaluatorData data)
Evaluate with the data passed as parameter.
|
Double |
getAccuracy() |
EvaluatorWithDescriptions.Description[] |
getAvailableFunctions() |
EvaluatorWithDescriptions.Description[] |
getAvailableOperators() |
Code |
getCode() |
Compiler |
getCompiler() |
Interpreter |
getInterpreter() |
LexicalAnalyzer |
getLexer() |
String |
getName()
Get the symbolic name of the evaluator.
|
String |
getSource() |
SymbolTable |
getSymbolTable() |
void |
setAccuracy(Double accuracy) |
void |
setCompiler(Compiler compiler) |
void |
setInterpreter(Interpreter interpreter) |
void |
setLexer(LexicalAnalyzer lexer) |
void |
setSource(String source) |
void |
setSymbolTable(SymbolTable symbolTable) |
getDescription, getFieldsInfo, getSQLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getFieldsInfo, getSQLpublic Code getCode()
getCode in interface ExpressionEvaluatorpublic void compile()
compile in interface ExpressionEvaluatorpublic Object evaluate(EvaluatorData data) throws EvaluatorException
Evaluatorevaluate in interface EvaluatorEvaluatorException - if an issue is found while evaluating.
The subclass EvaluatorParseException is used to indicate
a problem while parsing (malformed expression) rather than a
problem while evaluating.public String getName()
Evaluatorpublic EvaluatorWithDescriptions.Description[] getAvailableOperators()
getAvailableOperators in interface EvaluatorWithDescriptionspublic EvaluatorWithDescriptions.Description[] getAvailableFunctions()
getAvailableFunctions in interface EvaluatorWithDescriptionspublic SymbolTable getSymbolTable()
getSymbolTable in interface ExpressionEvaluatorpublic void setSymbolTable(SymbolTable symbolTable)
setSymbolTable in interface ExpressionEvaluatorpublic LexicalAnalyzer getLexer()
getLexer in interface ExpressionEvaluatorpublic void setLexer(LexicalAnalyzer lexer)
setLexer in interface ExpressionEvaluatorpublic Compiler getCompiler()
getCompiler in interface ExpressionEvaluatorpublic void setCompiler(Compiler compiler)
setCompiler in interface ExpressionEvaluatorpublic Interpreter getInterpreter()
getInterpreter in interface ExpressionEvaluatorpublic void setInterpreter(Interpreter interpreter)
setInterpreter in interface ExpressionEvaluatorpublic String getSource()
getSource in interface ExpressionEvaluatorpublic void setSource(String source)
setSource in interface ExpressionEvaluatorpublic Double getAccuracy()
getAccuracy in interface ExpressionEvaluatorpublic void setAccuracy(Double accuracy)
setAccuracy in interface ExpressionEvaluator