Class AnnotationStore

    • Method Detail

      • 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:
        getAnnotations(AnnotationTarget)
      • 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, @{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:
        true if the specified target contains any of the specified annotations, @{code false} otherwise
        See Also:
        getAnnotations(AnnotationTarget)