Package org.zkoss.zkmax.bind.impl
Class ValueExpressionImplEx
- java.lang.Object
-
- org.zkoss.zel.Expression
-
- org.zkoss.zel.ValueExpression
-
- org.zkoss.zel.impl.ValueExpressionImpl
-
- org.zkoss.zkmax.bind.impl.ValueExpressionImplEx
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
public class ValueExpressionImplEx extends ValueExpressionImpl
An extension of ValueExpressionImpl to do a lazy initiating EL expression construction.- Since:
- 8.0.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueExpressionImplEx()
ValueExpressionImplEx(java.lang.String expr, Node node, FunctionMapper fnMapper, VariableMapper varMapper, java.lang.Class<?> expectedType, BindExpressionBuilderEx buidler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getValue(ELContext context)
void
setValue(ELContext context, java.lang.Object value)
-
Methods inherited from class org.zkoss.zel.impl.ValueExpressionImpl
equals, getExpectedType, getExpressionString, getType, getValueReference, hashCode, isLiteralText, isReadOnly, readExternal, toString, writeExternal
-
-
-
-
Constructor Detail
-
ValueExpressionImplEx
public ValueExpressionImplEx()
-
ValueExpressionImplEx
public ValueExpressionImplEx(java.lang.String expr, Node node, FunctionMapper fnMapper, VariableMapper varMapper, java.lang.Class<?> expectedType, BindExpressionBuilderEx buidler)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(ELContext context) throws PropertyNotFoundException, ELException
- Overrides:
getValue
in classValueExpressionImpl
- Parameters:
context
- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
- Throws:
PropertyNotFoundException
- If a property/variable resolution failed because no match was found or a match was found but was not readableELException
- Wraps any exception throw whilst resolving a property or variable
-
setValue
public void setValue(ELContext context, java.lang.Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException
- Overrides:
setValue
in classValueExpressionImpl
- Parameters:
context
- The EL context for this evaluationvalue
- The value to set the property to which this value expression refers- Throws:
PropertyNotFoundException
- If a property/variable resolution failed because no match was foundPropertyNotWritableException
- If a property/variable resolution failed because a match was found but was not writableELException
- Wraps any exception throw whilst resolving a property or variable
-
-