Package | Description |
---|---|
org.apache.commons.jexl3 |
Provides a framework for evaluating JEXL expressions.
|
org.apache.commons.jexl3.internal |
Provides utilities for introspection services.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
JexlContext.ThreadLocal
A marker interface that indicates the interpreter to put this context in the JexlEngine thread local context
instance during evaluation.
|
Modifier and Type | Class and Description |
---|---|
class |
MapContext
Wraps a map in a context.
|
class |
ObjectContext<T>
Wraps an Object as a JEXL context and NamespaceResolver.
|
Modifier and Type | Field and Description |
---|---|
static JexlContext |
JexlEngine.EMPTY_CONTEXT
An empty/static/non-mutable JexlContext used instead of null context.
|
Modifier and Type | Method and Description |
---|---|
Callable<Object> |
JexlScript.callable(JexlContext context)
Creates a Callable from this script.
|
Callable<Object> |
JexlScript.callable(JexlContext context,
Object... args)
Creates a Callable from this script.
|
Object |
JexlContext.NamespaceFunctor.createFunctor(JexlContext context)
Creates the functor object that will be used instead of the namespace.
|
Object |
JxltEngine.Expression.evaluate(JexlContext context)
Evaluates this expression.
|
Object |
JexlExpression.evaluate(JexlContext context)
Evaluates the expression with the variables contained in the
supplied
JexlContext . |
void |
JxltEngine.Template.evaluate(JexlContext context,
Writer writer)
Evaluates this template.
|
void |
JxltEngine.Template.evaluate(JexlContext context,
Writer writer,
Object... args)
Evaluates this template.
|
Object |
JexlScript.execute(JexlContext context)
Executes the script with the variables contained in the
supplied
JexlContext . |
Object |
JexlScript.execute(JexlContext context,
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. |
abstract Object |
JexlEngine.getProperty(JexlContext context,
Object bean,
String expr)
Accesses properties of a bean using an expression.
|
JxltEngine.Expression |
JxltEngine.Expression.prepare(JexlContext context)
Evaluates the immediate sub-expressions.
|
JxltEngine.Template |
JxltEngine.Template.prepare(JexlContext context)
Prepares this template by expanding any contained deferred TemplateExpression.
|
abstract void |
JexlEngine.setProperty(JexlContext context,
Object bean,
String expr,
Object value)
Assign properties of a bean using an expression.
|
Modifier and Type | Field and Description |
---|---|
protected JexlContext |
Interpreter.context
The context to store/retrieve variables.
|
Modifier and Type | Method and Description |
---|---|
Callable<Object> |
Script.callable(JexlContext context)
Creates a Callable from this script.
|
Callable<Object> |
Closure.callable(JexlContext context,
Object... args) |
Callable<Object> |
Script.callable(JexlContext context,
Object... args)
Creates a Callable from this script.
|
protected Interpreter |
Engine.createInterpreter(JexlContext context,
Scope.Frame frame)
Creates an interpreter.
|
protected Interpreter |
Script.createInterpreter(JexlContext context,
Scope.Frame frame)
Creates this script interpreter.
|
Object |
Closure.evaluate(JexlContext context) |
Object |
Script.evaluate(JexlContext context)
Evaluates the expression with the variables contained in the
supplied
JexlContext . |
void |
TemplateScript.evaluate(JexlContext context,
Writer writer) |
void |
TemplateScript.evaluate(JexlContext context,
Writer writer,
Object... args) |
Object |
Closure.execute(JexlContext context) |
Object |
Script.execute(JexlContext context)
Executes the script with the variables contained in the
supplied
JexlContext . |
Object |
Script.Curried.execute(JexlContext context) |
Object |
Closure.execute(JexlContext context,
Object... args) |
Object |
Script.execute(JexlContext context,
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. |
Object |
Script.Curried.execute(JexlContext context,
Object... args) |
Object |
Engine.getProperty(JexlContext context,
Object bean,
String expr) |
TemplateScript |
TemplateScript.prepare(JexlContext context) |
void |
Engine.setProperty(JexlContext context,
Object bean,
String expr,
Object value) |
Constructor and Description |
---|
Interpreter(Engine engine,
JexlContext aContext,
Scope.Frame eFrame)
Creates an interpreter.
|
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.