Package net.sourceforge.pmd.cpd
Class Mark
- java.lang.Object
-
- net.sourceforge.pmd.cpd.Mark
-
- All Implemented Interfaces:
Comparable<Mark>
public class Mark extends Object implements Comparable<Mark>
-
-
Constructor Summary
Constructors Constructor Description Mark(TokenEntry token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Mark other)
boolean
equals(Object obj)
int
getBeginColumn()
The column number where this duplication begins.int
getBeginLine()
int
getEndColumn()
The column number where this duplication ends.int
getEndLine()
String
getFilename()
int
getLineCount()
String
getSourceCodeSlice()
Newlines are normalized to \n.TokenEntry
getToken()
int
hashCode()
void
setEndToken(TokenEntry endToken)
void
setLineCount(int lineCount)
void
setSourceCode(SourceCode code)
-
-
-
Constructor Detail
-
Mark
public Mark(TokenEntry token)
-
-
Method Detail
-
getToken
public TokenEntry getToken()
-
getFilename
public String getFilename()
-
getBeginLine
public int getBeginLine()
-
getBeginColumn
public int getBeginColumn()
The column number where this duplication begins. returns -1 if not available- Returns:
- the begin column number
-
getEndLine
public int getEndLine()
-
getEndColumn
public int getEndColumn()
The column number where this duplication ends. returns -1 if not available- Returns:
- the end column number
-
getLineCount
public int getLineCount()
-
setLineCount
public void setLineCount(int lineCount)
-
setEndToken
public void setEndToken(TokenEntry endToken)
-
getSourceCodeSlice
public String getSourceCodeSlice()
Newlines are normalized to \n.
-
setSourceCode
public void setSourceCode(SourceCode code)
-
compareTo
public int compareTo(Mark other)
- Specified by:
compareTo
in interfaceComparable<Mark>
-
-