Class ObjectValueExpression
java.lang.Object
org.flowable.common.engine.impl.javax.el.Expression
org.flowable.common.engine.impl.javax.el.ValueExpression
org.flowable.common.engine.impl.de.odysseus.el.ObjectValueExpression
- All Implemented Interfaces:
Serializable
Object wrapper expression.
- Author:
- Christoph Beck
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionObjectValueExpression(TypeConverter converter, Object object, Class<?> type) Wrap an object into a value expression. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo object value expressions are equal if and only if their wrapped objects are equal.Class<?> Answernull.Class<?> Answernull.Answer the wrapped object, coerced to the expected type.inthashCode()booleanAnswerfalse.booleanisReadOnly(ELContext context) Answertrue.voidThrow an exception.toString()Methods inherited from class ValueExpression
getValueReference
-
Constructor Details
-
ObjectValueExpression
Wrap an object into a value expression.- Parameters:
converter- type converterobject- the object to wraptype- the expected type this object will be coerced ingetValue(ELContext).
-
-
Method Details
-
equals
Two object value expressions are equal if and only if their wrapped objects are equal.- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
getValue
Answer the wrapped object, coerced to the expected type.- Specified by:
getValuein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
-
getExpressionString
Answernull.- Specified by:
getExpressionStringin classExpression
-
isLiteralText
-
getType
Answernull.- Specified by:
getTypein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The type of the result of this value expression
-
isReadOnly
Answertrue.- Specified by:
isReadOnlyin classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
trueif this expression is read only otherwisefalse
-
setValue
Throw an exception.- Specified by:
setValuein classValueExpression- Parameters:
context- The EL context for this evaluationvalue- The value to set the property to which this value expression refers
-
toString
-
getExpectedType
- Specified by:
getExpectedTypein classValueExpression
-