|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.script.CompiledScript
public abstract class CompiledScript
ComplieScript interface is an abstraction for the intermediate code produced by the compilation and contains methods which allow the re-execution of the intermediate code retained.
Constructor Summary | |
---|---|
CompiledScript()
|
Method Summary | |
---|---|
java.lang.Object |
eval()
Re-evaluates the pre-compiled script |
java.lang.Object |
eval(Bindings namespace)
Re-evaluates the pre-compiled script using the specified namespace as the SCRIPT_SCOPE and using ENGINE_SCOPE, GLOBAL_SCOPE of the associated ScriptEngine. |
abstract java.lang.Object |
eval(ScriptContext context)
Re-evaluates the recompiled script using the specified ScriptContext. |
abstract ScriptEngine |
getEngine()
Retrieves a reference to the ScriptEngine whose methods created this CompiledScript object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompiledScript()
Method Detail |
---|
public java.lang.Object eval() throws ScriptException
ScriptException
- if the re-evaluation fails due to any
reasonpublic java.lang.Object eval(Bindings namespace) throws ScriptException
namespace
- the namespace to be used as the SCRIPT_SCOPE
ScriptException
- if the re-evaluation fails due to any
reasonpublic abstract java.lang.Object eval(ScriptContext context) throws ScriptException
context
- A ScriptContext to be used in the re-evalution
of the script
ScriptException
- if the re-evaluation fails due to any
reasonpublic abstract ScriptEngine getEngine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |