Package org.openjdk.asmtools.jasm

## Class ConstantPool.ConstValue

- java.lang.Object
- - org.openjdk.asmtools.jasm.ConstantPool.ConstValue

- Direct Known Subclasses:
    `ConstantPool.ConstValue_Cell`, `ConstantPool.ConstValue_IndyOrCondyPair`, `ConstantPool.ConstValue_Integer`, `ConstantPool.ConstValue_Long`, `ConstantPool.ConstValue_Pair`, `ConstantPool.ConstValue_String`, `ConstantPool.ConstValue_Zero`
  Enclosing class:
    ConstantPool

      public static class ConstantPool.ConstValue
      extends java.lang.Object

  ConstValue A (typed) tagged value in the constant pool.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected boolean` | `isSet` |
    `protected Tables.ConstType` | `tag` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ConstValue​(Tables.ConstType tag)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected int` | `_hashCode()` |
    `protected java.lang.String` | `_toString()` |
    `boolean` | `equals​(java.lang.Object obj)` | Compares this object to the specified object.
    `int` | `hashCode()` | Compute the hash-code, based on the value of the native (_hashCode()) hashcode.
    `boolean` | `hasValue()` |
    `int` | `size()` |
    `java.lang.String` | `toString()` |
    `void` | `write​(CheckedDataOutputStream out)` |

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

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

- - ### Field Detail

    - #### tag

          protected Tables.ConstType tag

    - #### isSet

          protected boolean isSet

  - ### Constructor Detail

    - #### ConstValue

          public ConstValue​(Tables.ConstType tag)

  - ### Method Detail

    - #### size

          public int size()

    - #### hasValue

          public boolean hasValue()

    - #### hashCode

          public int hashCode()

      Compute the hash-code, based on the value of the native (_hashCode()) hashcode.
      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### _hashCode

          protected int _hashCode()

    - #### equals

          public boolean equals​(java.lang.Object obj)

      Compares this object to the specified object. Sub-classes must override this
      Overrides:
        `equals` in class `java.lang.Object`
      Parameters:
        `obj` - the object to compare with
      Returns:
        true if the objects are the same; false otherwise.

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### _toString

          protected java.lang.String _toString()

    - #### write

          public void write​(CheckedDataOutputStream out)
                     throws java.io.IOException

      Throws:
        `java.io.IOException`