Package proguard.classfile.attribute
Class RecordComponentInfo
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.RecordComponentInfo
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
public class RecordComponentInfo extends SimpleProcessable
Representation of a record component entry.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Attribute[]
attributes
Field
referencedField
An extra field optionally pointing to the referenced Field object.int
u2attributesCount
int
u2descriptorIndex
int
u2nameIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description RecordComponentInfo()
Creates an uninitialized RecordComponentInfo.RecordComponentInfo(int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes)
Creates an initialized RecordComponentInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attributesAccept(Clazz clazz, AttributeVisitor attributeVisitor)
Applies the given attribute visitor to all attributes.java.lang.String
getDescriptor(Clazz clazz)
Returns the record component descriptor descriptor.java.lang.String
getName(Clazz clazz)
Returns the record component descriptor name.void
referencedFieldAccept(Clazz clazz, MemberVisitor memberVisitor)
Lets the referenced class field accept the given visitor.-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
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 Detail
-
RecordComponentInfo
public RecordComponentInfo()
Creates an uninitialized RecordComponentInfo.
-
RecordComponentInfo
public RecordComponentInfo(int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes)
Creates an initialized RecordComponentInfo.
-
-
Method Detail
-
getName
public java.lang.String getName(Clazz clazz)
Returns the record component descriptor name.
-
getDescriptor
public java.lang.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.
-
-