org.sonar.duplications.cpd
Class Match

java.lang.Object
  extended by org.sonar.duplications.cpd.Match
All Implemented Interfaces:
Comparable<Match>

public class Match
extends Object
implements Comparable<Match>


Nested Class Summary
static class Match.MatchCode
           
 
Field Summary
static String EOL
           
static Comparator<Match> LabelComparator
           
static Comparator<Match> LengthComparator
           
static Comparator<Match> LinesComparator
           
static Comparator<Match> MatchesComparator
           
 
Constructor Summary
Match(int tokenCount, TokenEntry first, TokenEntry second)
           
 
Method Summary
 int compareTo(Match other)
           
 int getEndIndex()
           
 TokenEntry getFirstMark()
           
 String getLabel()
           
 int getLineCount()
           
 int getMarkCount()
           
 Set<TokenEntry> getMarkSet()
           
 Match.MatchCode getMatchCode()
           
 TokenEntry getSecondMark()
           
 String getSourceCodeSlice()
           
 int getTokenCount()
           
 Iterator<TokenEntry> iterator()
           
 void setLabel(String aLabel)
           
 void setLineCount(int lineCount)
           
 void setMarkSet(Set<TokenEntry> markSet)
           
 void setSourceCodeSlice(String code)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EOL

public static final String EOL

MatchesComparator

public static final Comparator<Match> MatchesComparator

LinesComparator

public static final Comparator<Match> LinesComparator

LabelComparator

public static final Comparator<Match> LabelComparator

LengthComparator

public static final Comparator<Match> LengthComparator
Constructor Detail

Match

public Match(int tokenCount,
             TokenEntry first,
             TokenEntry second)
Method Detail

getMarkCount

public int getMarkCount()

setLineCount

public void setLineCount(int lineCount)

getLineCount

public int getLineCount()

getTokenCount

public int getTokenCount()

getSourceCodeSlice

public String getSourceCodeSlice()

setSourceCodeSlice

public void setSourceCodeSlice(String code)

iterator

public Iterator<TokenEntry> iterator()

compareTo

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

getFirstMark

public TokenEntry getFirstMark()

getSecondMark

public TokenEntry getSecondMark()

toString

public String toString()
Overrides:
toString in class Object

getMarkSet

public Set<TokenEntry> getMarkSet()

getMatchCode

public Match.MatchCode getMatchCode()

getEndIndex

public int getEndIndex()

setMarkSet

public void setMarkSet(Set<TokenEntry> markSet)

setLabel

public void setLabel(String aLabel)

getLabel

public String getLabel()


Copyright © 2009-2012 SonarSource. All Rights Reserved.