public class DefaultExpressionEvaluatorManager extends Object implements ExpressionEvaluatorManager
Constructor and Description |
---|
DefaultExpressionEvaluatorManager() |
Modifier and Type | Method and Description |
---|---|
Code |
compile(LexicalAnalyzer lex,
String source) |
Code |
compile(String source) |
CodeBuilder |
createCodeBuilder() |
Compiler |
createCompiler() |
ExpressionEvaluator |
createEvaluator() |
ExpressionEvaluator |
createEvaluator(String expression) |
EvaluatorFactory |
createEvaluatorFactory() |
Interpreter |
createInterpreter() |
LexicalAnalyzer |
createLexicalAnalyzer() |
MutableSymbolTable |
createSymbolTable() |
Object |
evaluate(String source) |
Object |
evaluate(SymbolTable symbolTable,
Code code) |
Object |
evaluate(SymbolTable symbolTable,
String source) |
Double |
getAccuracy() |
void |
setAccuracy(Double accuracy) |
public Object evaluate(String source)
evaluate
in interface ExpressionEvaluatorManager
public Object evaluate(SymbolTable symbolTable, String source)
evaluate
in interface ExpressionEvaluatorManager
public Object evaluate(SymbolTable symbolTable, Code code)
evaluate
in interface ExpressionEvaluatorManager
public Code compile(String source)
compile
in interface ExpressionEvaluatorManager
public Code compile(LexicalAnalyzer lex, String source)
compile
in interface ExpressionEvaluatorManager
public MutableSymbolTable createSymbolTable()
createSymbolTable
in interface ExpressionEvaluatorManager
public LexicalAnalyzer createLexicalAnalyzer()
createLexicalAnalyzer
in interface ExpressionEvaluatorManager
public CodeBuilder createCodeBuilder()
createCodeBuilder
in interface ExpressionEvaluatorManager
public Compiler createCompiler()
createCompiler
in interface ExpressionEvaluatorManager
public Interpreter createInterpreter()
createInterpreter
in interface ExpressionEvaluatorManager
public ExpressionEvaluator createEvaluator(String expression)
createEvaluator
in interface ExpressionEvaluatorManager
public ExpressionEvaluator createEvaluator()
createEvaluator
in interface ExpressionEvaluatorManager
public EvaluatorFactory createEvaluatorFactory()
createEvaluatorFactory
in interface ExpressionEvaluatorManager
public Double getAccuracy()
getAccuracy
in interface ExpressionEvaluatorManager
public void setAccuracy(Double accuracy)
setAccuracy
in interface ExpressionEvaluatorManager