public class CPD
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.io.File file) |
void |
add(java.util.List<java.io.File> files) |
void |
addAllInDirectory(java.lang.String dir) |
void |
addRecursively(java.lang.String dir) |
java.util.Iterator<net.sourceforge.pmd.cpd.Match> |
getMatches() |
void |
go() |
static void |
main(java.lang.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(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void run()
throws java.lang.Exception
java.lang.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 java.util.Iterator<net.sourceforge.pmd.cpd.Match> getMatches()
public void add(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void addAllInDirectory(java.lang.String dir)
throws java.io.IOException
java.io.IOExceptionpublic void addRecursively(java.lang.String dir)
throws java.io.IOException
java.io.IOExceptionpublic void add(java.util.List<java.io.File> files)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.