public interface ScriptExecutor extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
eval(String script)
Executes the given script
|
Object |
eval(String script,
javax.script.Bindings bindings)
Executes the given script with the given
Bindings |
<T> T |
eval(String script,
javax.script.Bindings bindings,
Class<T> returnType)
Executes the given script with the given
Bindings and the expected type of the result |
<T> T |
eval(String script,
Class<T> returnType)
Executes the given script and the expected type of the result
|
Object |
eval(String script,
Map<String,Object> arguments)
Executes the given script with the given arguments
|
<T> T |
eval(String script,
Map<String,Object> arguments,
Class<T> returnType)
Executes the given script with the given arguments and the expected type of the result
|
Object eval(String script)
script
- script which has to be executedObject eval(String script, Map<String,Object> arguments)
script
- script which has to be executedarguments
- current argumentsObject eval(String script, javax.script.Bindings bindings)
Bindings
script
- script which has to be executedbindings
- current bindings<T> T eval(String script, Class<T> returnType)
script
- script which has to be executedreturnType
- type of the result<T> T eval(String script, Map<String,Object> arguments, Class<T> returnType)
script
- script which has to be executedarguments
- current argumentsreturnType
- type of the result<T> T eval(String script, javax.script.Bindings bindings, Class<T> returnType)
Bindings
and the expected type of the resultscript
- script which has to be executedbindings
- current bindingsreturnType
- type of the resultCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.