Doclet API

com.sun.javadoc
Interface AnnotationDesc


public interface AnnotationDesc

Represents an annotation. An annotation associates a value with each element of an annotation type.

Since:
1.5

Nested Class Summary
static interface AnnotationDesc.ElementValuePair
          Represents an association between an annotation type element and one of its values.
 
Method Summary
 AnnotationTypeDoc annotationType()
          Returns the annotation type of this annotation.
 AnnotationDesc.ElementValuePair[] elementValues()
          Returns this annotation's elements and their values.
 

Method Detail

annotationType

AnnotationTypeDoc annotationType()
Returns the annotation type of this annotation.

Returns:
the annotation type of this annotation.

elementValues

AnnotationDesc.ElementValuePair[] elementValues()
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.

Returns:
this annotation's elements and their values.

Doclet API

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2006 Sun Microsystems, Inc. 4150 Network Circle
Santa Clara, California, 95054, U.S.A. All Rights Reserved.