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 Details

    • getLocation

      public FileLocation getLocation()
      Return the location of this source range in the source file.
    • getBeginTokenIndex

      public int getBeginTokenIndex()
    • getEndTokenIndex

      public int getEndTokenIndex()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Mark other)
      Specified by:
      compareTo in interface Comparable<Mark>