net.sourceforge.pmd.cpd
Class CPD
java.lang.Object
net.sourceforge.pmd.cpd.CPD
- public class CPD
- extends java.lang.Object
Constructor Summary |
CPD(int minimumTileSize,
Language language)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
private java.util.Map source
listener
private CPDListener listener
tokens
private Tokens tokens
minimumTileSize
private int minimumTileSize
matchAlgorithm
private MatchAlgorithm matchAlgorithm
language
private Language language
CPD
public CPD(int minimumTileSize,
Language language)
setCpdListener
public void setCpdListener(CPDListener cpdListener)
go
public void go()
getMatches
public java.util.Iterator getMatches()
add
public void add(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
addAllInDirectory
public void addAllInDirectory(java.lang.String dir)
throws java.io.IOException
- Throws:
java.io.IOException
addRecursively
public void addRecursively(java.lang.String dir)
throws java.io.IOException
- Throws:
java.io.IOException
add
public void add(java.util.List files)
throws java.io.IOException
- Throws:
java.io.IOException
addDirectory
private void addDirectory(java.lang.String dir,
boolean recurse)
throws java.io.IOException
- Throws:
java.io.IOException
add
private void add(int fileCount,
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
usage
private static void usage()