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 Object
ConstValue A (typed) tagged value in the constant pool.
  • Field Details

    • tag

      protected Tables.ConstType tag
    • isSet

      protected boolean isSet
    • visited

      private boolean visited
  • Constructor Details

  • Method Details

    • 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 Object
    • _hashCode

      protected int _hashCode()
    • equals

      public boolean equals(Object obj)
      Compares this object to the specified object. Sub-classes must override this
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare with
      Returns:
      true if the objects are the same; false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • _toString

      protected String _toString()
    • write

      public void write(CheckedDataOutputStream out) throws IOException
      Throws:
      IOException