Class AnnotationTypeDocImpl

  • All Implemented Interfaces:
    AnnotationTypeDoc, ClassDoc, Doc, ProgramElementDoc, Type, java.lang.Comparable<java.lang.Object>

    @Deprecated
    public class AnnotationTypeDocImpl
    extends ClassDocImpl
    implements AnnotationTypeDoc
    Deprecated.
    Represents an annotation type.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    Since:
    1.5
    • Constructor Detail

      • AnnotationTypeDocImpl

        public AnnotationTypeDocImpl​(DocEnv env,
                                     com.sun.tools.javac.code.Symbol.ClassSymbol sym)
        Deprecated.
      • AnnotationTypeDocImpl

        public AnnotationTypeDocImpl​(DocEnv env,
                                     com.sun.tools.javac.code.Symbol.ClassSymbol sym,
                                     com.sun.source.util.TreePath treePath)
        Deprecated.
    • Method Detail

      • isAnnotationType

        public boolean isAnnotationType()
        Deprecated.
        Returns true, as this is an annotation type. (For legacy doclets, return false.)
        Specified by:
        isAnnotationType in interface Doc
        Overrides:
        isAnnotationType in class DocImpl
        Returns:
        true if it represents an annotation type
      • isInterface

        public boolean isInterface()
        Deprecated.
        Returns false. Though technically an interface, an annotation type is not considered an interface for this purpose. (For legacy doclets, returns true.)
        Specified by:
        isInterface in interface Doc
        Overrides:
        isInterface in class ClassDocImpl
        Returns:
        true if it represents a interface
      • methods

        public MethodDoc[] methods​(boolean filter)
        Deprecated.
        Returns an empty array, as all methods are annotation type elements. (For legacy doclets, returns the elements.)
        Specified by:
        methods in interface ClassDoc
        Overrides:
        methods in class ClassDocImpl
        Parameters:
        filter - include only the included methods if filter==true
        Returns:
        an array of MethodDocImpl for representing the visible methods in this class. Does not include constructors.
        See Also:
        elements()
      • elements

        public AnnotationTypeElementDoc[] elements()
        Deprecated.
        Returns the elements of this annotation type. Returns an empty array if there are none. Elements are always public, so no need to filter them.
        Specified by:
        elements in interface AnnotationTypeDoc
        Returns:
        the elements of this annotation type.