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 theannotationDatarecord component.private final TypeThe field for theannotationTyperecord component.private final TypeThe field for theclazzrecord component.private final StringThe field for thememberNamerecord component.private final ElementTypeThe field for thetargetTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationData(Type annotationType, ElementType targetType, Type clazz, String memberName, Map<String, Object> annotationData) Creates an instance of aAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationDatarecord component.Returns the value of theannotationTyperecord component.clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thememberNamerecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
annotationType
The field for theannotationTyperecord component. -
targetType
The field for thetargetTyperecord component. -
clazz
The field for theclazzrecord component. -
memberName
The field for thememberNamerecord component. -
annotationData
The field for theannotationDatarecord component.
-
-
Constructor Details
-
AnnotationData
public AnnotationData(Type annotationType, ElementType targetType, Type clazz, String memberName, Map<String, Object> annotationData) Creates an instance of aAnnotationDatarecord class.- Parameters:
annotationType- the value for theannotationTyperecord componenttargetType- the value for thetargetTyperecord componentclazz- the value for theclazzrecord componentmemberName- the value for thememberNamerecord componentannotationData- the value for theannotationDatarecord 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
Returns the value of theannotationTyperecord component.- Returns:
- the value of the
annotationTyperecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
memberName
Returns the value of thememberNamerecord component.- Returns:
- the value of the
memberNamerecord component
-
annotationData
Returns the value of theannotationDatarecord component.- Returns:
- the value of the
annotationDatarecord component
-