Package net.sourceforge.pmd.cpd
Class MatchAlgorithm
- java.lang.Object
-
- net.sourceforge.pmd.cpd.MatchAlgorithm
-
public class MatchAlgorithm extends Object
-
-
Constructor Summary
Constructors Constructor Description MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min)
MatchAlgorithm(Map<String,SourceCode> sourceCode, Tokens tokens, int min, CPDListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
findMatches()
int
getMinimumTileSize()
Iterator<Match>
matches()
void
setListener(CPDListener listener)
TokenEntry
tokenAt(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
-
setListener
public void setListener(CPDListener listener)
-
tokenAt
public TokenEntry tokenAt(int offset, TokenEntry m)
-
getMinimumTileSize
public int getMinimumTileSize()
-
findMatches
public void findMatches()
-
-