Class RecordComponentInfo

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.RecordComponentInfo
All Implemented Interfaces:
Serializable, Processable

public class RecordComponentInfo extends SimpleProcessable
Representation of a record component entry.
See Also:
  • Field Details

    • u2nameIndex

      public int u2nameIndex
    • u2descriptorIndex

      public int u2descriptorIndex
    • u2attributesCount

      public int u2attributesCount
    • attributes

      public Attribute[] attributes
    • referencedField

      public Field referencedField
      An extra field optionally pointing to the referenced Field object. This field is typically filled out by the ClassReferenceInitializer.
  • Constructor Details

    • RecordComponentInfo

      public RecordComponentInfo()
      Creates an uninitialized RecordComponentInfo.
    • RecordComponentInfo

      public RecordComponentInfo(int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes)
      Creates an initialized RecordComponentInfo.
  • Method Details

    • getName

      public String getName(Clazz clazz)
      Returns the record component descriptor name.
    • getDescriptor

      public String getDescriptor(Clazz clazz)
      Returns the record component descriptor descriptor.
    • referencedFieldAccept

      public void referencedFieldAccept(Clazz clazz, MemberVisitor memberVisitor)
      Lets the referenced class field accept the given visitor.
    • attributesAccept

      public void attributesAccept(Clazz clazz, AttributeVisitor attributeVisitor)
      Applies the given attribute visitor to all attributes.