Package ai.timefold.jpyinterpreter
Record Class AnnotationMetadata
java.lang.Object
java.lang.Record
ai.timefold.jpyinterpreter.AnnotationMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationMetadata(@NonNull Class<? extends Annotation> annotationType, @NonNull Map<String, Object> annotationValueMap, @Nullable Class<?> fieldTypeOverride) Creates an instance of aAnnotationMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotationTo(org.objectweb.asm.ClassVisitor classVisitor) voidaddAnnotationTo(org.objectweb.asm.FieldVisitor fieldVisitor) voidaddAnnotationTo(org.objectweb.asm.MethodVisitor methodVisitor) @NonNull Class<? extends Annotation>Returns the value of theannotationTyperecord component.Returns the value of theannotationValueMaprecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Class<?>Returns the value of thefieldTypeOverriderecord component.static List<AnnotationMetadata>static org.objectweb.asm.TypegetValueAsType(String className) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotationMetadata
public AnnotationMetadata(@NonNull Class<? extends Annotation> annotationType, @NonNull Map<String, Object> annotationValueMap, @Nullable Class<?> fieldTypeOverride) Creates an instance of aAnnotationMetadatarecord class.- Parameters:
annotationType- the value for theannotationTyperecord componentannotationValueMap- the value for theannotationValueMaprecord componentfieldTypeOverride- the value for thefieldTypeOverriderecord component
-
-
Method Details
-
addAnnotationTo
public void addAnnotationTo(org.objectweb.asm.ClassVisitor classVisitor) -
addAnnotationTo
public void addAnnotationTo(org.objectweb.asm.FieldVisitor fieldVisitor) -
addAnnotationTo
public void addAnnotationTo(org.objectweb.asm.MethodVisitor methodVisitor) -
getAnnotationListWithoutRepeatable
public static List<AnnotationMetadata> getAnnotationListWithoutRepeatable(List<AnnotationMetadata> metadata) -
getValueAsType
-
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
-
annotationValueMap
Returns the value of theannotationValueMaprecord component.- Returns:
- the value of the
annotationValueMaprecord component
-
fieldTypeOverride
Returns the value of thefieldTypeOverriderecord component.- Returns:
- the value of the
fieldTypeOverriderecord component
-