org.sonar.duplications.cpd
Class MatchAlgorithm

java.lang.Object
  extended by org.sonar.duplications.cpd.MatchAlgorithm

public class MatchAlgorithm
extends Object


Constructor Summary
MatchAlgorithm(Map<String,net.sourceforge.pmd.cpd.SourceCode> sourceCode, net.sourceforge.pmd.cpd.Tokens tokens, int min)
           
MatchAlgorithm(Map<String,net.sourceforge.pmd.cpd.SourceCode> sourceCode, net.sourceforge.pmd.cpd.Tokens tokens, int min, net.sourceforge.pmd.cpd.CPDListener listener)
           
 
Method Summary
 void findMatches()
           
 int getMinimumTileSize()
           
 Iterator<Match> matches()
           
 void setListener(net.sourceforge.pmd.cpd.CPDListener listener)
           
 void setLoadSourceCodeSlices(boolean loadSourceCodeSlices)
           
 net.sourceforge.pmd.cpd.TokenEntry tokenAt(int offset, net.sourceforge.pmd.cpd.TokenEntry m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchAlgorithm

public MatchAlgorithm(Map<String,net.sourceforge.pmd.cpd.SourceCode> sourceCode,
                      net.sourceforge.pmd.cpd.Tokens tokens,
                      int min)

MatchAlgorithm

public MatchAlgorithm(Map<String,net.sourceforge.pmd.cpd.SourceCode> sourceCode,
                      net.sourceforge.pmd.cpd.Tokens tokens,
                      int min,
                      net.sourceforge.pmd.cpd.CPDListener listener)
Method Detail

setLoadSourceCodeSlices

public void setLoadSourceCodeSlices(boolean loadSourceCodeSlices)

setListener

public void setListener(net.sourceforge.pmd.cpd.CPDListener listener)

matches

public Iterator<Match> matches()

tokenAt

public net.sourceforge.pmd.cpd.TokenEntry tokenAt(int offset,
                                                  net.sourceforge.pmd.cpd.TokenEntry m)

getMinimumTileSize

public int getMinimumTileSize()

findMatches

public void findMatches()


Copyright © 2009-2010 SonarSource. All Rights Reserved.