Class AnnotationTypeElementDocImpl

All Implemented Interfaces:
AnnotationTypeElementDoc, Doc, ExecutableMemberDoc, MemberDoc, MethodDoc, ProgramElementDoc, Comparable<Object>

@Deprecated public class AnnotationTypeElementDocImpl extends MethodDocImpl implements AnnotationTypeElementDoc
Deprecated.
Represents an element of 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 Details

    • AnnotationTypeElementDocImpl

      public AnnotationTypeElementDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol sym)
      Deprecated.
    • AnnotationTypeElementDocImpl

      public AnnotationTypeElementDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol sym, com.sun.source.util.TreePath treePath)
      Deprecated.
  • Method Details

    • isAnnotationTypeElement

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

      public boolean isMethod()
      Deprecated.
      Returns false. Although this is technically a method, we don't consider it one for this purpose. (For legacy doclets, return true.)
      Specified by:
      isMethod in interface Doc
      Overrides:
      isMethod in class MethodDocImpl
      Returns:
      true
    • isAbstract

      public boolean isAbstract()
      Deprecated.
      Returns false, even though this is indeed abstract. See MethodDocImpl.isAbstract() for the (il)logic behind this.
      Specified by:
      isAbstract in interface MethodDoc
      Overrides:
      isAbstract in class MethodDocImpl
      Returns:
      true if this method is abstract
    • defaultValue

      public AnnotationValue defaultValue()
      Deprecated.
      Returns the default value of this element. Returns null if this element has no default.
      Specified by:
      defaultValue in interface AnnotationTypeElementDoc
      Returns:
      the default value of this element.