eval(Reader, Bindings) calls the abstract
eval(Reader, ScriptContext) method, passing it a
ScriptContext
whose Reader, Writers and Bindings for scopes other that
ENGINE_SCOPE
are identical to those members of the protected
context field.
eval(Reader, Bindings) calls the abstract
eval(Reader, ScriptContext) method, passing it a
ScriptContext whose Reader, Writers and Bindings for scopes other that
ENGINE_SCOPE are identical to those members of the protected
context field. The specified
Bindings is used instead of the
ENGINE_SCOPE Bindings of the
context field.
Returns:
The return value from
eval(Reader, ScriptContext)
Parameters:
-
reader - A
Reader containing the source of the script.
-
bindings - A
Bindings to use for the
ENGINE_SCOPE
while the script executes.
Throws:
-
ScriptException - if an error occurs in script.
-
NullPointerException - if any of the parameters is null.