Class ConstantUtf8Info

  • All Implemented Interfaces:
    ConstantTypes

    public class ConstantUtf8Info
    extends ConstantPoolInfo
    Class representing a CONSTANT_Utf8_info structure.
    Version:
    1.0
    • Field Detail

      • representedString

        private java.lang.String representedString
    • Constructor Detail

      • ConstantUtf8Info

        public ConstantUtf8Info​(byte[] bytes)
        Constructor.
        Parameters:
        bytes - The bytes for this record.
    • Method Detail

      • createRepresentedString

        private java.lang.String createRepresentedString​(byte[] bytes)
      • getRepresentedString

        public java.lang.String getRepresentedString​(boolean quoted)
        Returns the string represented by this info.
        Parameters:
        quoted - Whether to add enclosing quotation marks, and "escape" any quotation marks in the represented string.
        Returns:
        The string represented.
      • toString

        public java.lang.String toString()
        Returns a string representation of this object. Useful for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this object.