Record Class AnnotationUtil.AnnotationData
java.lang.Object
java.lang.Record
info.u_team.u_team_core.util.annotation.AnnotationUtil.AnnotationData
- Enclosing class:
- AnnotationUtil
-
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 aAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationDatarecord component.org.objectweb.asm.TypeReturns the value of theannotationTyperecord component.org.objectweb.asm.Typeclazz()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.
-
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 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
public org.objectweb.asm.Type 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
public org.objectweb.asm.Type 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
-