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 intcompareTo(Mark other)booleanequals(Object obj)intgetBeginColumn()The column number where this duplication begins.intgetBeginLine()intgetBeginTokenIndex()intgetEndColumn()The column number where this duplication ends.intgetEndLine()intgetEndTokenIndex()StringgetFilename()intgetLineCount()StringgetSourceCodeSlice()Newlines are normalized to \n.TokenEntrygetToken()inthashCode()voidsetEndToken(TokenEntry endToken)voidsetLineCount(int lineCount)voidsetSourceCode(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
-
getBeginTokenIndex
public int getBeginTokenIndex()
-
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
-
getEndTokenIndex
public int getEndTokenIndex()
-
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:
compareToin interfaceComparable<Mark>
-
-