Module jdk.javadoc

Interface AnnotationDesc


  • Deprecated. 
    The declarations in this package have been superseded by those in the package jdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.

    @Deprecated
    public interface AnnotationDesc
    Represents an annotation. An annotation associates a value with each element of an annotation type.
    Since:
    1.5
    • Method Detail

      • annotationType

        AnnotationTypeDoc annotationType​()
        Deprecated. 
        Returns the annotation type of this annotation.
        Returns:
        the annotation type of this annotation.
      • elementValues

        AnnotationDesc.ElementValuePair[] elementValues​()
        Deprecated. 
        Returns this annotation's elements and their values. Only those explicitly present in the annotation are included, not those assuming their default values. Returns an empty array if there are none.
        Returns:
        this annotation's elements and their values.
      • isSynthesized

        boolean isSynthesized​()
        Deprecated. 
        Check for the synthesized bit on the annotation.
        Returns:
        true if the annotation is synthesized.