Class ConstantClassInfo

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

public class ConstantClassInfo extends ConstantPoolInfo
Represents a class or interface.
Version:
1.0
  • Field Details

    • nameIndex

      private int nameIndex
      An index into the constant_pool table. The entry at this index must be a CONSTANT_Utf8_info structure representing a valid, fully-qualified class or interface name encoded in internal form.
  • Constructor Details

    • ConstantClassInfo

      public ConstantClassInfo(int nameIndex)
      Constructor.
      Parameters:
      nameIndex - The index into the constant pool containing a ConstantUtf8Info representing the fully-qualified class or interface name, encoded in internal form.
  • Method Details

    • getNameIndex

      public int getNameIndex()
      Returns the index into the constant pool table for a ConstantUtf8Info structure representing a valid, fully-qualified class or interface name, encoded in internal form.
      Returns:
      The index into the constant pool table.
    • 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.