public class CPString extends CPConstant
String constant pool entry.
  • Field Details

    • nameIndex

      private transient int nameIndex
    • name

      private final CPUTF8 name
    • hashCodeComputed

      private boolean hashCodeComputed
    • cachedHashCode

      private int cachedHashCode
  • Constructor Details

    • CPString

      public CPString(CPUTF8 value, int globalIndex)
      Constructs a new instance.
      Parameters:
      value - The value.
      globalIndex - Global index.
  • Method Details