01: package antlr.debug;
02:
03: import java.util.EventObject;
04:
05: public abstract class Event extends EventObject {
06: private int type;
07:
08: public Event(Object source) {
09: super (source);
10: }
11:
12: public Event(Object source, int type) {
13: super (source);
14: setType(type);
15: }
16:
17: public int getType() {
18: return type;
19: }
20:
21: void setType(int type) {
22: this .type = type;
23: }
24:
25: /** This should NOT be called from anyone other than ParserEventSupport! */
26: void setValues(int type) {
27: setType(type);
28: }
29: }
|