public abstract class DynamicExecutableScript extends ExecutableScript
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
scriptExpression |
language| Modifier | Constructor and Description |
|---|---|
protected |
DynamicExecutableScript(Expression scriptExpression,
String language) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
evaluateExpression(VariableScope variableScope) |
Object |
execute(ScriptEngine scriptEngine,
VariableScope variableScope,
Bindings bindings)
Evaluates the script using the provided engine and bindings
|
abstract String |
getScriptSource(VariableScope variableScope) |
getLanguageprotected final Expression scriptExpression
protected DynamicExecutableScript(Expression scriptExpression, String language)
public Object execute(ScriptEngine scriptEngine, VariableScope variableScope, Bindings bindings)
ExecutableScriptEvaluates the script using the provided engine and bindings
execute in class ExecutableScriptscriptEngine - the script engine to use for evaluating the script.variableScope - the variable scope of the executionbindings - the bindings to use for evaluating the script.protected String evaluateExpression(VariableScope variableScope)
public abstract String getScriptSource(VariableScope variableScope)
Copyright © 2018. All rights reserved.