public class JexlOne
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
JexlOne.ContextAdapter
A Jexl1.x context wrapped into a Jexl2 context.
|
private static class |
JexlOne.EngineHolder
Lazy JexlEngine singleton through on demand holder idiom.
|
private static class |
JexlOne.JexlOneEngine
An engine that uses a JexlOneInterpreter.
|
private static class |
JexlOne.JexlOneExpression
The specific Jexl-1.x expressions implementation.
|
private static class |
JexlOne.JexlOneInterpreter
An interpreter made compatible with v1.1 behavior (at least Jelly's expectations).
|
Modifier and Type | Field and Description |
---|---|
private static int |
CACHE_SIZE
Default cache size.
|
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.
|
private static final int CACHE_SIZE
@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 syntaxJexlException
- An exception can be thrown if there is a problem
parsing this expression, or if the expression is neither an
expression or a reference.