Record Class ClassAnnotationData
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.mappings.extras.annotations.ClassAnnotationData
- All Implemented Interfaces:
BaseAnnotationData
public record ClassAnnotationData(Set<String> annotationsToRemove, List<org.objectweb.asm.tree.AnnotationNode> annotationsToAdd, Set<TypeAnnotationKey> typeAnnotationsToRemove, List<org.objectweb.asm.tree.TypeAnnotationNode> typeAnnotationsToAdd, Map<String,GenericAnnotationData> fields, Map<String,MethodAnnotationData> methods)
extends Record
implements BaseAnnotationData
-
Constructor Summary
ConstructorsConstructorDescriptionClassAnnotationData(Set<String> annotationsToRemove, List<org.objectweb.asm.tree.AnnotationNode> annotationsToAdd, Set<TypeAnnotationKey> typeAnnotationsToRemove, List<org.objectweb.asm.tree.TypeAnnotationNode> typeAnnotationsToAdd, Map<String, GenericAnnotationData> fields, Map<String, MethodAnnotationData> methods) Creates an instance of aClassAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<org.objectweb.asm.tree.AnnotationNode> Returns the value of theannotationsToAddrecord component.Returns the value of theannotationsToRemoverecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.@Nullable GenericAnnotationDatagetFieldData(String fieldName, String fieldDesc) @Nullable MethodAnnotationDatagetMethodData(String methodName, String methodDesc) final inthashCode()Returns a hash code value for this object.methods()Returns the value of themethodsrecord component.intmodifyAccessFlags(int access) final StringtoString()Returns a string representation of this record class.List<org.objectweb.asm.tree.TypeAnnotationNode> Returns the value of thetypeAnnotationsToAddrecord component.Returns the value of thetypeAnnotationsToRemoverecord component.
-
Constructor Details
-
ClassAnnotationData
public ClassAnnotationData(Set<String> annotationsToRemove, List<org.objectweb.asm.tree.AnnotationNode> annotationsToAdd, Set<TypeAnnotationKey> typeAnnotationsToRemove, List<org.objectweb.asm.tree.TypeAnnotationNode> typeAnnotationsToAdd, Map<String, GenericAnnotationData> fields, Map<String, MethodAnnotationData> methods) Creates an instance of aClassAnnotationDatarecord class.- Parameters:
annotationsToRemove- the value for theannotationsToRemoverecord componentannotationsToAdd- the value for theannotationsToAddrecord componenttypeAnnotationsToRemove- the value for thetypeAnnotationsToRemoverecord componenttypeAnnotationsToAdd- the value for thetypeAnnotationsToAddrecord componentfields- the value for thefieldsrecord componentmethods- the value for themethodsrecord component
-
ClassAnnotationData
public ClassAnnotationData() -
ClassAnnotationData
-
-
Method Details
-
modifyAccessFlags
public int modifyAccessFlags(int access) -
getFieldData
-
getMethodData
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
annotationsToRemove
Returns the value of theannotationsToRemoverecord component.- Specified by:
annotationsToRemovein interfaceBaseAnnotationData- Returns:
- the value of the
annotationsToRemoverecord component
-
annotationsToAdd
Returns the value of theannotationsToAddrecord component.- Specified by:
annotationsToAddin interfaceBaseAnnotationData- Returns:
- the value of the
annotationsToAddrecord component
-
typeAnnotationsToRemove
Returns the value of thetypeAnnotationsToRemoverecord component.- Specified by:
typeAnnotationsToRemovein interfaceBaseAnnotationData- Returns:
- the value of the
typeAnnotationsToRemoverecord component
-
typeAnnotationsToAdd
@SerializedName("type_add") public List<org.objectweb.asm.tree.TypeAnnotationNode> typeAnnotationsToAdd()Returns the value of thetypeAnnotationsToAddrecord component.- Specified by:
typeAnnotationsToAddin interfaceBaseAnnotationData- Returns:
- the value of the
typeAnnotationsToAddrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-