KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > javadoc > AnnotationValue


1 /*
2  * @(#)AnnotationValue.java 1.3 04/04/08
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.javadoc;
9
10
11 /**
12  * Represents a value of an annotation type element.
13  *
14  * @author Scott Seligman
15  * @version 1.3 04/04/08
16  * @since 1.5
17  */

18 public interface AnnotationValue {
19
20     /**
21      * Returns the value.
22      * The type of the returned object is one of the following:
23      * <ul><li> a wrapper class for a primitive type
24      * <li> <code>String</code>
25      * <li> <code>Type</code> (representing a class literal)
26      * <li> <code>FieldDoc</code> (representing an enum constant)
27      * <li> <code>AnnotationDesc</code>
28      * <li> <code>AnnotationValue[]</code>
29      * </ul>
30      *
31      * @return the value.
32      */

33     Object JavaDoc value();
34
35     /**
36      * Returns a string representation of the value.
37      *
38      * @return the text of a Java language annotation value expression
39      * whose value is the value of this element.
40      */

41     String JavaDoc toString();
42 }
43
Popular Tags