Interface AnnotationDescription

    • Method Detail

      • getAnnotationType

        TypeDescription getAnnotationType()
        Returns a description of the annotation type of this annotation.
        Returns:
        A description of the annotation type of this annotation.
      • prepare

        <T extends java.lang.annotation.Annotation> AnnotationDescription.Loadable<T> prepare​(java.lang.Class<T> annotationType)
        Links this annotation description to a given annotation type such that it can be loaded. This does not cause the values of this annotation to be loaded.
        Type Parameters:
        T - The type of the annotation.
        Parameters:
        annotationType - The loaded annotation type of this annotation description.
        Returns:
        A loadable version of this annotation description.
      • getRetention

        java.lang.annotation.RetentionPolicy getRetention()
        Returns this annotation's retention policy.
        Returns:
        This annotation's retention policy.
      • getElementTypes

        java.util.Set<java.lang.annotation.ElementType> getElementTypes()
        Returns a set of all ElementTypes that can declare this annotation.
        Returns:
        A set of all element types that can declare this annotation.
      • isInherited

        boolean isInherited()
        Checks if this annotation is inherited.
        Returns:
        true if this annotation is inherited.
        See Also:
        Inherited
      • isDocumented

        boolean isDocumented()
        Checks if this annotation is documented.
        Returns:
        true if this annotation is documented.
        See Also:
        Documented