| Package | Description |
|---|---|
| org.zkoss.xel |
XEL - Extensible Expression Language to encapsulate different
implementations, such as EL, MVEL and OGNL.
|
| org.zkoss.xel.el |
This implementation is based on zcommons-EL.
|
| org.zkoss.xel.util |
Utilties of XEL expressions.
|
| org.zkoss.xel.zel |
This implementation is based on ZEL 2.2 (Similar to EL 2.2).
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Expression.evaluate(XelContext ctx)
Evaluates an expression that was previously prepared.
|
Object |
ExpressionFactory.evaluate(XelContext ctx,
String expression,
Class<?> expectedType)
Evaluates an expression.
|
static Object |
Expressions.evaluate(XelContext ctx,
String expression,
Class<?> expectedType)
Evaluates an expression.
|
Class |
ExpressionX.getType(XelContext xelc)
Returns the result type of this expression.
|
ValueReference |
ExpressionX.getValueReference(XelContext xelc)
Returns the target bean and field name of this expression.
|
boolean |
ExpressionX.isReadOnly(XelContext ctx)
Returns whether this is a read only (cannot setValue) expression.
|
Expression |
ExpressionFactory.parseExpression(XelContext ctx,
String expression,
Class<?> expectedType)
Prepares (a.k.a., compiles) an expression.
|
Object |
VariableResolverX.resolveVariable(XelContext ctx,
Object base,
Object name)
Resolves the the given variable on the given base object.
|
void |
ExpressionX.setValue(XelContext ctx,
Object value)
Set values into the property resolved by this expression.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
ELFactory.evaluate(XelContext xelc,
String expression,
Class expectedType) |
Expression |
ELFactory.parseExpression(XelContext xelc,
String expression,
Class expectedType) |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleXelContext
A simple implementation of
XelContext. |
class |
XelContextProxy
A proxy to replace the variable resolver of a given XEL context.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
Evaluators.resolveVariable(XelContext ctx,
Object base,
Object name)
Resolves the variable based on the specified context.
|
static Object |
Evaluators.resolveVariable(XelContext ctx,
VariableResolver resolver,
Object base,
Object name)
Resolves the variable based on the the specified context and
variable resolver.
|
| Constructor and Description |
|---|
XelContextProxy(XelContext ctx,
FunctionMapper mapper)
Replaces the function mapper with the specified one,
but the variable resolver not changed.
|
XelContextProxy(XelContext ctx,
VariableResolver resolver)
Replaces the variable resolver with the specified one,
but the function mapper not changed.
|
XelContextProxy(XelContext ctx,
VariableResolver resolver,
FunctionMapper mapper)
Replaces both variable resolver and function mapper.
|
| Modifier and Type | Field and Description |
|---|---|
protected XelContext |
XelELResolver._ctx |
| Modifier and Type | Method and Description |
|---|---|
protected XelContext |
XelELContext.getXelContext() |
protected XelContext |
XelELResolver.getXelContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
ELXelExpression.evaluate(XelContext xelc) |
Object |
ELFactory.evaluate(XelContext xelc,
String expression,
Class expectedType) |
Class |
ELXelExpression.getType(XelContext xelc) |
ValueReference |
ELXelExpression.getValueReference(XelContext xelc) |
boolean |
ELXelExpression.isReadOnly(XelContext xelc) |
protected org.zkoss.zel.ELContext |
ELFactory.newELContext(XelContext xelc) |
protected org.zkoss.zel.ELContext |
ELXelExpression.newELContext(XelContext xelc) |
protected org.zkoss.zel.ELResolver |
XelELContext.newELResolver(XelContext xelc) |
Expression |
ELFactory.parseExpression(XelContext xelc,
String expression,
Class expectedType) |
void |
ELXelExpression.setValue(XelContext xelc,
Object value) |
| Constructor and Description |
|---|
XelELContext(XelContext xelc) |
XelELResolver(XelContext ctx)
Constructor.
|
Copyright © 2018. All rights reserved.