public interface ScriptBuilder extends Serializable
Modifier and Type | Method and Description |
---|---|
ScriptBuilder |
bindings(javax.script.Bindings bindings)
Adds a
Bindings instance to the current builder instance |
Object |
eval()
Evaluates the script built with the current
ScriptBuilder |
<T> T |
eval(Class<T> returnType)
Evaluates the script built with the current
ScriptBuilder |
ScriptBuilder |
namedArgument(String name,
Object value)
Adds an argument with a specific nam to the current builder instance
|
ScriptBuilder |
script(String script)
Adds a script to the current builder instance
|
ScriptBuilder script(String script)
script
- target scriptScriptBuilder namedArgument(String name, Object value)
name
- name of the argumentvalue
- value of the argumentScriptBuilder bindings(javax.script.Bindings bindings)
Bindings
instance to the current builder instancebindings
- bindings which should be usedObject eval()
ScriptBuilder
<T> T eval(Class<T> returnType)
ScriptBuilder
returnType
- target type of the resultCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.