public class QuercusScriptEngine
extends javax.script.AbstractScriptEngine
implements javax.script.Compilable
Constructor and Description |
---|
QuercusScriptEngine() |
QuercusScriptEngine(boolean isUnicodeSemantics) |
QuercusScriptEngine(QuercusContext quercus) |
QuercusScriptEngine(QuercusScriptEngineFactory factory) |
QuercusScriptEngine(QuercusScriptEngineFactory factory,
boolean isUnicodeSemantics) |
QuercusScriptEngine(QuercusScriptEngineFactory factory,
QuercusContext quercus) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down Quercus and free resources.
|
javax.script.CompiledScript |
compile(java.io.Reader reader)
compiles based on a reader.
|
javax.script.CompiledScript |
compile(java.lang.String script)
evaluates based on a script.
|
javax.script.Bindings |
createBindings()
Creates a bindings.
|
java.lang.Object |
eval(java.io.Reader script,
javax.script.ScriptContext cxt)
evaluates based on a reader.
|
java.lang.Object |
eval(java.lang.String script,
javax.script.ScriptContext cxt)
evaluates based on a script.
|
protected void |
finalize() |
QuercusScriptEngineFactory |
getFactory()
Returns the engine's factory.
|
QuercusContext |
getQuercus()
Returns the Quercus object.
|
java.lang.String |
getScriptEncoding()
Returns the encoding to use for reading in scripts (default utf-8).
|
boolean |
isUnicodeSemantics()
Returns true if unicode.semantics (PHP6) is on.
|
void |
setScriptEncoding(java.lang.String encoding)
Sets the encoding to use for reading in scripts.
|
void |
setUnicodeSemantics(boolean isUnicodeSemantics)
True to turn on unicode.semantics (PHP6).
|
java.lang.String |
toString() |
public QuercusScriptEngine()
public QuercusScriptEngine(boolean isUnicodeSemantics)
public QuercusScriptEngine(QuercusContext quercus)
public QuercusScriptEngine(QuercusScriptEngineFactory factory)
public QuercusScriptEngine(QuercusScriptEngineFactory factory, boolean isUnicodeSemantics)
public QuercusScriptEngine(QuercusScriptEngineFactory factory, QuercusContext quercus)
public boolean isUnicodeSemantics()
public void setUnicodeSemantics(boolean isUnicodeSemantics)
public java.lang.String getScriptEncoding()
public void setScriptEncoding(java.lang.String encoding)
public QuercusContext getQuercus()
public java.lang.Object eval(java.io.Reader script, javax.script.ScriptContext cxt) throws javax.script.ScriptException
eval
in interface javax.script.ScriptEngine
javax.script.ScriptException
public java.lang.Object eval(java.lang.String script, javax.script.ScriptContext cxt) throws javax.script.ScriptException
eval
in interface javax.script.ScriptEngine
javax.script.ScriptException
public javax.script.CompiledScript compile(java.io.Reader reader) throws javax.script.ScriptException
compile
in interface javax.script.Compilable
javax.script.ScriptException
public javax.script.CompiledScript compile(java.lang.String script) throws javax.script.ScriptException
compile
in interface javax.script.Compilable
javax.script.ScriptException
public QuercusScriptEngineFactory getFactory()
getFactory
in interface javax.script.ScriptEngine
public javax.script.Bindings createBindings()
createBindings
in interface javax.script.ScriptEngine
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object