Package org.zkoss.bind.impl
Class BindEvaluatorXImpl
java.lang.Object
org.zkoss.zk.xel.impl.SimpleEvaluator
org.zkoss.bind.impl.BindEvaluatorXImpl
- All Implemented Interfaces:
Serializable,BindEvaluatorX,org.zkoss.zk.xel.Evaluator
public class BindEvaluatorXImpl
extends org.zkoss.zk.xel.impl.SimpleEvaluator
implements BindEvaluatorX
A simple implementation of
BindEvaluatorX.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBindEvaluatorXImpl(org.zkoss.xel.FunctionMapper mapper, Class<? extends org.zkoss.xel.ExpressionFactory> expfcls) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getType(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) Returns the result type of the specified expression.getValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) Sets the specified value to the property resolved from the specified expression.org.zkoss.xel.ValueReferencegetValueReference(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) Returns the result reference of the specified expression.booleanisReadOnly(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) Returns whether the specified expression a read only expression.protected org.zkoss.xel.XelContextnewXelContext(BindContext ctx, org.zkoss.zk.ui.Component comp) org.zkoss.xel.ExpressionXparseExpressionX(BindContext ctx, String expression, Class<?> expectedType) Prepares the expressionX.voidsetValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression, Object value) Sets the specified value to the property resolved from the specified expression.Methods inherited from class org.zkoss.zk.xel.impl.SimpleEvaluator
evaluate, evaluate, getExpressionFactory, getExpressionFactoryClass, getFunctionMapper, getVariableResolver, newXelContext, parseExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zk.xel.Evaluator
evaluate, evaluate, parseExpression
-
Constructor Details
-
BindEvaluatorXImpl
public BindEvaluatorXImpl(org.zkoss.xel.FunctionMapper mapper, Class<? extends org.zkoss.xel.ExpressionFactory> expfcls)
-
-
Method Details
-
getValue
public Object getValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXSets the specified value to the property resolved from the specified expression.- Specified by:
getValuein interfaceBindEvaluatorX- Parameters:
ctx- the scoped bind context of this operationcomp- the scoped component context of this operationexpression- the expression that will resolve a property- Throws:
org.zkoss.xel.XelException
-
setValue
public void setValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression, Object value) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXSets the specified value to the property resolved from the specified expression.- Specified by:
setValuein interfaceBindEvaluatorX- Parameters:
ctx- the scoped bind context of this operationcomp- the scoped component context of this operationexpression- the expression that will resolve a propertyvalue- the value to be set into the resolved property- Throws:
org.zkoss.xel.XelException
-
parseExpressionX
public org.zkoss.xel.ExpressionX parseExpressionX(BindContext ctx, String expression, Class<?> expectedType) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXPrepares the expressionX.- Specified by:
parseExpressionXin interfaceBindEvaluatorXexpression- the expression to be prepared for being evaluated later.expectedType- the expected type of the result of the evaluation- Throws:
org.zkoss.xel.XelException
-
getType
public Class<?> getType(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXReturns the result type of the specified expression.- Specified by:
getTypein interfaceBindEvaluatorX- Parameters:
ctx- BindContextcomp- evaluation contextexpression- the expression that will resolve a property- Throws:
org.zkoss.xel.XelException
-
getValueReference
public org.zkoss.xel.ValueReference getValueReference(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXReturns the result reference of the specified expression.- Specified by:
getValueReferencein interfaceBindEvaluatorX- Parameters:
ctx- BindContextcomp- evaluation contextexpression- the expression that will resolve a property- Throws:
org.zkoss.xel.XelException
-
newXelContext
-
isReadOnly
public boolean isReadOnly(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException Description copied from interface:BindEvaluatorXReturns whether the specified expression a read only expression.- Specified by:
isReadOnlyin interfaceBindEvaluatorX- Parameters:
ctx- BindContextcomp- evaluation contextexpression- the expression that will resolve a property- Returns:
- whether the specified expression a read only expression.
- Throws:
org.zkoss.xel.XelException
-