public abstract class BaseExpression extends Object implements Expression
| Modifier and Type | Field and Description |
|---|---|
protected AviatorEvaluatorInstance |
instance |
| Constructor and Description |
|---|
BaseExpression(AviatorEvaluatorInstance instance,
List<String> varNames) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute()
Execute expression with empty environment
|
protected Env |
genTopEnv(Map<String,Object> map) |
Env |
getCompileEnv() |
String |
getExpression()
Returns the expression string when turn on
Options.TRACE_EVAL option, else returns
null. |
List<String> |
getVariableFullNames()
Returns this expression's all variable full names in order when using AviatorEvaluator.EVAL
mode,else returns empty set
|
List<String> |
getVariableNames()
Returns this expression's all variable names in order when using AviatorEvaluator.EVAL
mode,else returns empty set
|
protected Env |
newEnv(Map<String,Object> map) |
protected Env |
newEnv(Map<String,Object> map,
boolean direct) |
void |
setCompileEnv(Env compileEnv) |
void |
setExpression(String expression) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected AviatorEvaluatorInstance instance
public BaseExpression(AviatorEvaluatorInstance instance, List<String> varNames)
public Env getCompileEnv()
public void setCompileEnv(Env compileEnv)
public String getExpression()
Options.TRACE_EVAL option, else returns
null.public void setExpression(String expression)
public Object execute()
Expressionexecute in interface Expressionpublic List<String> getVariableFullNames()
ExpressiongetVariableFullNames in interface Expressionpublic List<String> getVariableNames()
ExpressiongetVariableNames in interface ExpressionAviatorEvaluator.EVALCopyright © 2019. All rights reserved.