Class JexlScriptEngine.JexlCompiledScript

  • Enclosing class:
    JexlScriptEngine

    private final class JexlScriptEngine.JexlCompiledScript
    extends javax.script.CompiledScript
    Wrapper to help convert a JEXL JexlScript into a JSR-223 CompiledScript.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private JexlScript script
      The underlying JEXL expression instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object eval​(javax.script.ScriptContext context)  
      javax.script.ScriptEngine getEngine()  
      java.lang.String toString()  
      • Methods inherited from class javax.script.CompiledScript

        eval, eval
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • script

        private final JexlScript script
        The underlying JEXL expression instance.
    • Constructor Detail

      • JexlCompiledScript

        JexlCompiledScript​(JexlScript theScript)
        Creates an instance.
        Parameters:
        theScript - to wrap
    • Method Detail

      • eval

        public java.lang.Object eval​(javax.script.ScriptContext context)
                              throws javax.script.ScriptException
        Specified by:
        eval in class javax.script.CompiledScript
        Throws:
        javax.script.ScriptException
      • getEngine

        public javax.script.ScriptEngine getEngine()
        Specified by:
        getEngine in class javax.script.CompiledScript
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object