php.java.script
Class PhpScriptEngine

java.lang.Object
  extended by javax.script.AbstractScriptEngine
      extended by php.java.script.SimplePhpScriptEngine
          extended by php.java.script.PhpScriptEngine
All Implemented Interfaces:
java.io.Closeable, ScriptEngine
Direct Known Subclasses:
PhpServletScriptEngine

public class PhpScriptEngine
extends SimplePhpScriptEngine

This class implements the ScriptEngine.

Example:

ScriptEngine e = (new ScriptEngineManager()).getEngineByName("php");
try { e.eval(<?php foo() ?>"); } catch (ScriptException e) { ... }

Author:
jostb

Field Summary
 
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
 
Constructor Summary
PhpScriptEngine()
          Create a new ScriptEngine with a default context.
PhpScriptEngine(PhpScriptEngineFactory factory)
          Create a new ScriptEngine from a factory.
 
Method Summary
 
Methods inherited from class php.java.script.SimplePhpScriptEngine
close, createBindings, eval, eval, getFactory, release
 
Methods inherited from class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhpScriptEngine

public PhpScriptEngine()
Create a new ScriptEngine with a default context.


PhpScriptEngine

public PhpScriptEngine(PhpScriptEngineFactory factory)
Create a new ScriptEngine from a factory.

Parameters:
factory - The factory
See Also:
SimplePhpScriptEngine.getFactory()