Class AnnotationDescImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.AnnotationDescImpl
-
- All Implemented Interfaces:
AnnotationDesc
@Deprecated public class AnnotationDescImpl extends java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationDescImpl.ElementValuePairImplDeprecated.Represents an association between an annotation type element and one of its values.-
Nested classes/interfaces inherited from interface gw.gosudoc.com.sun.javadoc.AnnotationDesc
AnnotationDesc.ElementValuePair
-
-
Field Summary
Fields Modifier and Type Field Description private com.sun.tools.javac.code.Attribute.CompoundannotationDeprecated.private DocEnvenvDeprecated.
-
Constructor Summary
Constructors Constructor Description AnnotationDescImpl(DocEnv env, com.sun.tools.javac.code.Attribute.Compound annotation)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationTypeDocannotationType()Deprecated.Returns the annotation type of this annotation.AnnotationDesc.ElementValuePair[]elementValues()Deprecated.Returns this annotation's elements and their values.booleanisSynthesized()Deprecated.Check for the synthesized bit on the annotation.java.lang.StringtoString()Deprecated.Returns a string representation of this annotation.
-
-
-
Field Detail
-
env
private final DocEnv env
Deprecated.
-
annotation
private final com.sun.tools.javac.code.Attribute.Compound annotation
Deprecated.
-
-
Constructor Detail
-
AnnotationDescImpl
AnnotationDescImpl(DocEnv env, com.sun.tools.javac.code.Attribute.Compound annotation)
Deprecated.
-
-
Method Detail
-
annotationType
public AnnotationTypeDoc annotationType()
Deprecated.Returns the annotation type of this annotation.- Specified by:
annotationTypein interfaceAnnotationDesc- 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:
elementValuesin interfaceAnnotationDesc- Returns:
- this annotation's elements and their values.
-
isSynthesized
public boolean isSynthesized()
Deprecated.Check for the synthesized bit on the annotation.- Specified by:
isSynthesizedin interfaceAnnotationDesc- Returns:
- true if the annotation is synthesized.
-
toString
public java.lang.String toString()
Deprecated.Returns a string representation of this annotation. String is of one of the forms:Omit parens for marker annotations, and omit "value=" when allowed.@com.example.foo(name1=val1, name2=val2)@com.example.foo(val)@com.example.foo- Overrides:
toStringin classjava.lang.Object
-
-