Class CachingGroovyEngine

    • Constructor Detail

      • CachingGroovyEngine

        public CachingGroovyEngine()
    • Method Detail

      • eval

        public Object eval​(String source,
                           int lineNo,
                           int columnNo,
                           Object script)
                    throws org.apache.bsf.BSFException
        Evaluate an expression.
        Specified by:
        eval in interface org.apache.bsf.BSFEngine
        Overrides:
        eval in class GroovyEngine
        Throws:
        org.apache.bsf.BSFException
      • exec

        public void exec​(String source,
                         int lineNo,
                         int columnNo,
                         Object script)
                  throws org.apache.bsf.BSFException
        Execute a script.
        Specified by:
        exec in interface org.apache.bsf.BSFEngine
        Overrides:
        exec in class GroovyEngine
        Throws:
        org.apache.bsf.BSFException
      • initialize

        public void initialize​(org.apache.bsf.BSFManager mgr,
                               String lang,
                               Vector declaredBeans)
                        throws org.apache.bsf.BSFException
        Initialize the engine.
        Specified by:
        initialize in interface org.apache.bsf.BSFEngine
        Overrides:
        initialize in class GroovyEngine
        Throws:
        org.apache.bsf.BSFException