1 package antlr.debug; 2 3 import java.util.EventObject ; 4 5 public abstract class Event extends EventObject { 6 private int type; 7 8 9 public Event(Object source) { 10 super(source); 11 } 12 public Event(Object 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 23 void setValues(int type) { 24 setType(type); 25 } 26 } | Popular Tags |