| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleScriptContext
Simple implementation of ScriptContext.
|
| Modifier and Type | Field and Description |
|---|---|
protected ScriptContext |
AbstractScriptEngine.context
The default
ScriptContext of this
AbstractScriptEngine.
|
| Modifier and Type | Method and Description |
|---|---|
ScriptContext |
ScriptEngine.getContext()
Returns the default
ScriptContext of the
ScriptEngine whose Bindings, Reader and Writers are used for script executions when no
ScriptContext is specified.
|
ScriptContext |
AbstractScriptEngine.getContext()
Returns the value of the protected
context field.
|
protected ScriptContext |
AbstractScriptEngine.getScriptContext(Bindings
Returns a
SimpleScriptContext.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
ScriptEngine.eval(Reader
Same as
eval(String, ScriptContext) where the source of the script is read from a
Reader.
|
abstract Object |
CompiledScript.eval(ScriptContext
Executes the program stored in this
CompiledScript object.
|
Object |
ScriptEngine.eval(String
Causes the immediate execution of the script whose source is the String passed as the first argument.
|
void |
ScriptEngine.setContext(ScriptContext
Sets the default
ScriptContext of the
ScriptEngine whose Bindings, Reader and Writers are used for script executions when no
ScriptContext is specified.
|
void |
AbstractScriptEngine.setContext(ScriptContext
Sets the value of the protected
context field to the specified
ScriptContext.
|