Package io.quarkus.arc.processor
Class AnnotationStore
java.lang.Object
io.quarkus.arc.processor.AnnotationStore
Applies
AnnotationsTransformers and caches the results of transformations.- Author:
- Martin Kouba
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.jandex.AnnotationInstancegetAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) Collection<org.jboss.jandex.AnnotationInstance>getAnnotations(org.jboss.jandex.AnnotationTarget target) AllAnnotationsTransformers are applied and the result is cached.booleanhasAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) booleanhasAnyAnnotation(org.jboss.jandex.AnnotationTarget target, Iterable<org.jboss.jandex.DotName> names)
-
Method Details
-
getAnnotations
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.AnnotationTarget target) AllAnnotationsTransformers are applied and the result is cached.- Parameters:
target-- Returns:
- the annotation instance for the given target
-
getAnnotation
public org.jboss.jandex.AnnotationInstance getAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) - Parameters:
target-name-- Returns:
- the annotation instance if present,
nullotherwise - See Also:
-
hasAnnotation
public boolean hasAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name) - Parameters:
target-name-- Returns:
trueif the specified target contains the specified annotation, @{code false} otherwise- See Also:
-
hasAnyAnnotation
public boolean hasAnyAnnotation(org.jboss.jandex.AnnotationTarget target, Iterable<org.jboss.jandex.DotName> names) - Parameters:
target-names-- Returns:
trueif the specified target contains any of the specified annotations, @{code false} otherwise- See Also:
-