Uses of Class
javax.script.ScriptException
-
Packages that use ScriptException Package Description javax.script The scripting API consists of interfaces and classes that define Java TM Scripting Engines and provides a framework for their use in Java applications. -
-
Uses of ScriptException in javax.script
Methods in javax.script that throw ScriptException Modifier and Type Method and Description CompiledScript
Compilable. compile(Reader script)
Compiles the script (source read fromReader
) for later execution.CompiledScript
Compilable. compile(String script)
Compiles the script (source represented as aString
) for later execution.Object
CompiledScript. eval()
Executes the program stored in theCompiledScript
object.Object
CompiledScript. eval(Bindings bindings)
Executes the program stored in theCompiledScript
object using the suppliedBindings
of attributes as theENGINE_SCOPE
of the associatedScriptEngine
during script execution.Object
AbstractScriptEngine. eval(Reader reader)
eval(Reader)
calls the abstracteval(Reader, ScriptContext)
passing the value of thecontext
field.Object
ScriptEngine. eval(Reader reader)
Same aseval(String)
except that the source of the script is provided as aReader
Object
AbstractScriptEngine. eval(Reader reader, Bindings bindings)
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.Object
ScriptEngine. eval(Reader reader, Bindings n)
Same aseval(String, Bindings)
except that the source of the script is provided as aReader
.Object
ScriptEngine. eval(Reader reader, ScriptContext context)
Same aseval(String, ScriptContext)
where the source of the script is read from aReader
.abstract Object
CompiledScript. eval(ScriptContext context)
Executes the program stored in thisCompiledScript
object.Object
AbstractScriptEngine. eval(String script)
Same aseval(Reader)
except that the abstracteval(String, ScriptContext)
is used.Object
ScriptEngine. eval(String script)
Executes the specified script.Object
AbstractScriptEngine. eval(String script, Bindings bindings)
Same aseval(Reader, Bindings)
except that the abstracteval(String, ScriptContext)
is used.Object
ScriptEngine. eval(String script, Bindings n)
Executes the script using theBindings
argument as theENGINE_SCOPE
Bindings
of theScriptEngine
during the script execution.Object
ScriptEngine. eval(String script, ScriptContext context)
Causes the immediate execution of the script whose source is the String passed as the first argument.Object
Invocable. invokeFunction(String name, Object... args)
Used to call top-level procedures and functions defined in scripts.Object
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
.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.