1 /***
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package net.sourceforge.pmd.cpd;
5
6 public class Mark {
7
8 private int indexIntoFile;
9 private int indexIntoTokenArray;
10 private String tokenSrcID;
11 private int beginLine;
12
13 public Mark(int offset, String tokenSrcID, int index, int beginLine) {
14 this.indexIntoTokenArray = offset;
15 this.indexIntoFile = index;
16 this.tokenSrcID = tokenSrcID;
17 this.beginLine = beginLine;
18 }
19
20 public int getBeginLine() {
21 return this.beginLine;
22 }
23
24 public String getTokenSrcID() {
25 return this.tokenSrcID;
26 }
27
28 public int getIndexIntoFile() {
29 return this.indexIntoFile;
30 }
31
32 public int getIndexIntoTokenArray() {
33 return indexIntoTokenArray;
34 }
35
36 public String toString() {
37 return "Mark:\r\nindexIntoFile = " + indexIntoFile + "\r\nindexIntoTokenArray = " + indexIntoTokenArray + "\r\nbeginLine = " + beginLine;
38 }
39 }
This page was automatically generated by Maven