KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > debug > Event


1 package persistence.antlr.debug;
2
3 import java.util.EventObject JavaDoc;
4
5 public abstract class Event extends EventObject JavaDoc {
6     private int type;
7
8
9     public Event(Object JavaDoc source) {
10         super(source);
11     }
12     public Event(Object JavaDoc source, int type) {
13         super(source);
14         setType(type);
15     }
16     public int getType() {
17         return type;
18     }
19     void setType(int type) {
20         this.type = type;
21     }
22     /** This should NOT be called from anyone other than ParserEventSupport! */
23     void setValues(int type) {
24         setType(type);
25     }
26 }
27
Popular Tags