Package org.zkoss.bind.impl
Class PropertyExpression
java.lang.Object
org.zkoss.bind.impl.PropertyExpression
- All Implemented Interfaces:
Serializable,Expression,ExpressionX
An implementation of component property expression to evaluate it with a reflection
method call instead of EL resolving.
Note that this class is used for Data Binding internal only
- Since:
- 8.0.0
- Author:
- jumperchen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(XelContext ctx) Evaluates an expression that was previously prepared.Returns the expression in String form.getType(XelContext xelc) Returns the result type of this expression.getValueReference(XelContext xelc) Returns the target bean and field name of this expression.booleanisReadOnly(XelContext ctx) Returns whether this is a read only (cannot setValue) expression.voidsetValue(XelContext ctx, Object value) Set values into the property resolved by this expression.
-
Constructor Details
-
PropertyExpression
-
-
Method Details
-
evaluate
Description copied from interface:ExpressionEvaluates an expression that was previously prepared.- Specified by:
evaluatein interfaceExpression- Throws:
XelException
-
isReadOnly
Description copied from interface:ExpressionXReturns whether this is a read only (cannot setValue) expression.- Specified by:
isReadOnlyin interfaceExpressionX- Parameters:
ctx- the evaluation context- Returns:
- whether this is a read only (cannot setValue) expression.
- Throws:
XelException
-
setValue
Description copied from interface:ExpressionXSet values into the property resolved by this expression.- Specified by:
setValuein interfaceExpressionX- Parameters:
ctx- the evaluation contextvalue- the value to be set into the property resolved by this expression- Throws:
XelException
-
getExpressionString
Description copied from interface:ExpressionXReturns the expression in String form.- Specified by:
getExpressionStringin interfaceExpressionX- Returns:
- the expression in String form.
-
getType
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
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.
-