Package | Description |
---|---|
org.apache.commons.jexl |
Jexl-1.x compatible implementation.
|
org.apache.commons.jexl2 |
Provides a framework for evaluating JEXL expressions.
|
org.apache.commons.jexl2.scripting |
Contains the JSR-223 Scripting Engine for JEXL script.
|
Modifier and Type | Class and Description |
---|---|
private static class |
JexlOne.ContextAdapter
A Jexl1.x context wrapped into a Jexl2 context.
|
Modifier and Type | Method and Description |
---|---|
(package private) static JexlContext |
JexlOne.ContextAdapter.adapt(JexlContext aContext)
Adapts a Jexl-1.x context to a Jexl-2.0 context.
|
Modifier and Type | Class and Description |
---|---|
class |
MapContext
Wraps a map in a context.
|
class |
ObjectContext<T>
Wraps an Object as a Jexl context.
|
class |
ReadonlyContext
A readonly context wrapper.
|
class |
UnifiedJEXL.TemplateContext
The type of context to use during evaluation of templates.
|
Modifier and Type | Field and Description |
---|---|
protected JexlContext |
Interpreter.context
The context to store/retrieve variables.
|
static JexlContext |
JexlEngine.EMPTY_CONTEXT
An empty/static/non-mutable JexlContext used instead of null context.
|
private JexlContext |
UnifiedJEXL.TemplateContext.wrap
The wrapped context.
|
private JexlContext |
ReadonlyContext.wrapped
The wrapped context.
|
Modifier and Type | Method and Description |
---|---|
protected JexlContext |
Interpreter.getContext()
Gets the context.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Callable<java.lang.Object> |
Script.callable(JexlContext context)
Creates a Callable from this script.
|
java.util.concurrent.Callable<java.lang.Object> |
ExpressionImpl.callable(JexlContext context)
Creates a Callable from this script.
|
java.util.concurrent.Callable<java.lang.Object> |
Script.callable(JexlContext context,
java.lang.Object... args)
Creates a Callable from this script.
|
java.util.concurrent.Callable<java.lang.Object> |
ExpressionImpl.callable(JexlContext context,
java.lang.Object... args)
Creates a Callable from this script.
|
protected Interpreter |
JexlEngine.createInterpreter(JexlContext context)
Creates an interpreter.
|
protected Interpreter |
JexlEngine.createInterpreter(JexlContext context,
boolean strictFlag,
boolean silentFlag)
Creates an interpreter.
|
java.lang.Object |
UnifiedJEXL.Expression.evaluate(JexlContext context)
Evaluates this expression.
|
java.lang.Object |
ExpressionImpl.evaluate(JexlContext context)
Evaluates the expression with the variables contained in the
supplied
JexlContext . |
java.lang.Object |
Expression.evaluate(JexlContext context)
Evaluates the expression with the variables contained in the
supplied
JexlContext . |
void |
UnifiedJEXL.Template.evaluate(JexlContext context,
java.io.Writer writer)
Evaluates this template.
|
void |
UnifiedJEXL.Template.evaluate(JexlContext context,
java.io.Writer writer,
java.lang.Object... args)
Evaluates this template.
|
java.lang.Object |
Script.execute(JexlContext context)
Executes the script with the variables contained in the
supplied
JexlContext . |
java.lang.Object |
ExpressionImpl.execute(JexlContext context)
Executes the script with the variables contained in the
supplied
JexlContext . |
java.lang.Object |
Script.execute(JexlContext context,
java.lang.Object... args)
Executes the script with the variables contained in the
supplied
JexlContext and a set of arguments corresponding to the
parameters used during parsing. |
java.lang.Object |
ExpressionImpl.execute(JexlContext context,
java.lang.Object... args)
Executes the script with the variables contained in the
supplied
JexlContext and a set of arguments corresponding to the
parameters used during parsing. |
java.lang.Object |
JexlEngine.getProperty(JexlContext context,
java.lang.Object bean,
java.lang.String expr)
Accesses properties of a bean using an expression.
|
UnifiedJEXL.Expression |
UnifiedJEXL.Expression.prepare(JexlContext context)
Evaluates the immediate sub-expressions.
|
UnifiedJEXL.Template |
UnifiedJEXL.Template.prepare(JexlContext context)
Prepares this template by expanding any contained deferred expression.
|
void |
JexlEngine.setProperty(JexlContext context,
java.lang.Object bean,
java.lang.String expr,
java.lang.Object value)
Assign properties of a bean using an expression.
|
Constructor and Description |
---|
Interpreter(JexlEngine jexl,
JexlContext aContext)
Deprecated.
|
Interpreter(JexlEngine jexl,
JexlContext aContext,
boolean strictFlag,
boolean silentFlag)
Creates an interpreter.
|
ReadonlyContext(JexlContext context)
Creates a new readonly context.
|
TemplateContext(JexlContext jcontext,
JexlEngine.Frame jframe,
UnifiedJEXL.Expression[] expressions,
java.io.Writer out)
Creates a template context instance.
|
Modifier and Type | Class and Description |
---|---|
private class |
JexlScriptEngine.JexlContextWrapper
Wrapper to help convert a JSR-223 ScriptContext into a JexlContext.
|