public class CPD extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(File file) |
void |
add(List<File> files) |
void |
addAllInDirectory(String dir) |
void |
addRecursively(String dir) |
Iterator<net.sourceforge.pmd.cpd.Match> |
getMatches() |
void |
go() |
static void |
main(String[] args)
All processing is via the main method
|
void |
run()
Runs CPD using the specified settings.
|
void |
setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
Processes a package.
|
public Settings settings
public CPD(Settings settings)
public static void main(String[] args) throws Exception
Exceptionpublic void setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
packageSpec - Package specification to parsexmlOut - XML writerpPackageName - The name of the package which is processedSystemExitException - Thrown if an error occurred and the user specified the halt on errors option.
All other throwables will be caught.public void go()
public Iterator<net.sourceforge.pmd.cpd.Match> getMatches()
public void add(File file) throws IOException
IOExceptionpublic void addAllInDirectory(String dir) throws IOException
IOExceptionpublic void addRecursively(String dir) throws IOException
IOExceptionpublic void add(List<File> files) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.