| Modifier and Type | Class | Description |
|---|---|---|
class |
BaseExpression |
Base expression
|
class |
ClassExpression |
Compiled expression,all generated class inherit this class
|
class |
LiteralExpression |
A literal expression with a fixed result
|
| Modifier and Type | Method | Description |
|---|---|---|
static Expression |
AviatorEvaluator.compile(String expression) |
Compile a text expression to Expression Object without caching
|
static Expression |
AviatorEvaluator.compile(String expression,
boolean cached) |
Compile a text expression to Expression object
|
Expression |
AviatorEvaluatorInstance.compile(String expression) |
Compile a text expression to Expression Object without caching
|
Expression |
AviatorEvaluatorInstance.compile(String expression,
boolean cached) |
Compile a text expression to Expression object
|
Expression |
AviatorEvaluatorInstance.compile(String cacheKey,
String expression,
boolean cached) |
Compile a text expression to Expression object
|
Expression |
AviatorEvaluatorInstance.compileScript(String path) |
Compile a script file into expression, it doesn't cache the compiled result.
|
Expression |
AviatorEvaluatorInstance.compileScript(String path,
boolean cached) |
Compile a script file into expression.
|
Expression |
AviatorEvaluatorInstance.compileScript(String cacheKey,
File file,
boolean cached) |
Compile a script into expression.
|
static Expression |
AviatorEvaluator.getCachedExpression(String expression) |
Returns a compiled expression in cache
|
Expression |
AviatorEvaluatorInstance.getCachedExpression(String expression) |
Returns a compiled expression in cache
|
Expression |
AviatorEvaluatorInstance.getCachedExpressionByKey(String cacheKey) |
Returns a compiled expression in cache by cacheKey.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
EnvProcessor.afterExecute(Map<String,Object> env,
Expression script) |
This method will be called after executing the expression.
|
void |
EnvProcessor.beforeExecute(Map<String,Object> env,
Expression script) |
This method will be called before executing the expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
Expression |
CodeGenerator.getResult(boolean unboxObject) |
|
Expression |
LambdaGenerator.getResult(boolean unboxObject) |
|
Expression |
NoneCodeGenerator.getResult(boolean unboxObject) |
|
Expression |
OptimizeCodeGenerator.getResult(boolean unboxObject) |
| Modifier and Type | Method | Description |
|---|---|---|
Expression |
ASMCodeGenerator.getResult(boolean unboxObject) |
| Modifier and Type | Method | Description |
|---|---|---|
Expression |
ExpressionParser.parse() |
|
Expression |
ExpressionParser.parse(boolean reportErrorIfNotEOF) |
| Constructor | Description |
|---|---|
LambdaFunctionBootstrap(String name,
Expression expression,
Constructor<?> constructor,
List<String> arguments,
boolean inheritEnv) |
| Constructor | Description |
|---|---|
LambdaFunction(List<String> arguments,
Expression expression,
Env context) |
| Constructor | Description |
|---|---|
ExpressionSegment(Expression exp) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AviatorBindings.setExpression(Expression exp) |
| Modifier and Type | Method | Description |
|---|---|---|
Expression |
Env.getExpression() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Env.configure(AviatorEvaluatorInstance instance,
Expression exp) |
|
void |
Env.setExpression(Expression expression) |
Copyright © 2022–2023. All rights reserved.