|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.xel.impl.SimpleEvaluator
org.zkoss.bind.impl.BindEvaluatorXImpl
public class BindEvaluatorXImpl
A simple implementation of BindEvaluatorX.
| Constructor Summary | |
|---|---|
BindEvaluatorXImpl(FunctionMapper mapper,
java.lang.Class<? extends ExpressionFactory> expfcls)
|
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getType(BindContext ctx,
Component comp,
ExpressionX expression)
Returns the result type of the specified expression. |
java.lang.Object |
getValue(BindContext ctx,
Component comp,
ExpressionX expression)
Sets the specified value to the property resolved from the specified expression. |
ValueReference |
getValueReference(BindContext ctx,
Component comp,
ExpressionX expression)
Returns the result reference of the specified expression. |
boolean |
isReadOnly(BindContext ctx,
Component comp,
ExpressionX expression)
Returns whether the specified expression a read only expression. |
protected XelContext |
newXelContext(BindContext ctx,
Component comp)
|
ExpressionX |
parseExpressionX(BindContext ctx,
java.lang.String expression,
java.lang.Class<?> expectedType)
Prepares the expressionX. |
void |
setValue(BindContext ctx,
Component comp,
ExpressionX expression,
java.lang.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, parseExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.zkoss.zk.xel.Evaluator |
|---|
evaluate, evaluate, parseExpression |
| Constructor Detail |
|---|
public BindEvaluatorXImpl(FunctionMapper mapper,
java.lang.Class<? extends ExpressionFactory> expfcls)
| Method Detail |
|---|
public java.lang.Object getValue(BindContext ctx,
Component comp,
ExpressionX expression)
throws XelException
BindEvaluatorX
getValue in interface BindEvaluatorXctx - the scoped bind context of this operationcomp - the scoped component context of this operationexpression - the expression that will resolve a property
XelException
public void setValue(BindContext ctx,
Component comp,
ExpressionX expression,
java.lang.Object value)
throws XelException
BindEvaluatorX
setValue in interface BindEvaluatorXctx - 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
XelException
public ExpressionX parseExpressionX(BindContext ctx,
java.lang.String expression,
java.lang.Class<?> expectedType)
throws XelException
BindEvaluatorX
parseExpressionX in interface BindEvaluatorXexpression - the expression to be prepared for being evaluated
later.expectedType - the expected type of the result of the evaluation
XelException
public java.lang.Class<?> getType(BindContext ctx,
Component comp,
ExpressionX expression)
throws XelException
BindEvaluatorX
getType in interface BindEvaluatorXctx - BindContextcomp - evaluation contextexpression - the expression that will resolve a property
XelException
public ValueReference getValueReference(BindContext ctx,
Component comp,
ExpressionX expression)
throws XelException
BindEvaluatorX
getValueReference in interface BindEvaluatorXctx - BindContextcomp - evaluation contextexpression - the expression that will resolve a property
XelException
protected XelContext newXelContext(BindContext ctx,
Component comp)
public boolean isReadOnly(BindContext ctx,
Component comp,
ExpressionX expression)
throws XelException
BindEvaluatorX
isReadOnly in interface BindEvaluatorXctx - BindContextcomp - evaluation contextexpression - the expression that will resolve a property
XelException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||