Package de.odysseus.el
Class ObjectValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
de.odysseus.el.ObjectValueExpression
- All Implemented Interfaces:
Serializable
public final class ObjectValueExpression
extends javax.el.ValueExpression
Object wrapper expression.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeConverter
private final Object
private static final long
private final Class
<?> -
Constructor Summary
ConstructorsConstructorDescriptionObjectValueExpression
(TypeConverter converter, Object object, Class<?> type) Wrap an object into a value expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Two object value expressions are equal if and only if their wrapped objects are equal.Class
<?> Answernull
.Class
<?> getType
(javax.el.ELContext context) Answernull
.getValue
(javax.el.ELContext context) Answer the wrapped object, coerced to the expected type.int
hashCode()
boolean
Answerfalse
.boolean
isReadOnly
(javax.el.ELContext context) Answertrue
.void
Throw an exception.toString()
Methods inherited from class javax.el.ValueExpression
getValueReference
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
converter
-
object
-
type
-
-
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:
equals
in classjavax.el.Expression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classjavax.el.Expression
-
getValue
Answer the wrapped object, coerced to the expected type.- Specified by:
getValue
in classjavax.el.ValueExpression
-
getExpressionString
Answernull
.- Specified by:
getExpressionString
in classjavax.el.Expression
-
isLiteralText
public boolean isLiteralText()Answerfalse
.- Specified by:
isLiteralText
in classjavax.el.Expression
-
getType
Answernull
.- Specified by:
getType
in classjavax.el.ValueExpression
-
isReadOnly
public boolean isReadOnly(javax.el.ELContext context) Answertrue
.- Specified by:
isReadOnly
in classjavax.el.ValueExpression
-
setValue
Throw an exception.- Specified by:
setValue
in classjavax.el.ValueExpression
-
toString
-
getExpectedType
- Specified by:
getExpectedType
in classjavax.el.ValueExpression
-