public class ResourceExecutableScript extends SourceExecutableScript
Modifier and Type | Field and Description |
---|---|
protected String |
scriptResource |
compiledScript, scriptSource, shouldBeCompiled
language
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, setScriptSource
getLanguage
protected String scriptResource
public Object execute(ScriptEngine engine, VariableScope variableScope, Bindings bindings)
ExecutableScript
Evaluates the script using the provided engine and bindings
execute
in class SourceExecutableScript
engine
- 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.