KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > types > FieldInstance


1 package polyglot.types;
2
3 /**
4  * A <code>FieldInstance</code> contains type information for a field.
5  */

6 public interface FieldInstance extends VarInstance, MemberInstance
7 {
8     /**
9      * Set the flags of the field.
10      */

11     FieldInstance flags(Flags flags);
12
13     /**
14      * Set the name of the field.
15      */

16     FieldInstance name(String JavaDoc name);
17
18     /**
19      * Set the type of the field.
20      */

21     FieldInstance type(Type type);
22
23     /**
24      * Set the containing class of the field.
25      */

26     FieldInstance container(ReferenceType container);
27
28     /**
29      * Set the constant value of the field.
30      * @param value the constant value. Should be an instance of String,
31      * Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.
32      */

33     FieldInstance constantValue(Object JavaDoc value);
34
35     /**
36      * Destructively set the constant value of the field.
37      * @param value the constant value. Should be an instance of String,
38      * Boolean, Byte, Short, Character, Integer, Long, Float, Double, or null.
39      */

40     void setConstantValue(Object JavaDoc value);
41 }
42
Popular Tags