Uses of Interface
javax.script.ScriptContext
-
Packages that use ScriptContext 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 ScriptContext in javax.script
Classes in javax.script that implement ScriptContext Modifier and Type Class and Description class
SimpleScriptContext
Simple implementation of ScriptContext.Fields in javax.script declared as ScriptContext Modifier and Type Field and Description protected ScriptContext
AbstractScriptEngine. context
The defaultScriptContext
of thisAbstractScriptEngine
.Methods in javax.script that return ScriptContext Modifier and Type Method and Description ScriptContext
AbstractScriptEngine. getContext()
Returns the value of the protectedcontext
field.ScriptContext
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
.Methods in javax.script with parameters of type ScriptContext Modifier and Type Method and Description 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
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.
-
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.