Package org.apache.el
Class ValueExpressionLiteral
- java.lang.Object
-
- javax.el.Expression
-
- javax.el.ValueExpression
-
- org.apache.el.ValueExpressionLiteral
-
- All Implemented Interfaces:
Externalizable,Serializable
public final class ValueExpressionLiteral extends ValueExpression implements Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueExpressionLiteral()ValueExpressionLiteral(Object value, Class<?> expectedType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanequals(ValueExpressionLiteral ve)Class<?>getExpectedType()StringgetExpressionString()Class<?>getType(ELContext context)ObjectgetValue(ELContext context)inthashCode()booleanisLiteralText()booleanisReadOnly(ELContext context)voidreadExternal(ObjectInput in)voidsetValue(ELContext context, Object value)voidwriteExternal(ObjectOutput out)-
Methods inherited from class javax.el.ValueExpression
getValueReference
-
-
-
-
Method Detail
-
getValue
public 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, 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 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 Class<?> getExpectedType()
- Specified by:
getExpectedTypein classValueExpression
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classExpression
-
equals
public boolean equals(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(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-