Class AnnotationDescImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AnnotationDescImpl
- All Implemented Interfaces:
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 ClassesModifier and TypeClassDescriptionstatic class
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.sun.tools.javac.code.Attribute.Compound
Deprecated.private final DocEnv
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDescImpl
(DocEnv env, com.sun.tools.javac.code.Attribute.Compound annotation) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the annotation type of this annotation.Deprecated.Returns this annotation's elements and their values.boolean
Deprecated.Check for the synthesized bit on the annotation.toString()
Deprecated.Returns a string representation of this annotation.
-
Field Details
-
env
Deprecated. -
annotation
private final com.sun.tools.javac.code.Attribute.Compound annotationDeprecated.
-
-
Constructor Details
-
AnnotationDescImpl
AnnotationDescImpl(DocEnv env, com.sun.tools.javac.code.Attribute.Compound annotation) Deprecated.
-
-
Method Details
-
annotationType
Deprecated.Returns the annotation type of this annotation.- Specified by:
annotationType
in interfaceAnnotationDesc
- Returns:
- the annotation type of this annotation.
-
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
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
-