Class ConstantStringInfo

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

public class ConstantStringInfo extends ConstantPoolInfo
Class corresponding to the CONSTANT_String_info structure.
Version:
1.0
  • Field Details

    • cf

      private ClassFile cf
    • stringIndex

      private int stringIndex
  • Constructor Details

    • ConstantStringInfo

      public ConstantStringInfo(ClassFile cf, int stringIndex)
      Constructor.
      Parameters:
      cf - The class file being parsed.
      stringIndex - The string index.
  • Method Details

    • getStringIndex

      public int getStringIndex()
    • getStringValue

      public String getStringValue()
      Returns the string represented by this constant.
      Returns:
      The string value 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.