public interface Expression
| Modifier and Type | Method and 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
|
String |
getSourceFile()
Returns the source file name.
|
List<String> |
getVariableFullNames()
Returns this expression's all uninitialized global variable full names(contains dot) in order
when using AviatorEvaluator.EVAL mode,else returns empty set
|
List<String> |
getVariableNames()
Returns this expression's all uninitialized global 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()
String getSourceFile()
List<String> getVariableNames()
AviatorEvaluator.EVALList<String> getVariableFullNames()
Map<String,Object> newEnv(Object... args)
args - String addSymbol(String name)
name - The symbol name.Copyright © 2010–2022. All rights reserved.