Class AnnotationUsageBuilder
java.lang.Object
org.hibernate.models.internal.jdk.AnnotationUsageBuilder
Helper for building
AnnotationUsage instances-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
Map<String,?> extractAttributeValues(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) Extracts values from an annotationstatic <A extends Annotation>
AnnotationUsage<A>makeUsage(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) static voidprocessAnnotations(Annotation[] annotations, AnnotationTarget target, BiConsumer<Class<? extends Annotation>, AnnotationUsage<?>> consumer, SourceModelBuildingContext buildingContext) Process annotations creating usage instances passed back to the consumer
-
Method Details
-
processAnnotations
public static void processAnnotations(Annotation[] annotations, AnnotationTarget target, BiConsumer<Class<? extends Annotation>, AnnotationUsage<?>> consumer, SourceModelBuildingContext buildingContext) Process annotations creating usage instances passed back to the consumer -
makeUsage
public static <A extends Annotation> AnnotationUsage<A> makeUsage(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) -
extractAttributeValues
public static <A extends Annotation> Map<String,?> extractAttributeValues(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) Extracts values from an annotation
-