Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/model/java/declaration/FieldD.java


1   /*
2    * @(#)FieldD.java
3    */
4   
5   package javax.ide.model.java.declaration;
6   
7   /**
8    * Mirrors a field or enum constant.
9    *
10   * @author Andy Yu
11   */
12  public interface FieldD
13    extends MemberD, HasNameD, HasTypeD, HasAnnotationsD
14  {
15    // ----------------------------------------------------------------------
16  
17    /**
18     * True if this is an enum constant.
19     *
20     * @return True if this is an enum constant.
21     */
22    public boolean isEnumConstant();
23  
24    /**
25     * True if this is modified with "volatile".
26     *
27     * @return True if this is modified with "volatile".
28     */
29    public boolean isVolatile();
30  
31    /**
32     * True if this is modified with "transient".
33     *
34     * @return True if this is modified with "transient".
35     */
36    public boolean isTransient();
37  
38    /**
39     * Gets the constant value of this field, as defined by the JVMS.
40     *
41     * @return Gets the constant value of this field: <p/>
42     *
43     * <ul>
44     *
45     * <li> A value of primitive type gets returned as an instance of the
46     *      appropriate wrapper class. (e.g. Integer)
47     *
48     * <li> A string value gets returned as a String instance.
49     *
50     * </ul>
51     */
52    public Object getConstantValue();
53  
54  
55    // ----------------------------------------------------------------------
56  }