1
2 package jp.sourceforge.torkenizer.test;
3
4 import jp.sourceforge.tokenizer.Token;
5
6 /**
7 * <p>
8 * トークンの基底抽象クラスです。
9 * </p>
10 *
11 * @author uguu@users.sourceforge.jp
12 */
13 public class AbstractToken implements Token {
14
15 private String token;
16
17 private int line;
18
19 private int column;
20
21 /**
22 * <p>
23 * インスタンスを初期化します。
24 * </p>
25 *
26 * @param token
27 * トークンの文字列。
28 * @param line
29 * 行番号。
30 * @param column
31 * 列番号。
32 */
33 public AbstractToken(String token, int line, int column) {
34 this.token = token;
35 this.line = line;
36 this.column = column;
37 }
38
39 public String getToken() {
40 return this.token;
41 }
42
43 public int getLine() {
44 return this.line;
45 }
46
47 public int getColumn() {
48 return this.column;
49 }
50
51 }