public class JavaCompiledScript
extends javax.script.CompiledScript
JavaScriptEngine.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval(javax.script.ScriptContext context) |
java.lang.Class<?> |
getCompiledClass()
Returns the compiled
Class. |
java.lang.Object |
getCompiledInstance()
Returns the instance of the compiled
Class. |
javax.script.ScriptEngine |
getEngine() |
java.lang.Object |
getInstance()
Deprecated.
in release 1.1.0 this method was deprecated,
use
getCompiledInstance() instead. |
java.lang.Class<?> |
getInstanceClass()
Deprecated.
in release 1.1.0 this method was deprecated,
use
getCompiledClass() instead. |
void |
setExecutionStrategy(ExecutionStrategy executionStrategy)
Sets the
ExecutionStrategy to be used when evaluating the compiled class instance. |
public java.lang.Class<?> getCompiledClass()
Class.Class.public java.lang.Object getCompiledInstance()
Class.Class or null
if no instance was created and only static methods will be called
by the the ExecutionStrategy.@Deprecated public java.lang.Class<?> getInstanceClass()
getCompiledClass() instead.Class.Class.@Deprecated public java.lang.Object getInstance()
getCompiledInstance() instead.Class.Class or null
if no instance was created and only static methods will be called
by the the ExecutionStrategy.public void setExecutionStrategy(ExecutionStrategy executionStrategy)
ExecutionStrategy to be used when evaluating the compiled class instance.executionStrategy - the ExecutionStrategypublic javax.script.ScriptEngine getEngine()
getEngine in class javax.script.CompiledScriptpublic java.lang.Object eval(javax.script.ScriptContext context)
throws javax.script.ScriptException
eval in class javax.script.CompiledScriptjavax.script.ScriptException