Uses of Class
javax.script.ScriptException
| Package | Description |
|---|---|
| javax.script |
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
Methods in javax.script that throw ScriptException Modifier and Type Method Description CompiledScriptCompilable. compile(Reader script)Compiles the script (source read fromReader) for later execution.CompiledScriptCompilable. compile(String script)Compiles the script (source represented as aString) for later execution.ObjectAbstractScriptEngine. eval(Reader reader)eval(Reader)calls the abstracteval(Reader, ScriptContext)passing the value of thecontextfield.ObjectAbstractScriptEngine. eval(Reader reader, Bindings bindings)eval(Reader, Bindings)calls the abstracteval(Reader, ScriptContext)method, passing it aScriptContextwhose Reader, Writers and Bindings for scopes other thatENGINE_SCOPEare identical to those members of the protectedcontextfield.ObjectAbstractScriptEngine. eval(String script)Same aseval(Reader)except that the abstracteval(String, ScriptContext)is used.ObjectAbstractScriptEngine. eval(String script, Bindings bindings)Same aseval(Reader, Bindings)except that the abstracteval(String, ScriptContext)is used.ObjectCompiledScript. eval()Executes the program stored in theCompiledScriptobject.ObjectCompiledScript. eval(Bindings bindings)Executes the program stored in theCompiledScriptobject using the suppliedBindingsof attributes as theENGINE_SCOPEof the associatedScriptEngineduring script execution.abstract ObjectCompiledScript. eval(ScriptContext context)Executes the program stored in thisCompiledScriptobject.ObjectScriptEngine. eval(Reader reader)Same aseval(String)except that the source of the script is provided as aReaderObjectScriptEngine. eval(Reader reader, Bindings n)Same aseval(String, Bindings)except that the source of the script is provided as aReader.ObjectScriptEngine. eval(Reader reader, ScriptContext context)Same aseval(String, ScriptContext)where the source of the script is read from aReader.ObjectScriptEngine. eval(String script)Executes the specified script.ObjectScriptEngine. eval(String script, Bindings n)Executes the script using theBindingsargument as theENGINE_SCOPEBindingsof theScriptEngineduring the script execution.ObjectScriptEngine. eval(String script, ScriptContext context)Causes the immediate execution of the script whose source is the String passed as the first argument.ObjectInvocable. invokeFunction(String name, Object... args)Used to call top-level procedures and functions defined in scripts.ObjectInvocable. 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.