Package io.quarkus.arc.processor
Class AnnotationStore
- java.lang.Object
-
- io.quarkus.arc.processor.AnnotationStore
-
public final class AnnotationStore extends Object
AppliesAnnotationsTransformers and caches the results of transformations.- Author:
- Martin Kouba
- See Also:
AnnotationsTransformer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
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:
getAnnotations(AnnotationTarget)
-
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:
getAnnotations(AnnotationTarget)
-
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:
getAnnotations(AnnotationTarget)
-
-