01: package org.acm.seguin.pmd.cpd;
02:
03: public class Mark {
04:
05: private int indexIntoFile;
06: private int indexIntoTokenArray;
07: private String tokenSrcID;
08: private int beginLine;
09:
10: public Mark(int offset, String tokenSrcID, int index, int beginLine) {
11: this .indexIntoTokenArray = offset;
12: this .indexIntoFile = index;
13: this .tokenSrcID = tokenSrcID;
14: this .beginLine = beginLine;
15: }
16:
17: public int getBeginLine() {
18: return this .beginLine;
19: }
20:
21: public String getTokenSrcID() {
22: return this .tokenSrcID;
23: }
24:
25: public int getIndexIntoFile() {
26: return this .indexIntoFile;
27: }
28:
29: public int getIndexIntoTokenArray() {
30: return indexIntoTokenArray;
31: }
32:
33: public String toString() {
34: return "Mark:\r\nindexIntoFile = " + indexIntoFile
35: + "\r\nindexIntoTokenArray = " + indexIntoTokenArray
36: + "\r\nbeginLine = " + beginLine;
37: }
38: }
|