Class ValueExpressionLiteral
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
org.apache.el.ValueExpressionLiteral
- All Implemented Interfaces:
Externalizable, Serializable
A literal value expression that represents a constant value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ValueExpressionLiteral for deserialization.ValueExpressionLiteral(Object value, Class<?> expectedType) Constructs a new ValueExpressionLiteral. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanCompares this literal value expression with another for equality.Class<?> Class<?> inthashCode()booleanbooleanisReadOnly(ELContext context) voidvoidvoidMethods inherited from class ValueExpression
getValueReference
-
Constructor Details
-
ValueExpressionLiteral
public ValueExpressionLiteral()Constructs a new ValueExpressionLiteral for deserialization. -
ValueExpressionLiteral
-
-
Method Details
-
getValue
- Specified by:
getValuein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
-
setValue
- Specified by:
setValuein classValueExpression- Parameters:
context- The EL context for this evaluationvalue- The value to set the property to which this value expression refers
-
isReadOnly
- Specified by:
isReadOnlyin classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
trueif this expression is read only otherwisefalse
-
getType
- Specified by:
getTypein classValueExpression- Parameters:
context- The EL context for this evaluation- Returns:
- The type of the result of this value expression
-
getExpectedType
- Specified by:
getExpectedTypein classValueExpression
-
getExpressionString
- Specified by:
getExpressionStringin classExpression
-
equals
- Specified by:
equalsin classExpression
-
equals
Compares this literal value expression with another for equality.- Parameters:
ve- The other literal value expression- Returns:
trueif the values are equal,falseotherwise
-
hashCode
public int hashCode()- Specified by:
hashCodein classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralTextin classExpression
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-