|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptBuilder
Method Summary | ||
---|---|---|
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 |
|
|
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 |
Method Detail |
---|
ScriptBuilder script(String script)
script
- target script
ScriptBuilder namedArgument(String name, Object value)
name
- name of the argumentvalue
- value of the argument
ScriptBuilder bindings(javax.script.Bindings bindings)
Bindings
instance to the current builder instance
bindings
- bindings which should be used
Object eval()
ScriptBuilder
<T> T eval(Class<T> returnType)
ScriptBuilder
returnType
- target type of the result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |