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 SummaryConstructorsConstructorDescriptionObjectValueExpression(TypeConverter converter, Object object, Class<?> type) Wrap an object into a value expression.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTwo object value expressions are equal if and only if their wrapped objects are equal.Class<?>Returns the type the result of the expression will be coerced to after evaluation.Answernull.Class<?>Answernull.Answer the wrapped object, coerced to the expected type.inthashCode()Returns the hash code for this Expression.booleanAnswerfalse.booleanisReadOnly(ELContext context) Answertrue.voidThrow an exception.toString()Methods inherited from class org.flowable.common.engine.impl.javax.el.ValueExpressiongetValueReference
- 
Constructor Details- 
ObjectValueExpressionWrap an object into a value expression.- Parameters:
- converter- type converter
- object- the object to wrap
- type- the expected type this object will be coerced in- getValue(ELContext).
 
 
- 
- 
Method Details- 
equalsTwo object value expressions are equal if and only if their wrapped objects are equal.- Specified by:
- equalsin class- Expression
- Parameters:
- obj- the Object to test for equality.
- Returns:
- true if obj equals this Expression; false otherwise.
 
- 
hashCodepublic int hashCode()Description copied from class:ExpressionReturns the hash code for this Expression. See the note in theExpression.equals(Object)method on how two expressions can be equal if their expression Strings are different. Recall that if two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result. Implementations must take special note and implement hashCode correctly.- Specified by:
- hashCodein class- Expression
- Returns:
- The hash code for this Expression.
- See Also:
 
- 
getValueAnswer the wrapped object, coerced to the expected type.- Specified by:
- getValuein class- ValueExpression
- Parameters:
- context- The context of this evaluation.
- Returns:
- The result of the expression evaluation.
 
- 
getExpressionStringAnswernull.- Specified by:
- getExpressionStringin class- Expression
- Returns:
- The original expression String.
 
- 
isLiteralTextpublic boolean isLiteralText()Answerfalse.- Specified by:
- isLiteralTextin class- Expression
- Returns:
- true if this expression was created from only literal text; false otherwise.
 
- 
getTypeAnswernull.- Specified by:
- getTypein class- ValueExpression
- Parameters:
- context- The context of this evaluation.
- Returns:
- the most general acceptable type; otherwise undefined.
 
- 
isReadOnlyAnswertrue.- Specified by:
- isReadOnlyin class- ValueExpression
- Parameters:
- context- The context of this evaluation.
- Returns:
- true if the expression is read-only or false if not.
 
- 
setValueThrow an exception.- Specified by:
- setValuein class- ValueExpression
- Parameters:
- context- The context of this evaluation.
- value- The new value to be set.
 
- 
toString
- 
getExpectedTypeDescription copied from class:ValueExpressionReturns the type the result of the expression will be coerced to after evaluation.- Specified by:
- getExpectedTypein class- ValueExpression
- Returns:
- the expectedType passed to the ExpressionFactory.createValueExpression method that created this ValueExpression.
 
 
-