Package gnu.expr

Class KawaScriptEngine

  • All Implemented Interfaces:
    javax.script.Compilable, javax.script.ScriptEngine

    public class KawaScriptEngine
    extends javax.script.AbstractScriptEngine
    implements javax.script.Compilable
    • Field Summary

      • Fields inherited from class javax.script.AbstractScriptEngine

        context
      • Fields inherited from interface javax.script.ScriptEngine

        ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class javax.script.AbstractScriptEngine

        eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createBindings

        public javax.script.Bindings createBindings()
        Specified by:
        createBindings in interface javax.script.ScriptEngine
      • eval

        public java.lang.Object eval​(java.io.Reader in,
                                     javax.script.ScriptContext context)
                              throws javax.script.ScriptException
        Specified by:
        eval in interface javax.script.ScriptEngine
        Throws:
        javax.script.ScriptException
      • eval

        public java.lang.Object eval​(java.lang.String string,
                                     javax.script.ScriptContext context)
                              throws javax.script.ScriptException
        Specified by:
        eval in interface javax.script.ScriptEngine
        Throws:
        javax.script.ScriptException
      • eval

        public java.lang.Object eval​(gnu.kawa.io.InPort in,
                                     javax.script.ScriptContext context)
                              throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • compile

        public gnu.expr.KawaCompiledScript compile​(java.lang.String string)
                                            throws javax.script.ScriptException
        Specified by:
        compile in interface javax.script.Compilable
        Throws:
        javax.script.ScriptException
      • compile

        public gnu.expr.KawaCompiledScript compile​(java.io.Reader in)
                                            throws javax.script.ScriptException
        Specified by:
        compile in interface javax.script.Compilable
        Throws:
        javax.script.ScriptException
      • compile

        public gnu.expr.KawaCompiledScript compile​(gnu.kawa.io.InPort port,
                                                   javax.script.ScriptContext context)
                                            throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • compile

        public gnu.expr.KawaCompiledScript compile​(gnu.kawa.io.InPort port,
                                                   javax.script.ScriptContext context,
                                                   SourceMessages messages)
                                            throws SyntaxException,
                                                   java.io.IOException
        Throws:
        SyntaxException
        java.io.IOException