Class JexlScriptEngine.JexlCompiledScript
- java.lang.Object
-
- javax.script.CompiledScript
-
- org.apache.commons.jexl3.scripting.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.
-
Constructor Summary
Constructors Constructor Description JexlCompiledScript(JexlScript theScript)
Creates an 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()
-
-
-
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 classjavax.script.CompiledScript
- Throws:
javax.script.ScriptException
-
getEngine
public javax.script.ScriptEngine getEngine()
- Specified by:
getEngine
in classjavax.script.CompiledScript
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-