Class JexlOne
java.lang.Object
org.apache.commons.jexl.JexlOne
- Direct Known Subclasses:
ExpressionFactory, ScriptFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressioncreateExpression(String expression) Deprecated.Create a JexlEngine and use createExpression() on thatstatic ScriptcreateScript(File scriptFile) Deprecated.Create a JexlEngine and use the createScript method on that instead.static ScriptcreateScript(String scriptText) Deprecated.Create a JexlEngine and use the createScript method on that instead.static ScriptcreateScript(URL scriptUrl) Deprecated.Create a JexlEngine and use the createScript method on that instead.
-
Constructor Details
-
JexlOne
protected JexlOne()Private constructor, ensure no instance.
-
-
Method Details
-
createScript
Deprecated.Create a JexlEngine and use the createScript method on that instead.Creates a Script from a String containing valid JEXL syntax. This method parses the script which validates the syntax.- Parameters:
scriptText- A String containing valid JEXL syntax- Returns:
- A
Scriptwhich can be executed with aJexlContext. - Throws:
Exception- An exception can be thrown if there is a problem parsing the script.
-
createScript
Deprecated.Create a JexlEngine and use the createScript method on that instead.Creates a Script from aFilecontaining valid JEXL syntax. This method parses the script and validates the syntax.- Parameters:
scriptFile- AFilecontaining valid JEXL syntax. Must not be null. Must be a readable file.- Returns:
- A
Scriptwhich can be executed with aJexlContext. - Throws:
Exception- An exception can be thrown if there is a problem parsing the script.
-
createScript
Deprecated.Create a JexlEngine and use the createScript method on that instead.Creates a Script from aURLcontaining valid JEXL syntax. This method parses the script and validates the syntax.- Parameters:
scriptUrl- AURLcontaining valid JEXL syntax. Must not be null. Must be a readable file.- Returns:
- A
Scriptwhich can be executed with aJexlContext. - Throws:
Exception- An exception can be thrown if there is a problem parsing the script.
-
createExpression
Deprecated.Create a JexlEngine and use createExpression() on thatCreates an Expression from a String containing valid JEXL syntax. This method parses the expression which must contain either a reference or an expression.- Parameters:
expression- A String containing valid JEXL syntax- Returns:
- An Expression object which can be evaluated with a JexlContext
- Throws:
org.apache.commons.jexl2.JexlException- An exception can be thrown if there is a problem parsing this expression, or if the expression is neither an expression or a reference.
-