Class ConstantClassInfo

  • All Implemented Interfaces:
    ConstantTypes

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

      • 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 Detail

      • 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 Detail

      • 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 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.