Class CONSTANT_Utf8_info


  • public final class CONSTANT_Utf8_info
    extends ConstantPoolEntry
    Utf8- page 100 - Section 4.4.7
    • Field Detail

      • value

        private final java.lang.String value
      • asString

        private int asString
      • asCode

        private int asCode
    • Constructor Detail

      • CONSTANT_Utf8_info

        CONSTANT_Utf8_info​(java.lang.String value)
    • Method Detail

      • classFileSize

        int classFileSize()
        We assume here that the String is ASCII, thus this might return a size smaller than actual size.
        Specified by:
        classFileSize in class ConstantPoolEntry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setAsCode

        int setAsCode()
      • setAsString

        int setAsString()
      • setAlternative

        void setAlternative​(int index)