Package org.apache.el
Class ValueExpressionLiteral
- java.lang.Object
 - 
- jakarta.el.Expression
 - 
- jakarta.el.ValueExpression
 - 
- org.apache.el.ValueExpressionLiteral
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Externalizable,java.io.Serializable
public final class ValueExpressionLiteral extends ValueExpression implements java.io.Externalizable
- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ValueExpressionLiteral()ValueExpressionLiteral(java.lang.Object value, java.lang.Class<?> expectedType) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleanequals(ValueExpressionLiteral ve)java.lang.Class<?>getExpectedType()java.lang.StringgetExpressionString()java.lang.Class<?>getType(ELContext context)java.lang.ObjectgetValue(ELContext context)inthashCode()booleanisLiteralText()booleanisReadOnly(ELContext context)voidreadExternal(java.io.ObjectInput in)voidsetValue(ELContext context, java.lang.Object value)voidwriteExternal(java.io.ObjectOutput out)- 
Methods inherited from class jakarta.el.ValueExpression
getValueReference 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getValue
public java.lang.Object getValue(ELContext context)
- Specified by:
 getValuein classValueExpression- Parameters:
 context- The EL context for this evaluation- Returns:
 - The result of evaluating this value expression
 
 
- 
setValue
public void setValue(ELContext context, java.lang.Object value)
- 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
public boolean isReadOnly(ELContext context)
- Specified by:
 isReadOnlyin classValueExpression- Parameters:
 context- The EL context for this evaluation- Returns:
 trueif this expression is read only otherwisefalse
 
- 
getType
public java.lang.Class<?> getType(ELContext context)
- Specified by:
 getTypein classValueExpression- Parameters:
 context- The EL context for this evaluation- Returns:
 - The type of the result of this value expression
 
 
- 
getExpectedType
public java.lang.Class<?> getExpectedType()
- Specified by:
 getExpectedTypein classValueExpression
 
- 
getExpressionString
public java.lang.String getExpressionString()
- Specified by:
 getExpressionStringin classExpression
 
- 
equals
public boolean equals(java.lang.Object obj)
- Specified by:
 equalsin classExpression
 
- 
equals
public boolean equals(ValueExpressionLiteral ve)
 
- 
hashCode
public int hashCode()
- Specified by:
 hashCodein classExpression
 
- 
isLiteralText
public boolean isLiteralText()
- Specified by:
 isLiteralTextin classExpression
 
- 
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
 writeExternalin interfacejava.io.Externalizable- Throws:
 java.io.IOException
 
- 
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
 readExternalin interfacejava.io.Externalizable- Throws:
 java.io.IOExceptionjava.lang.ClassNotFoundException
 
 - 
 
 -