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()
Find matches in the provided source code using the current settings.
|
static void |
main(String[] args)
Runn CPD using command-line settings.
|
void |
run()
Run CPD using the current settings.
|
void |
setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
Set monitor that checks for Cut and Paste in processed source code.
|
public Settings settings
public CPD(Settings settings)
settings - command-line parameterespublic static void main(String[] args) throws Exception
args - command-line parameteresException - on any errorpublic void run()
throws Exception
Exception - on any errorpublic void setCpdListener(net.sourceforge.pmd.cpd.CPDListener cpdListener)
cpdListener - source code listenerpublic 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 © 2015. All rights reserved.