Uses of Interface
javax.script.ScriptContext
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 ScriptContext in javax.script
Modifier and TypeClassDescriptionclass
Simple implementation of ScriptContext.Modifier and TypeFieldDescriptionprotected ScriptContext
AbstractScriptEngine.context
The defaultScriptContext
of thisAbstractScriptEngine
.Modifier and TypeMethodDescriptionAbstractScriptEngine.getContext()
Returns the value of the protectedcontext
field.ScriptEngine.getContext()
Returns the defaultScriptContext
of theScriptEngine
whose Bindings, Reader and Writers are used for script executions when noScriptContext
is specified.protected ScriptContext
AbstractScriptEngine.getScriptContext(Bindings nn)
Returns aSimpleScriptContext
.Modifier and TypeMethodDescriptionabstract Object
CompiledScript.eval(ScriptContext context)
Executes the program stored in thisCompiledScript
object.ScriptEngine.eval(Reader reader, ScriptContext context)
Same aseval(String, ScriptContext)
where the source of the script is read from aReader
.ScriptEngine.eval(String script, ScriptContext context)
Causes the immediate execution of the script whose source is the String passed as the first argument.void
AbstractScriptEngine.setContext(ScriptContext ctxt)
Sets the value of the protectedcontext
field to the specifiedScriptContext
.void
ScriptEngine.setContext(ScriptContext context)
Sets the defaultScriptContext
of theScriptEngine
whose Bindings, Reader and Writers are used for script executions when noScriptContext
is specified.