Package net.sourceforge.pmd.cpd
Class Mark
- java.lang.Object
-
- net.sourceforge.pmd.cpd.Mark
-
- All Implemented Interfaces:
Comparable<Mark>
public final class Mark extends Object implements Comparable<Mark>
A range of tokens in a source file, identified by a start and end token (both included in the range). The start and end token may be the same token.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Mark other)booleanequals(Object obj)intgetBeginTokenIndex()intgetEndTokenIndex()FileLocationgetLocation()Return the location of this source range in the source file.inthashCode()
-
-
-
Method Detail
-
getLocation
public FileLocation getLocation()
Return the location of this source range in the source file.
-
getBeginTokenIndex
public int getBeginTokenIndex()
-
getEndTokenIndex
public int getEndTokenIndex()
-
compareTo
public int compareTo(Mark other)
- Specified by:
compareToin interfaceComparable<Mark>
-
-