CompiledScript is associated with a ScriptEngine -- A call to an eval
method of the CompiledScript causes the execution of the script by the
ScriptEngine. Changes in the state of the ScriptEngine caused by execution
of the CompiledScript may visible during subsequent executions of scripts by the engine.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | Returns: The value returned by the script execution, if any. Should returnnull
if no value is returned by the script execution.A context)ScriptContext that is used in the same way as
the ScriptContext passed to the eval methods of
ScriptEngine.Executes the program stored in this |
| public Object | Returns: The return value from the script executionThe bindings of attributes used for the bindings)ENGINE_SCOPE.Executes the program stored in the |
| public Object | Returns: The return value from the script executionExecutes the program stored in the |
| public abstract ScriptEngine | Returns: TheScriptEngine that created this CompiledScriptReturns the |
| CompiledScript | back to summary |
|---|---|
| public CompiledScript() Constructor for subclasses to call. | |
| eval | back to summary |
|---|---|
| public abstract Object eval(ScriptContext context) throws ScriptException Executes the program stored in this
| |
| eval | back to summary |
|---|---|
| public Object eval(Bindings bindings) throws ScriptException Executes the program stored in the .
The
| |
| eval | back to summary |
|---|---|
| public Object eval() throws ScriptException Executes the program stored in the
| |
| getEngine | back to summary |
|---|---|
| public abstract ScriptEngine getEngine() Returns the
| |