public class JexlOne extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JexlOne()
Private constructor, ensure no instance.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
createExpression(java.lang.String expression)
Deprecated.
Create a JexlEngine and use createExpression() on that
|
static Script |
createScript(java.io.File scriptFile)
Deprecated.
Create a JexlEngine and use the createScript method on that instead.
|
static Script |
createScript(java.lang.String scriptText)
Deprecated.
Create a JexlEngine and use the createScript method on that instead.
|
static Script |
createScript(java.net.URL scriptUrl)
Deprecated.
Create a JexlEngine and use the createScript method on that instead.
|
protected JexlOne()
@Deprecated public static Script createScript(java.lang.String scriptText) throws java.lang.Exception
scriptText
- A String containing valid JEXL syntaxScript
which can be executed with a
JexlContext
.java.lang.Exception
- An exception can be thrown if there is a
problem parsing the script.@Deprecated public static Script createScript(java.io.File scriptFile) throws java.lang.Exception
File
containing valid JEXL syntax.
This method parses the script and validates the syntax.scriptFile
- A File
containing valid JEXL syntax.
Must not be null. Must be a readable file.Script
which can be executed with a
JexlContext
.java.lang.Exception
- An exception can be thrown if there is a problem
parsing the script.@Deprecated public static Script createScript(java.net.URL scriptUrl) throws java.lang.Exception
URL
containing valid JEXL syntax.
This method parses the script and validates the syntax.scriptUrl
- A URL
containing valid JEXL syntax.
Must not be null. Must be a readable file.Script
which can be executed with a
JexlContext
.java.lang.Exception
- An exception can be thrown if there is a problem
parsing the script.@Deprecated public static Expression createExpression(java.lang.String expression)
expression
- A String containing valid JEXL syntaxorg.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.