Package net.sourceforge.pmd.cpd
Class CPD
- java.lang.Object
-
- net.sourceforge.pmd.cpd.CPD
-
@Deprecated public class CPD extends Object
Deprecated.This class is to be removed in PMD 7 in favor of a unified PmdCli entry point.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CPD.StatusCode
Deprecated.This class is to be removed in PMD 7 in favor of a unified PmdCli entry point.
-
Constructor Summary
Constructors Constructor Description CPD(CPDConfiguration theConfiguration)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(File file)
Deprecated.void
add(List<File> files)
Deprecated.void
add(SourceCode sourceCode)
Deprecated.void
add(DBURI dburi)
Deprecated.void
addAllInDirectory(File dir)
Deprecated.void
addRecursively(File dir)
Deprecated.Iterator<Match>
getMatches()
Deprecated.List<String>
getSourcePaths()
Deprecated.List names/paths of each source to be processed.List<SourceCode>
getSources()
Deprecated.Get each Source to be processed.void
go()
Deprecated.static void
main(String[] args)
Deprecated.Entry to invoke CPD as command line tool.static CPD.StatusCode
runCpd(String... args)
Deprecated.Parses the command line and executes CPD.void
setCpdListener(CPDListener cpdListener)
Deprecated.CPDReport
toReport()
Deprecated.
-
-
-
Constructor Detail
-
CPD
public CPD(CPDConfiguration theConfiguration)
Deprecated.
-
-
Method Detail
-
setCpdListener
public void setCpdListener(CPDListener cpdListener)
Deprecated.
-
go
public void go()
Deprecated.
-
addAllInDirectory
public void addAllInDirectory(File dir) throws IOException
Deprecated.- Throws:
IOException
-
addRecursively
public void addRecursively(File dir) throws IOException
Deprecated.- Throws:
IOException
-
add
public void add(List<File> files) throws IOException
Deprecated.- Throws:
IOException
-
add
public void add(File file) throws IOException
Deprecated.- Throws:
IOException
-
add
public void add(DBURI dburi) throws IOException
Deprecated.- Throws:
IOException
-
add
@Experimental public void add(SourceCode sourceCode) throws IOException
Deprecated.- Throws:
IOException
-
getSourcePaths
public List<String> getSourcePaths()
Deprecated.List names/paths of each source to be processed.- Returns:
- names of sources to be processed
-
getSources
public List<SourceCode> getSources()
Deprecated.Get each Source to be processed.- Returns:
- all Sources to be processed
-
main
public static void main(String[] args)
Deprecated.Entry to invoke CPD as command line tool. Note that this will invokeSystem.exit(int)
.- Parameters:
args
- command line arguments
-
runCpd
public static CPD.StatusCode runCpd(String... args)
Deprecated.Parses the command line and executes CPD. Returns the status code without exiting the VM.- Parameters:
args
- command line arguments- Returns:
- the status code
-
toReport
public CPDReport toReport()
Deprecated.
-
-