php.java.script
Class CompiledPhpScript

java.lang.Object
  extended by javax.script.CompiledScript
      extended by php.java.script.CompiledPhpScript
All Implemented Interfaces:
java.lang.Cloneable, java.security.cert.CertStoreParameters, CloneableScript

public class CompiledPhpScript
extends CompiledScript
implements CloneableScript

A cloneable CompiledScript


Method Summary
 java.lang.Object clone()
          
 java.lang.Object eval(ScriptContext context)
          Re-evaluates the recompiled script using the specified ScriptContext.
 ScriptEngine getEngine()
          Retrieves a reference to the ScriptEngine whose methods created this CompiledScript object.
 
Methods inherited from class javax.script.CompiledScript
eval, eval
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eval

public java.lang.Object eval(ScriptContext context)
                      throws ScriptException
Re-evaluates the recompiled script using the specified ScriptContext.

Specified by:
eval in class CompiledScript
Parameters:
context - A ScriptContext to be used in the re-evalution of the script
Returns:
resultant object after the re-evaluation
Throws:
ScriptException - if the re-evaluation fails due to any reason

getEngine

public ScriptEngine getEngine()
Retrieves a reference to the ScriptEngine whose methods created this CompiledScript object.

Specified by:
getEngine in class CompiledScript
Returns:
the ScriptEngine which created this CompiledScript object

clone

public java.lang.Object clone()

Specified by:
clone in interface java.security.cert.CertStoreParameters
Overrides:
clone in class java.lang.Object