Package org.zkoss.xel.zel
Class ELXelExpression
- java.lang.Object
-
- org.zkoss.xel.zel.ELXelExpression
-
- All Implemented Interfaces:
java.io.Serializable,Expression,ExpressionX
public class ELXelExpression extends java.lang.Object implements ExpressionX, java.io.Serializable
An XEL Expression that is based on ZEL ValueExpression.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classELXelExpression.ValueReferenceImpl
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zel.ValueExpression_expr
-
Constructor Summary
Constructors Constructor Description ELXelExpression(org.zkoss.zel.ValueExpression expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectevaluate(XelContext xelc)Evaluates an expression that was previously prepared.java.lang.StringgetExpressionString()Returns the expression in String form.java.lang.ClassgetType(XelContext xelc)Returns the result type of this expression.ValueReferencegetValueReference(XelContext xelc)Returns the target bean and field name of this expression.booleanisReadOnly(XelContext xelc)Returns whether this is a read only (cannot setValue) expression.protected org.zkoss.zel.ELContextnewELContext(XelContext xelc)voidsetValue(XelContext xelc, java.lang.Object value)Set values into the property resolved by this expression.
-
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(XelContext xelc) throws XelException
Description copied from interface:ExpressionEvaluates an expression that was previously prepared.- Specified by:
evaluatein interfaceExpression- Throws:
XelException
-
isReadOnly
public boolean isReadOnly(XelContext xelc) throws XelException
Description copied from interface:ExpressionXReturns whether this is a read only (cannot setValue) expression.- Specified by:
isReadOnlyin interfaceExpressionX- Parameters:
xelc- the evaluation context- Returns:
- whether this is a read only (cannot setValue) expression.
- Throws:
XelException
-
setValue
public void setValue(XelContext xelc, java.lang.Object value) throws XelException
Description copied from interface:ExpressionXSet values into the property resolved by this expression.- Specified by:
setValuein interfaceExpressionX- Parameters:
xelc- the evaluation contextvalue- the value to be set into the property resolved by this expression- Throws:
XelException
-
getExpressionString
public java.lang.String getExpressionString()
Description copied from interface:ExpressionXReturns the expression in String form.- Specified by:
getExpressionStringin interfaceExpressionX- Returns:
- the expression in String form.
-
getType
public java.lang.Class getType(XelContext xelc)
Description copied from interface:ExpressionXReturns the result type of this expression.- Specified by:
getTypein interfaceExpressionX- Parameters:
xelc- the evaluation context- Returns:
- the result type of this expression.
-
getValueReference
public ValueReference getValueReference(XelContext xelc)
Description copied from interface:ExpressionXReturns the target bean and field name of this expression.- Specified by:
getValueReferencein interfaceExpressionX- Parameters:
xelc- the evaluation context- Returns:
- the target bean and field name of this expression.
-
newELContext
protected org.zkoss.zel.ELContext newELContext(XelContext xelc)
-
-