01: package dclass;
02:
03: public class Field extends Modified {
04: public static final Object NOVALUE = new Object[] { "noValue" };
05: public Object type;
06: public Object value = NOVALUE;
07:
08: public Field() {
09: super ();
10: }
11:
12: public Field(Object modifiers, Object type, Object name) {
13: this .modifiers = modifiers;
14: this .type = type;
15: this .name = name;
16: }
17:
18: public Field(Object modifiers, Object type, Object name,
19: Object value) {
20: this (modifiers, type, name);
21: this .value = value;
22: }
23:
24: public boolean hasValue() {
25: return value == NOVALUE;
26: }
27:
28: public String toString() {
29: return "{" + this .getClass().getName() + " " + modifiers + " "
30: + type + " " + name + " " + "}";
31: }
32: }
|