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
Exception
public void run() throws Exception
Exception
public 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
IOException
public void addAllInDirectory(String dir) throws IOException
IOException
public void addRecursively(String dir) throws IOException
IOException
public void add(List<File> files) throws IOException
IOException
Copyright © 2014. All Rights Reserved.