KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > debug > NewLineEvent


1 package antlr.debug;
2
3 public class NewLineEvent extends Event {
4     private int line;
5
6
7     public NewLineEvent(Object JavaDoc source) {
8         super(source);
9     }
10     public NewLineEvent(Object JavaDoc source, int line) {
11         super(source);
12         setValues(line);
13     }
14     public int getLine() {
15         return line;
16     }
17     void setLine(int line) {
18         this.line = line;
19     }
20     /** This should NOT be called from anyone other than ParserEventSupport! */
21     void setValues(int line) {
22         setLine(line);
23     }
24     public String JavaDoc toString() {
25         return "NewLineEvent [" + line + "]";
26     }
27 }
Popular Tags