01: package antlr.debug;
02:
03: public class NewLineEvent extends Event {
04: private int line;
05:
06: public NewLineEvent(Object source) {
07: super (source);
08: }
09:
10: public NewLineEvent(Object source, int line) {
11: super (source);
12: setValues(line);
13: }
14:
15: public int getLine() {
16: return line;
17: }
18:
19: void setLine(int line) {
20: this .line = line;
21: }
22:
23: /** This should NOT be called from anyone other than ParserEventSupport! */
24: void setValues(int line) {
25: setLine(line);
26: }
27:
28: public String toString() {
29: return "NewLineEvent [" + line + "]";
30: }
31: }
|