BaseExpression, ClassExpression, LiteralExpressionpublic interface Expression
| Modifier and Type | Method | Description |
|---|---|---|
String |
addSymbol(String name) |
Adds the specified symbol to the symbol table and returns a reference to the unique symbol.
|
Object |
execute() |
Execute expression with empty environment
|
Object |
execute(Map<String,Object> env) |
Execute expression with environment
|
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
|
Map<String,Object> |
newEnv(Object... args) |
Created a faster env map(compare variable names by reference).The arguments should be a
sequence of pair
|
Object execute(Map<String,Object> env)
env - Binding variable environmentObject execute()
List<String> getVariableNames()
AviatorEvaluator.EVALList<String> getVariableFullNames()
Map<String,Object> newEnv(Object... args)
args - String addSymbol(String name)
name - The symbol name.Copyright © 2022–2023. All rights reserved.