1 package antlr.debug;
2
3 public class NewLineEvent extends Event {
4 private int line;
5
6
7 public NewLineEvent(Object source) {
8 super(source);
9 }
10 public NewLineEvent(Object 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 toString() {
25 return "NewLineEvent [" + line + "]";
26 }
27 }
28