1 package net.sourceforge.pmd.cpd;
2
3 public class Mark {
4
5 private int indexIntoFile;
6 private int indexIntoTokenArray;
7 private String tokenSrcID;
8 private int beginLine;
9
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 + "\r\nindexIntoTokenArray = " + indexIntoTokenArray + "\r\nbeginLine = " + beginLine;
35 }
36 }
This page was automatically generated by Maven