|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of ScriptContext in javax.script |
---|
Classes in javax.script that implement ScriptContext | |
---|---|
class |
SimpleScriptContext
A simple implementation of ScriptContext . |
Fields in javax.script declared as ScriptContext | |
---|---|
protected ScriptContext |
AbstractScriptEngine.context
The default ScriptContext of this AbstractScriptEngine |
Methods in javax.script that return ScriptContext | |
---|---|
ScriptContext |
ScriptEngine.getContext()
Returns the default ScriptContext of the ScriptEngine whose Bindings, Readers and Writers are used for script executions when no ScriptContext is specified. |
ScriptContext |
AbstractScriptEngine.getContext()
Returns the default ScriptContext of the ScriptEngine whose Bindings, Readers and Writers are used for script executions when no ScriptContext is specified. |
protected ScriptContext |
AbstractScriptEngine.getScriptContext(Bindings bindings)
Returns a SimpleScriptContext which:
uses the specified Bindings as the ScriptEngine#ENGINE_SCOPE
has the same GLOBAL_SCOPE Bindings as the current context
uses the same Reader, Writer and Error Writer as the current context
|
Methods in javax.script with parameters of type ScriptContext | |
---|---|
java.lang.Object |
ScriptEngine.eval(java.io.Reader reader,
ScriptContext context)
Evaluates a script obtained using the specified reader as the script source and using the bindings in the specifed ScriptContext. |
abstract java.lang.Object |
CompiledScript.eval(ScriptContext context)
Evaluates the compiled script using the specified ScriptContext . |
java.lang.Object |
ScriptEngine.eval(java.lang.String script,
ScriptContext context)
Evaluates a script using the bindings in the specifed ScriptContext. |
void |
ScriptEngine.setContext(ScriptContext context)
Sets the default ScriptContext of the ScriptEngine whose Bindings, Readers and Writers are used for script executions when no ScriptContext is specified. |
void |
AbstractScriptEngine.setContext(ScriptContext context)
Sets the default ScriptContext of the ScriptEngine whose Bindings, Readers and Writers are used for script executions when no ScriptContext is specified. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |