Class JuelScriptEngine

  • All Implemented Interfaces:
    javax.script.ScriptEngine

    public class JuelScriptEngine
    extends javax.script.AbstractScriptEngine
    ScriptEngine that used JUEL for script evaluation and compilation (JSR-223). Uses EL 1.1 if available, to resolve expressions. Otherwise it reverts to EL 1.0, using ExpressionFactoryResolver.
    Author:
    Frederik Heremans
    • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.script.Bindings createBindings()  
      java.lang.Object eval​(java.io.Reader reader, javax.script.ScriptContext scriptContext)  
      java.lang.Object eval​(java.lang.String script, javax.script.ScriptContext scriptContext)  
      javax.script.ScriptEngineFactory getFactory()  
      static void importFunctions​(javax.script.ScriptContext ctx, java.lang.String namespace, java.lang.Object obj)  
      • 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
    • Constructor Detail

      • JuelScriptEngine

        public JuelScriptEngine​(javax.script.ScriptEngineFactory scriptEngineFactory)
      • JuelScriptEngine

        public JuelScriptEngine()
    • Method Detail

      • eval

        public java.lang.Object eval​(java.lang.String script,
                                     javax.script.ScriptContext scriptContext)
                              throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • eval

        public java.lang.Object eval​(java.io.Reader reader,
                                     javax.script.ScriptContext scriptContext)
                              throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • getFactory

        public javax.script.ScriptEngineFactory getFactory()
      • createBindings

        public javax.script.Bindings createBindings()
      • importFunctions

        public static void importFunctions​(javax.script.ScriptContext ctx,
                                           java.lang.String namespace,
                                           java.lang.Object obj)