Class 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 Detail

      • ValueExpressionLiteral

        public ValueExpressionLiteral()
      • ValueExpressionLiteral

        public ValueExpressionLiteral​(java.lang.Object value,
                                      java.lang.Class<?> expectedType)
    • Method Detail

      • getValue

        public java.lang.Object getValue​(ELContext context)
        Specified by:
        getValue in class ValueExpression
        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:
        setValue in class ValueExpression
        Parameters:
        context - The EL context for this evaluation
        value - The value to set the property to which this value expression refers
      • isReadOnly

        public boolean isReadOnly​(ELContext context)
        Specified by:
        isReadOnly in class ValueExpression
        Parameters:
        context - The EL context for this evaluation
        Returns:
        true if this expression is read only otherwise false
      • getType

        public java.lang.Class<?> getType​(ELContext context)
        Specified by:
        getType in class ValueExpression
        Parameters:
        context - The EL context for this evaluation
        Returns:
        The type of the result of this value expression
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in class Expression
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException