net.sourceforge.pmd.cpd
Class Match
java.lang.Object
net.sourceforge.pmd.cpd.Match
- All Implemented Interfaces:
- java.lang.Comparable<Match>
public class Match
- extends java.lang.Object
- implements java.lang.Comparable<Match>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MATCHES_COMPARATOR
public static final java.util.Comparator<Match> MATCHES_COMPARATOR
LINES_COMPARATOR
public static final java.util.Comparator<Match> LINES_COMPARATOR
LABEL_COMPARATOR
public static final java.util.Comparator<Match> LABEL_COMPARATOR
LENGTH_COMPARATOR
public static final java.util.Comparator<Match> LENGTH_COMPARATOR
Match
public Match(int tokenCount,
Mark first,
Mark second)
Match
public Match(int tokenCount,
TokenEntry first,
TokenEntry second)
getMarkCount
public int getMarkCount()
getLineCount
public int getLineCount()
getTokenCount
public int getTokenCount()
getSourceCodeSlice
public java.lang.String getSourceCodeSlice()
iterator
public java.util.Iterator<Mark> iterator()
compareTo
public int compareTo(Match other)
- Specified by:
compareTo
in interface java.lang.Comparable<Match>
getFirstMark
public Mark getFirstMark()
getSecondMark
public Mark getSecondMark()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getMarkSet
public java.util.Set<Mark> getMarkSet()
getEndIndex
public int getEndIndex()
setMarkSet
public void setMarkSet(java.util.Set<Mark> markSet)
setLabel
public void setLabel(java.lang.String aLabel)
getLabel
public java.lang.String getLabel()
addTokenEntry
public void addTokenEntry(TokenEntry entry)
Copyright © 2002-2015 InfoEther. All Rights Reserved.