public class CPNameAndType extends ConstantPoolEntry
Name and Type pair constant pool entry.
  • Field Details

    • descriptor

      CPUTF8 descriptor
    • descriptorIndex

      transient int descriptorIndex
    • name

      CPUTF8 name
    • nameIndex

      transient int nameIndex
    • hashCodeComputed

      private boolean hashCodeComputed
    • cachedHashCode

      private int cachedHashCode
  • Constructor Details

    • CPNameAndType

      public CPNameAndType(CPUTF8 name, CPUTF8 descriptor, int globalIndex)
      Constructs a new CPNameAndType.
      Parameters:
      name - TODO
      descriptor - TODO
      globalIndex - index in CpBands
      Throws:
      NullPointerException - if name or descriptor is null
  • Method Details