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™ 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 Description classSimpleScriptContextSimple implementation of ScriptContext.Fields in javax.script declared as ScriptContext Modifier and Type Field Description protected ScriptContextAbstractScriptEngine. contextThe defaultScriptContextof thisAbstractScriptEngine.Methods in javax.script that return ScriptContext Modifier and Type Method Description ScriptContextAbstractScriptEngine. getContext()Returns the value of the protectedcontextfield.ScriptContextScriptEngine. getContext()Returns the defaultScriptContextof theScriptEnginewhose Bindings, Reader and Writers are used for script executions when noScriptContextis specified.protected ScriptContextAbstractScriptEngine. getScriptContext(Bindings nn)Returns aSimpleScriptContext.Methods in javax.script with parameters of type ScriptContext Modifier and Type Method Description abstract ObjectCompiledScript. eval(ScriptContext context)Executes the program stored in thisCompiledScriptobject.ObjectScriptEngine. eval(Reader reader, ScriptContext context)Same aseval(String, ScriptContext)where the source of the script is read from aReader.ObjectScriptEngine. eval(String script, ScriptContext context)Causes the immediate execution of the script whose source is the String passed as the first argument.voidAbstractScriptEngine. setContext(ScriptContext ctxt)Sets the value of the protectedcontextfield to the specifiedScriptContext.voidScriptEngine. setContext(ScriptContext context)Sets the defaultScriptContextof theScriptEnginewhose Bindings, Reader and Writers are used for script executions when noScriptContextis specified.
-