Class ConstantNameAndTypeInfo

  • All Implemented Interfaces:
    ConstantTypes

    public class ConstantNameAndTypeInfo
    extends ConstantPoolInfo
    Class representing a CONSTANT_NameAndType_info structure.
    Version:
    1.0
    • Field Detail

      • nameIndex

        private int nameIndex
      • descriptorIndex

        private int descriptorIndex
    • Constructor Detail

      • ConstantNameAndTypeInfo

        public ConstantNameAndTypeInfo​(int nameIndex,
                                       int descriptorIndex)
        Constructor.
        Parameters:
        nameIndex - The name index.
        descriptorIndex - The descriptor index.
    • Method Detail

      • getDescriptorIndex

        public int getDescriptorIndex()
      • getNameIndex

        public int getNameIndex()
      • 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.