PageRenderTime 40ms CodeModel.GetById 34ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/testability-explorer/src/main/java/com/google/test/metric/javasrc/CommonASTWithLine.java

http://testability-explorer.googlecode.com/
Java | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | d47802993262d1acb8df0b0c4aa14f2a MD5 | raw file
 1package com.google.test.metric.javasrc;
 2
 3import antlr.CommonAST;
 4import antlr.Token;
 5
 6public class CommonASTWithLine extends CommonAST {
 7	private static final long serialVersionUID = 5403061472453222979L;
 8
 9	private int line = 0;
10	private int column = 0;
11
12	public void initialize(Token tok) {
13		super.initialize(tok);
14		line = tok.getLine();
15		column = tok.getColumn();
16	}
17
18	public int getLine() {
19		return line;
20	}
21
22	public int getColumn() {
23		return column;
24	}
25}