public class KawaScriptEngine
extends javax.script.AbstractScriptEngine
implements javax.script.Compilable
Constructor and Description |
---|
KawaScriptEngine(AbstractScriptEngineFactory factory) |
Modifier and Type | Method and Description |
---|---|
gnu.expr.KawaCompiledScript |
compile(gnu.kawa.io.InPort port,
javax.script.ScriptContext context) |
gnu.expr.KawaCompiledScript |
compile(gnu.kawa.io.InPort port,
javax.script.ScriptContext context,
SourceMessages messages) |
gnu.expr.KawaCompiledScript |
compile(java.io.Reader in) |
gnu.expr.KawaCompiledScript |
compile(java.lang.String string) |
javax.script.Bindings |
createBindings() |
java.lang.Object |
eval(gnu.kawa.io.InPort in,
javax.script.ScriptContext context) |
java.lang.Object |
eval(java.io.Reader in,
javax.script.ScriptContext context) |
java.lang.Object |
eval(java.lang.String string,
javax.script.ScriptContext context) |
AbstractScriptEngineFactory |
getFactory() |
public KawaScriptEngine(AbstractScriptEngineFactory factory)
public AbstractScriptEngineFactory getFactory()
getFactory
in interface javax.script.ScriptEngine
public javax.script.Bindings createBindings()
createBindings
in interface javax.script.ScriptEngine
public java.lang.Object eval(java.io.Reader in, javax.script.ScriptContext context) throws javax.script.ScriptException
eval
in interface javax.script.ScriptEngine
javax.script.ScriptException
public java.lang.Object eval(java.lang.String string, javax.script.ScriptContext context) throws javax.script.ScriptException
eval
in interface javax.script.ScriptEngine
javax.script.ScriptException
public java.lang.Object eval(gnu.kawa.io.InPort in, javax.script.ScriptContext context) throws javax.script.ScriptException
javax.script.ScriptException
public gnu.expr.KawaCompiledScript compile(java.lang.String string) throws javax.script.ScriptException
compile
in interface javax.script.Compilable
javax.script.ScriptException
public gnu.expr.KawaCompiledScript compile(java.io.Reader in) throws javax.script.ScriptException
compile
in interface javax.script.Compilable
javax.script.ScriptException
public gnu.expr.KawaCompiledScript compile(gnu.kawa.io.InPort port, javax.script.ScriptContext context) throws javax.script.ScriptException
javax.script.ScriptException
public gnu.expr.KawaCompiledScript compile(gnu.kawa.io.InPort port, javax.script.ScriptContext context, SourceMessages messages) throws SyntaxException, java.io.IOException
SyntaxException
java.io.IOException