Class ConstantUtf8Info

java.lang.Object
org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
org.fife.rsta.ac.java.classreader.constantpool.ConstantUtf8Info
All Implemented Interfaces:
ConstantTypes

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

    • representedString

      private String representedString
  • Constructor Details

    • ConstantUtf8Info

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

    • createRepresentedString

      private String createRepresentedString(byte[] bytes)
    • getRepresentedString

      public 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 String toString()
      Returns a string representation of this object. Useful for debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.