Optimizer.FunctionOptimizer
Modifier and Type | Field and Description |
---|---|
protected ExpressionEvaluatorManager |
manager |
Constructor and Description |
---|
DefaultOptimizer(ExpressionEvaluatorManager manager) |
DefaultOptimizer(ExpressionEvaluatorManager manager,
SymbolTable symbolTable) |
Modifier and Type | Method and Description |
---|---|
CodeBuilder |
getCodeBuilder() |
Interpreter |
getInterpreter() |
SymbolTable |
getSymbolTable() |
Code |
optimize(Code code) |
Code |
optimize(SymbolTable symbolTable,
Code code) |
void |
setSymbolTable(SymbolTable symbolTable) |
protected ExpressionEvaluatorManager manager
public DefaultOptimizer(ExpressionEvaluatorManager manager)
public DefaultOptimizer(ExpressionEvaluatorManager manager, SymbolTable symbolTable)
public void setSymbolTable(SymbolTable symbolTable)
setSymbolTable
in interface Optimizer
public SymbolTable getSymbolTable()
getSymbolTable
in interface Optimizer
public Interpreter getInterpreter()
getInterpreter
in interface Optimizer
public CodeBuilder getCodeBuilder()
getCodeBuilder
in interface Optimizer
public Code optimize(SymbolTable symbolTable, Code code)