Class RecordAttribute.RecordComponentInfo

  • Enclosing class:
    RecordAttribute

    public static class RecordAttribute.RecordComponentInfo
    extends java.lang.Object
    Represents a single record component within the Record attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordComponentInfo​(ConstPool cp, int nameIndex, int descriptorIndex, java.util.List<AttributeInfo> attributes)
      Constructs a RecordComponentInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AttributeInfo> getAttributes()
      Returns the list of attributes associated with the component.
      java.lang.String getDescriptor()
      Returns the descriptor of the component.
      java.lang.String getName()
      Returns the name of the component.
      int getNameIndex()
      Returns the name Index of the component.
      void setDescriptorIndex​(int index)
      Sets the descriptor index after renaming.
      void setNameIndex​(int index)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecordComponentInfo

        public RecordComponentInfo​(ConstPool cp,
                                   int nameIndex,
                                   int descriptorIndex,
                                   java.util.List<AttributeInfo> attributes)
        Constructs a RecordComponentInfo.
        Parameters:
        cp - the constant pool
        nameIndex - the index into the constant pool of the component's name
        descriptorIndex - the index into the constant pool of the component's descriptor
        attributes - the list of attributes associated with the component
    • Method Detail

      • getNameIndex

        public int getNameIndex()
        Returns the name Index of the component.
        Returns:
        the component name
      • getName

        public java.lang.String getName()
        Returns the name of the component.
        Returns:
        the component name
      • getDescriptor

        public java.lang.String getDescriptor()
        Returns the descriptor of the component.
        Returns:
        the component descriptor
      • getAttributes

        public java.util.List<AttributeInfo> getAttributes()
        Returns the list of attributes associated with the component.
        Returns:
        the list of AttributeInfo
      • setDescriptorIndex

        public void setDescriptorIndex​(int index)
        Sets the descriptor index after renaming.
        Parameters:
        index - the new descriptor index
      • setNameIndex

        public void setNameIndex​(int index)