Class AnnotationDescription.AbstractBase

    • Field Detail

      • DEFAULT_TARGET

        private static final java.lang.annotation.ElementType[] DEFAULT_TARGET
        An array containing all element types that are a legal annotation target when such a target is not specified explicitly.
    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • getRetention

        public java.lang.annotation.RetentionPolicy getRetention()
        Returns this annotation's retention policy.
        Specified by:
        getRetention in interface AnnotationDescription
        Returns:
        This annotation's retention policy.
      • getElementTypes

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

        public boolean isInherited()
        Checks if this annotation is inherited.
        Specified by:
        isInherited in interface AnnotationDescription
        Returns:
        true if this annotation is inherited.
        See Also:
        Inherited
      • isDocumented

        public boolean isDocumented()
        Checks if this annotation is documented.
        Specified by:
        isDocumented in interface AnnotationDescription
        Returns:
        true if this annotation is documented.
        See Also:
        Documented
      • hashCode

        @Enhance("hashCode")
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object