Class RecordComponentInfo

    • Field Detail

      • index

        private final int index
      • descriptorIndex

        private final int descriptorIndex
      • attributes

        private final Attribute[] attributes
    • Constructor Detail

      • RecordComponentInfo

        public RecordComponentInfo​(java.io.DataInput input,
                                   ConstantPool constantPool)
                            throws java.io.IOException
        Constructs a new instance from an input stream.
        Parameters:
        input - Input stream.
        constantPool - Array of constants.
        Throws:
        java.io.IOException - if an I/O error occurs.
    • Method Detail

      • accept

        public void accept​(Visitor v)
        Description copied from interface: Node
        Accepts a visitor.
        Specified by:
        accept in interface Node
        Parameters:
        v - the visitor.
      • dump

        public void dump​(java.io.DataOutputStream file)
                  throws java.io.IOException
        Dumps contents into a file stream in binary format.
        Parameters:
        file - Output file stream.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • getAttributes

        public Attribute[] getAttributes()
        Gets all attributes.
        Returns:
        all attributes.
      • getConstantPool

        public ConstantPool getConstantPool()
        Gets the constant pool.
        Returns:
        Constant pool.
      • getDescriptorIndex

        public int getDescriptorIndex()
        Gets the description index.
        Returns:
        index in constant pool of this record component descriptor.
      • getIndex

        public int getIndex()
        Gets the name index.
        Returns:
        index in constant pool of this record component name.
      • toString

        public java.lang.String toString()
        Converts this instance to a String suitable for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String suitable for debugging.