@FunctionalInterface public interface ScriptExecutor
ScriptSource
and optional binding variables
.Modifier and Type | Method and Description |
---|---|
default Object |
executeScript(ScriptSource scriptSource)
Execute a script from the provided
ScriptSource |
Object |
executeScript(ScriptSource scriptSource,
Map<String,Object> variables)
Execute a script from the provided
ScriptSource with an optional binding variables . |
@Nullable Object executeScript(ScriptSource scriptSource, @Nullable Map<String,Object> variables)
ScriptSource
with an optional binding variables
.scriptSource
- The script source.variables
- The variables.@Nullable default Object executeScript(ScriptSource scriptSource)
ScriptSource
scriptSource
- The script source.