public class ResourceExecutableScript extends SourceExecutableScript
| Modifier and Type | Field and Description |
|---|---|
protected String |
scriptResource |
compiledScript, scriptSource, shouldBeCompiledlanguage| Constructor and Description |
|---|
ResourceExecutableScript(String language,
String scriptResource) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(ScriptEngine engine,
VariableScope variableScope,
Bindings bindings)
Evaluates the script using the provided engine and bindings
|
protected void |
loadScriptSource() |
compileScript, evaluateScript, getCompiledScript, getScriptSource, isShouldBeCompiled, setScriptSourcegetLanguageprotected String scriptResource
public Object execute(ScriptEngine engine, VariableScope variableScope, Bindings bindings)
ExecutableScriptEvaluates the script using the provided engine and bindings
execute in class SourceExecutableScriptengine - 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 void loadScriptSource()
Copyright © 2018. All rights reserved.