Package org.hibernate.models.internal
Class AnnotationUsageHelper
java.lang.Object
org.hibernate.models.internal.AnnotationUsageHelper
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation,C extends Annotation>
A[]extractRepeatedValues(C container, AnnotationDescriptor<C> containerDescriptor, ModelsContext modelContext) static <A extends Annotation,C extends Annotation>
A[]extractRepeatedValues(C container, AttributeDescriptor<A[]> valuesAttribute, ModelsContext modelContext) static <A extends Annotation>
AfindUsage(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap) static <A extends Annotation,C extends Annotation>
voidforEachRepeatedAnnotationUsages(Class<A> repeatableType, Class<C> containerType, Consumer<A> consumer, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) static <A extends Annotation>
voidforEachRepeatedAnnotationUsages(AnnotationDescriptor<A> repeatableDescriptor, Consumer<A> consumer, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) static <A extends Annotation,C extends Annotation>
AgetNamedUsage(AnnotationDescriptor<A> descriptor, String matchValue, String attributeToMatch, Map<Class<? extends Annotation>, ?> usageMap, ModelsContext modelContext) static <A extends Annotation>
A[]getRepeatedUsages(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) static <A extends Annotation>
AgetUsage(Class<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) Get the annotation usage from theusageMapfor the giventypestatic <A extends Annotation,C extends Annotation>
AgetUsage(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) Get the annotation usage from theusageMapfor the giventype
-
Method Details
-
findUsage
public static <A extends Annotation> A findUsage(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap) -
getUsage
public static <A extends Annotation> A getUsage(Class<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) Get the annotation usage from theusageMapfor the giventype -
extractRepeatedValues
public static <A extends Annotation,C extends Annotation> A[] extractRepeatedValues(C container, AnnotationDescriptor<C> containerDescriptor, ModelsContext modelContext) -
extractRepeatedValues
public static <A extends Annotation,C extends Annotation> A[] extractRepeatedValues(C container, AttributeDescriptor<A[]> valuesAttribute, ModelsContext modelContext) -
getUsage
public static <A extends Annotation,C extends Annotation> A getUsage(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) Get the annotation usage from theusageMapfor the giventype -
forEachRepeatedAnnotationUsages
public static <A extends Annotation,C extends Annotation> void forEachRepeatedAnnotationUsages(Class<A> repeatableType, Class<C> containerType, Consumer<A> consumer, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) -
forEachRepeatedAnnotationUsages
public static <A extends Annotation> void forEachRepeatedAnnotationUsages(AnnotationDescriptor<A> repeatableDescriptor, Consumer<A> consumer, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) -
getRepeatedUsages
public static <A extends Annotation> A[] getRepeatedUsages(AnnotationDescriptor<A> type, Map<Class<? extends Annotation>, ? extends Annotation> usageMap, ModelsContext modelContext) -
getNamedUsage
public static <A extends Annotation,C extends Annotation> A getNamedUsage(AnnotationDescriptor<A> descriptor, String matchValue, String attributeToMatch, Map<Class<? extends Annotation>, ?> usageMap, ModelsContext modelContext)
-