Package net.sourceforge.pmd.cpd
Class CPD
- java.lang.Object
-
- net.sourceforge.pmd.cpd.CPD
-
@Deprecated public class CPD extends Object
Deprecated.Use the module pmd-cli for CLI support.
-
-
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 voidadd(File file)Deprecated.voidadd(List<File> files)Deprecated.voidadd(SourceCode sourceCode)Deprecated.voidadd(DBURI dburi)Deprecated.voidaddAllInDirectory(File dir)Deprecated.voidaddRecursively(File dir)Deprecated.Iterator<Match>getMatches()Deprecated.UsetoReport().List<String>getSourcePaths()Deprecated.List names/paths of each source to be processed.List<SourceCode>getSources()Deprecated.Get each Source to be processed.voidgo()Deprecated.static voidmain(String[] args)Deprecated.Use module pmd-cli -- to be removed before 7.0.0 is out.voidsetCpdListener(CPDListener cpdListener)Deprecated.CPDReporttoReport()Deprecated.
-
-
-
Constructor Detail
-
CPD
public CPD(CPDConfiguration theConfiguration)
Deprecated.
-
-
Method Detail
-
setCpdListener
public void setCpdListener(CPDListener cpdListener)
Deprecated.
-
go
public void go()
Deprecated.
-
getMatches
@Deprecated public Iterator<Match> getMatches()
Deprecated.UsetoReport().
-
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)
Deprecated.
-
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
@Deprecated public static void main(String[] args)
Deprecated.Use module pmd-cli -- to be removed before 7.0.0 is out.Entry to invoke CPD as command line tool. Note that this will invokeSystem.exit(int).- Parameters:
args- command line arguments
-
toReport
public CPDReport toReport()
Deprecated.
-
-