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 int
compareTo(Mark other)
boolean
equals(Object obj)
int
getBeginTokenIndex()
int
getEndTokenIndex()
FileLocation
getLocation()
Return the location of this source range in the source file.int
hashCode()
-
-
-
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:
compareTo
in interfaceComparable<Mark>
-
-