org.apache.struts2.el

## Class ValueExpressionLiteral

- java.lang.Object
- - javax.el.Expression
  - - javax.el.ValueExpression
    - - org.apache.struts2.el.ValueExpressionLiteral

- All Implemented Interfaces:
    Externalizable, Serializable

      public final class ValueExpressionLiteral
      extends javax.el.ValueExpression
      implements Externalizable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValueExpressionLiteral()`
    `ValueExpressionLiteral(Object value, Class expectedType)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `boolean` | `equals(ValueExpressionLiteral ve)`
    `Class` | `getExpectedType()`
    `String` | `getExpressionString()`
    `Class` | `getType(javax.el.ELContext context)`
    `Object` | `getValue(javax.el.ELContext context)`
    `int` | `hashCode()`
    `boolean` | `isLiteralText()`
    `boolean` | `isReadOnly(javax.el.ELContext context)`
    `void` | `readExternal(ObjectInput in)`
    `void` | `setValue(javax.el.ELContext context, Object value)`
    `void` | `writeExternal(ObjectOutput out)`

    - ### Methods inherited from class javax.el.ValueExpression

      `getValueReference`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ValueExpressionLiteral

          public ValueExpressionLiteral()

    - #### ValueExpressionLiteral

          public ValueExpressionLiteral(Object value,
                                        Class expectedType)

  - ### Method Detail

    - #### getValue

          public Object getValue(javax.el.ELContext context)

      Specified by:
        `getValue` in class `javax.el.ValueExpression`

    - #### setValue

          public void setValue(javax.el.ELContext context,
                               Object value)

      Specified by:
        `setValue` in class `javax.el.ValueExpression`

    - #### isReadOnly

          public boolean isReadOnly(javax.el.ELContext context)

      Specified by:
        `isReadOnly` in class `javax.el.ValueExpression`

    - #### getType

          public Class getType(javax.el.ELContext context)

      Specified by:
        `getType` in class `javax.el.ValueExpression`

    - #### getExpectedType

          public Class getExpectedType()

      Specified by:
        `getExpectedType` in class `javax.el.ValueExpression`

    - #### getExpressionString

          public String getExpressionString()

      Specified by:
        `getExpressionString` in class `javax.el.Expression`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in class `javax.el.Expression`

    - #### equals

          public boolean equals(ValueExpressionLiteral ve)

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in class `javax.el.Expression`

    - #### isLiteralText

          public boolean isLiteralText()

      Specified by:
        `isLiteralText` in class `javax.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`

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.