Class AnnotationStore

java.lang.Object
io.quarkus.arc.processor.AnnotationStore

public final class AnnotationStore extends Object
Applies AnnotationsTransformers and caches the results of transformations.
Author:
Martin Kouba
See Also:
  • Method Details

    • overlay

      public org.jboss.jandex.AnnotationOverlay overlay()
    • getAnnotations

      public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.AnnotationTarget target)
      All AnnotationsTransformers 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, null otherwise
      See Also:
    • hasAnnotation

      public boolean hasAnnotation(org.jboss.jandex.AnnotationTarget target, org.jboss.jandex.DotName name)
      Parameters:
      target -
      name -
      Returns:
      true if the specified target contains the specified annotation, false otherwise
      See Also:
    • hasAnyAnnotation

      public boolean hasAnyAnnotation(org.jboss.jandex.AnnotationTarget target, Iterable<org.jboss.jandex.DotName> names)
      Parameters:
      target -
      names -
      Returns:
      true if the specified target contains any of the specified annotations, false otherwise
      See Also: