net.sourceforge.pmd.cpd
Class Match
java.lang.Object
net.sourceforge.pmd.cpd.Match
- All Implemented Interfaces:
- Comparable<Match>
public class Match
- extends Object
- implements Comparable<Match>
MATCHES_COMPARATOR
public static final Comparator<Match> MATCHES_COMPARATOR
LINES_COMPARATOR
public static final Comparator<Match> LINES_COMPARATOR
LABEL_COMPARATOR
public static final Comparator<Match> LABEL_COMPARATOR
LENGTH_COMPARATOR
public static final 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 String getSourceCodeSlice()
iterator
public Iterator<Mark> iterator()
compareTo
public int compareTo(Match other)
- Specified by:
compareTo
in interface Comparable<Match>
getFirstMark
public Mark getFirstMark()
getSecondMark
public Mark getSecondMark()
toString
public String toString()
- Overrides:
toString
in class Object
getMarkSet
public Set<Mark> getMarkSet()
getEndIndex
public int getEndIndex()
setMarkSet
public void setMarkSet(Set<Mark> markSet)
setLabel
public void setLabel(String aLabel)
getLabel
public String getLabel()
addTokenEntry
public void addTokenEntry(TokenEntry entry)
Copyright © 2002-2016 InfoEther. All Rights Reserved.