public class BindEvaluatorXImpl extends SimpleEvaluator implements BindEvaluatorX
BindEvaluatorX
.Constructor and Description |
---|
BindEvaluatorXImpl(FunctionMapper mapper,
java.lang.Class<? extends ExpressionFactory> expfcls) |
Modifier and Type | Method and Description |
---|---|
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.
|
evaluate, evaluate, getExpressionFactory, getExpressionFactoryClass, getFunctionMapper, getVariableResolver, newXelContext, parseExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, evaluate, parseExpression
public BindEvaluatorXImpl(FunctionMapper mapper, java.lang.Class<? extends ExpressionFactory> expfcls)
public java.lang.Object getValue(BindContext ctx, Component comp, ExpressionX expression) throws XelException
BindEvaluatorX
getValue
in interface BindEvaluatorX
ctx
- the scoped bind context of this operationcomp
- the scoped component context of this operationexpression
- the expression that will resolve a propertyXelException
public void setValue(BindContext ctx, Component comp, ExpressionX expression, java.lang.Object value) throws XelException
BindEvaluatorX
setValue
in interface BindEvaluatorX
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 propertyXelException
public ExpressionX parseExpressionX(BindContext ctx, java.lang.String expression, java.lang.Class<?> expectedType) throws XelException
BindEvaluatorX
parseExpressionX
in interface BindEvaluatorX
expression
- the expression to be prepared for being evaluated
later.expectedType
- the expected type of the result of the evaluationXelException
public java.lang.Class<?> getType(BindContext ctx, Component comp, ExpressionX expression) throws XelException
BindEvaluatorX
getType
in interface BindEvaluatorX
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
public ValueReference getValueReference(BindContext ctx, Component comp, ExpressionX expression) throws XelException
BindEvaluatorX
getValueReference
in interface BindEvaluatorX
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
protected XelContext newXelContext(BindContext ctx, Component comp)
public boolean isReadOnly(BindContext ctx, Component comp, ExpressionX expression) throws XelException
BindEvaluatorX
isReadOnly
in interface BindEvaluatorX
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyXelException
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.