Same as eval(ScriptEngine, Reader, Binding)
except that the
source of the script is provided as a Reader
reader
- The source of the scriptbinding
- A Groovy bindingExecutes the specified script. The default ScriptContext
for the ScriptEngine
is used. Variables from a Groovy Binding
are made available in the default scope of the
Bindings
of the ScriptEngine
. Resulting variables in the Bindings
are returned back to the Groovy Binding
.
script
- The script language source to be executedbinding
- A Groovy binding