Source code: javax/ide/model/java/declaration/AnnotationD.java
1 /*
2 * @(#)AnnotationD.java
3 */
4
5 package javax.ide.model.java.declaration;
6
7 import java.util.Map;
8
9 /**
10 * Mirrors an annotation (not to be confused with an annotation type).
11 *
12 * @author Andy Yu
13 */
14 public interface AnnotationD
15 extends Declaration
16 {
17 // ----------------------------------------------------------------------
18
19 /**
20 * Gets the annotation type of this annotation.
21 *
22 * @return The type declaration for the annotation type of this annotation.
23 */
24 public TypeD getAnnotationType();
25
26 /**
27 * Gets the element-value pairs for this annotation. <p/>
28 *
29 * @see MethodD#getDefaultValue()
30 *
31 * @return The map of element-value pairs for this annotation. There
32 * will be an entry for each declared annotation member. A null
33 * value is not legal in the java language, however a null value may
34 * be returned here and such would indicate a compile error. <p/>
35 *
36 * Map keys are String. Map values are Object.
37 */
38 public Map getElements();
39 }