Record Class ModFileScanData.AnnotationData
java.lang.Object
java.lang.Record
net.neoforged.neoforgespi.language.ModFileScanData.AnnotationData
- Enclosing class:
ModFileScanData
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theannotationData
record component.private final org.objectweb.asm.Type
The field for theannotationType
record component.private final org.objectweb.asm.Type
The field for theclazz
record component.private final String
The field for thememberName
record component.private final ElementType
The field for thetargetType
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationData
(org.objectweb.asm.Type annotationType, ElementType targetType, org.objectweb.asm.Type clazz, String memberName, Map<String, Object> annotationData) Creates an instance of aAnnotationData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationData
record component.org.objectweb.asm.Type
Returns the value of theannotationType
record component.org.objectweb.asm.Type
clazz()
Returns the value of theclazz
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thememberName
record component.Returns the value of thetargetType
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
annotationType
private final org.objectweb.asm.Type annotationTypeThe field for theannotationType
record component. -
targetType
The field for thetargetType
record component. -
clazz
private final org.objectweb.asm.Type clazzThe field for theclazz
record component. -
memberName
The field for thememberName
record component. -
annotationData
The field for theannotationData
record component.
-
-
Constructor Details
-
AnnotationData
public AnnotationData(org.objectweb.asm.Type annotationType, ElementType targetType, org.objectweb.asm.Type clazz, String memberName, Map<String, Object> annotationData) Creates an instance of aAnnotationData
record class.- Parameters:
annotationType
- the value for theannotationType
record componenttargetType
- the value for thetargetType
record componentclazz
- the value for theclazz
record componentmemberName
- the value for thememberName
record componentannotationData
- the value for theannotationData
record component
-
-
Method Details
-
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)
. -
annotationType
public org.objectweb.asm.Type annotationType()Returns the value of theannotationType
record component.- Returns:
- the value of the
annotationType
record component
-
targetType
Returns the value of thetargetType
record component.- Returns:
- the value of the
targetType
record component
-
clazz
public org.objectweb.asm.Type clazz()Returns the value of theclazz
record component.- Returns:
- the value of the
clazz
record component
-
memberName
Returns the value of thememberName
record component.- Returns:
- the value of the
memberName
record component
-
annotationData
Returns the value of theannotationData
record component.- Returns:
- the value of the
annotationData
record component
-