Class CPUTF8


  • public class CPUTF8
    extends ConstantPoolEntry
    UTF8 constant pool entry, used for storing long Strings.
    • Field Detail

      • utf8

        private final java.lang.String utf8
      • hashCodeComputed

        private boolean hashCodeComputed
      • cachedHashCode

        private int cachedHashCode
    • Constructor Detail

      • CPUTF8

        public CPUTF8​(java.lang.String string)
      • CPUTF8

        public CPUTF8​(java.lang.String utf8,
                      int globalIndex)
        Creates a new CPUTF8 instance
        Parameters:
        utf8 - TODO
        globalIndex - index in CpBands
        Throws:
        java.lang.NullPointerException - if utf8 is null
    • Method Detail

      • generateHashCode

        private void generateHashCode()
      • setGlobalIndex

        public void setGlobalIndex​(int index)
      • underlyingString

        public java.lang.String underlyingString()
      • writeBody

        protected void writeBody​(java.io.DataOutputStream dos)
                          throws java.io.IOException
        Specified by:
        writeBody in class ConstantPoolEntry
        Throws:
        java.io.IOException