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
- Author:
- Scott Seligman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationDescImpl.ElementValuePairImpl
Deprecated.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationTypeDoc
annotationType()
Deprecated.Returns the annotation type of this annotation.AnnotationDesc.ElementValuePair[]
elementValues()
Deprecated.Returns this annotation's elements and their values.boolean
isSynthesized()
Deprecated.Check for the synthesized bit on the annotation.String
toString()
Deprecated.Returns a string representation of this annotation.
-
-
-
Method Detail
-
annotationType
public AnnotationTypeDoc annotationType()
Deprecated.Returns the annotation type of this annotation.- Specified by:
annotationType
in 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:
elementValues
in interfaceAnnotationDesc
- 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 interfaceAnnotationDesc
- 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
-
-