Class AnnotationDescImpl

java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AnnotationDescImpl
All Implemented Interfaces:
AnnotationDesc

@Deprecated public class AnnotationDescImpl extends Object implements AnnotationDesc
Deprecated.
Represents an annotation. An annotation associates a value with each element of an annotation type. Sure it ought to be called "Annotation", but that clashes with java.lang.annotation.Annotation.

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
  • Field Details

    • env

      private final DocEnv env
      Deprecated.
    • annotation

      private final com.sun.tools.javac.code.Attribute.Compound annotation
      Deprecated.
  • Constructor Details

    • AnnotationDescImpl

      AnnotationDescImpl(DocEnv env, com.sun.tools.javac.code.Attribute.Compound annotation)
      Deprecated.
  • Method Details

    • annotationType

      public AnnotationTypeDoc annotationType()
      Deprecated.
      Returns the annotation type of this annotation.
      Specified by:
      annotationType in interface AnnotationDesc
      Returns:
      the annotation type of this annotation.
    • elementValues

      public 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.
      Specified by:
      elementValues in interface AnnotationDesc
      Returns:
      this annotation's elements and their values.
    • isSynthesized

      public boolean isSynthesized()
      Deprecated.
      Check for the synthesized bit on the annotation.
      Specified by:
      isSynthesized in interface AnnotationDesc
      Returns:
      true if the annotation is synthesized.
    • toString

      public String toString()
      Deprecated.
      Returns a string representation of this annotation. String is of one of the forms:
           @com.example.foo(name1=val1, name2=val2)
           @com.example.foo(val)
           @com.example.foo
       
      Omit parens for marker annotations, and omit "value=" when allowed.
      Overrides:
      toString in class Object