|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.script.CompiledScript
public abstract class CompiledScript
Base for classes that store the results of compilations. This class is immutable. See Javadoc of Java Scripting API
Constructor Summary | |
---|---|
CompiledScript()
|
Method Summary | |
---|---|
Object |
eval()
Executes the program stored in the CompiledScript object. |
Object |
eval(Bindings bindings)
Executes the program stored in the CompiledScript object using the supplied Bindings of attributes as the ENGINE_SCOPE of the associated ScriptEngine during script execution. |
abstract Object |
eval(ScriptContext context)
Evaluates the compiled 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompiledScript()
Method Detail |
---|
public Object eval() throws ScriptException
ScriptException
- if evaluation fails for any reasonpublic Object eval(Bindings bindings) throws ScriptException
bindings
- the bindings to be used as the ENGINE_SCOPE
ScriptException
- if the evaluation fails for any reasonpublic abstract Object eval(ScriptContext context) throws ScriptException
ScriptContext
.
context
- A ScriptContext to be used in the evalution
of the script
ScriptException
- if the evaluation fails for any reason
NullPointerException
- if context is nullpublic abstract ScriptEngine getEngine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |