Class ValueExpressionLiteral

java.lang.Object
jakarta.el.Expression
jakarta.el.ValueExpression
org.glassfish.expressly.ValueExpressionLiteral
All Implemented Interfaces:
Externalizable, Serializable

public final class ValueExpressionLiteral extends jakarta.el.ValueExpression implements Externalizable
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • value

      private Object value
    • expectedType

      private Class<?> expectedType
  • Constructor Details

    • ValueExpressionLiteral

      public ValueExpressionLiteral()
    • ValueExpressionLiteral

      public ValueExpressionLiteral(Object value, Class<?> expectedType)
  • Method Details

    • getValue

      public <T> T getValue(jakarta.el.ELContext context)
      Specified by:
      getValue in class jakarta.el.ValueExpression
    • setValue

      public void setValue(jakarta.el.ELContext context, Object value)
      Specified by:
      setValue in class jakarta.el.ValueExpression
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext context)
      Specified by:
      isReadOnly in class jakarta.el.ValueExpression
    • getType

      public Class<?> getType(jakarta.el.ELContext context)
      Specified by:
      getType in class jakarta.el.ValueExpression
    • getExpectedType

      public Class<?> getExpectedType()
      Specified by:
      getExpectedType in class jakarta.el.ValueExpression
    • getExpressionString

      public String getExpressionString()
      Specified by:
      getExpressionString in class jakarta.el.Expression
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class jakarta.el.Expression
    • equals

      public boolean equals(ValueExpressionLiteral ve)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class jakarta.el.Expression
    • isLiteralText

      public boolean isLiteralText()
      Specified by:
      isLiteralText in class jakarta.el.Expression
    • writeExternal

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

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException