Uses of Class
javax.script.ScriptException
Package
Description
The scripting API consists of interfaces and classes that define
Java Scripting Engines and provides
a framework for their use in Java applications.
-
Uses of ScriptException in javax.script
Modifier and TypeMethodDescriptionCompiles the script (source read fromReader
) for later execution.Compiles the script (source represented as aString
) for later execution.eval(Reader)
calls the abstracteval(Reader, ScriptContext)
passing the value of thecontext
field.eval(Reader, Bindings)
calls the abstracteval(Reader, ScriptContext)
method, passing it aScriptContext
whose Reader, Writers and Bindings for scopes other thatENGINE_SCOPE
are identical to those members of the protectedcontext
field.Same aseval(Reader)
except that the abstracteval(String, ScriptContext)
is used.Same aseval(Reader, Bindings)
except that the abstracteval(String, ScriptContext)
is used.CompiledScript.eval()
Executes the program stored in theCompiledScript
object.Executes the program stored in theCompiledScript
object using the suppliedBindings
of attributes as theENGINE_SCOPE
of the associatedScriptEngine
during script execution.abstract Object
CompiledScript.eval
(ScriptContext context) Executes the program stored in thisCompiledScript
object.Same aseval(String)
except that the source of the script is provided as aReader
Same aseval(String, Bindings)
except that the source of the script is provided as aReader
.ScriptEngine.eval
(Reader reader, ScriptContext context) Same aseval(String, ScriptContext)
where the source of the script is read from aReader
.Executes the specified script.Executes the script using theBindings
argument as theENGINE_SCOPE
Bindings
of theScriptEngine
during the script execution.ScriptEngine.eval
(String script, ScriptContext context) Causes the immediate execution of the script whose source is the String passed as the first argument.Invocable.invokeFunction
(String name, Object... args) Used to call top-level procedures and functions defined in scripts.Invocable.invokeMethod
(Object thiz, String name, Object... args) Calls a method on a script object compiled during a previous script execution, which is retained in the state of theScriptEngine
.