Class AnnotationUsageBuilder
java.lang.Object
org.hibernate.models.internal.jandex.AnnotationUsageBuilder
Helper for building
AnnotationUsage instances based on
Jandex AnnotationInstance references-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.jandex.DotNamestatic final org.jboss.jandex.DotNamestatic final org.jboss.jandex.DotNamestatic final org.jboss.jandex.DotName -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Class<? extends Annotation>,AnnotationUsage<?>> collectUsages(org.jboss.jandex.AnnotationTarget jandexAnnotationTarget, AnnotationTarget target, SourceModelBuildingContext buildingContext) Create the AnnotationUsages map for a given targetstatic <A extends Annotation>
Map<String,?> extractAttributeValues(org.jboss.jandex.AnnotationInstance annotationInstance, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) Extracts values from an annotation creating AnnotationAttributeValue references.static <A extends Annotation>
AnnotationUsage<A>makeUsage(org.jboss.jandex.AnnotationInstance annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) static voidprocessAnnotations(Collection<org.jboss.jandex.AnnotationInstance> annotations, AnnotationTarget target, BiConsumer<Class<? extends Annotation>, AnnotationUsage<?>> consumer, SourceModelBuildingContext buildingContext) Process annotations creating usage instances passed back to the consumer
-
Field Details
-
REPEATABLE
public static final org.jboss.jandex.DotName REPEATABLE -
TARGET
public static final org.jboss.jandex.DotName TARGET -
RETENTION
public static final org.jboss.jandex.DotName RETENTION -
DOCUMENTED
public static final org.jboss.jandex.DotName DOCUMENTED
-
-
Method Details
-
collectUsages
public static Map<Class<? extends Annotation>,AnnotationUsage<?>> collectUsages(org.jboss.jandex.AnnotationTarget jandexAnnotationTarget, AnnotationTarget target, SourceModelBuildingContext buildingContext) Create the AnnotationUsages map for a given target -
processAnnotations
public static void processAnnotations(Collection<org.jboss.jandex.AnnotationInstance> 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(org.jboss.jandex.AnnotationInstance annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) -
extractAttributeValues
public static <A extends Annotation> Map<String,?> extractAttributeValues(org.jboss.jandex.AnnotationInstance annotationInstance, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget target, SourceModelBuildingContext buildingContext) Extracts values from an annotation creating AnnotationAttributeValue references.
-