net.sourceforge.pmd.cpd

Class MatchAlgorithm

public class MatchAlgorithm extends Object

BSD-style license; for more info see http://pmd.sourceforge.net/license.html
Constructor Summary
MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min)
MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min, CPDListener listener)
Method Summary
voidfindMatches()
intgetMinimumTileSize()
Iterator<Match>matches()
voidsetListener(CPDListener listener)
TokenEntrytokenAt(int offset, TokenEntry m)

Constructor Detail

MatchAlgorithm

public MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min)

MatchAlgorithm

public MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min, CPDListener listener)

Method Detail

findMatches

public void findMatches()

getMinimumTileSize

public int getMinimumTileSize()

matches

public Iterator<Match> matches()

setListener

public void setListener(CPDListener listener)

tokenAt

public TokenEntry tokenAt(int offset, TokenEntry m)