Package net.sourceforge.pmd.cpd
Class CPD
- java.lang.Object
-
- net.sourceforge.pmd.cpd.CPD
-
public class CPD extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CPD(CPDConfiguration theConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.io.File file)voidadd(java.util.List<java.io.File> files)voidadd(SourceCode sourceCode)voidadd(DBURI dburi)voidaddAllInDirectory(java.io.File dir)voidaddRecursively(java.io.File dir)java.util.Iterator<Match>getMatches()java.util.List<java.lang.String>getSourcePaths()List names/paths of each source to be processed.java.util.List<SourceCode>getSources()Get each Source to be processed.voidgo()static voidmain(java.lang.String[] args)voidsetCpdListener(CPDListener cpdListener)
-
-
-
Constructor Detail
-
CPD
public CPD(CPDConfiguration theConfiguration)
-
-
Method Detail
-
setCpdListener
public void setCpdListener(CPDListener cpdListener)
-
go
public void go()
-
getMatches
public java.util.Iterator<Match> getMatches()
-
addAllInDirectory
public void addAllInDirectory(java.io.File dir) throws java.io.IOException- Throws:
java.io.IOException
-
addRecursively
public void addRecursively(java.io.File dir) throws java.io.IOException- Throws:
java.io.IOException
-
add
public void add(java.util.List<java.io.File> files) throws java.io.IOException- Throws:
java.io.IOException
-
add
public void add(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
add
public void add(DBURI dburi) throws java.io.IOException
- Throws:
java.io.IOException
-
add
@Experimental public void add(SourceCode sourceCode) throws java.io.IOException
- Throws:
java.io.IOException
-
getSourcePaths
public java.util.List<java.lang.String> getSourcePaths()
List names/paths of each source to be processed.- Returns:
- names of sources to be processed
-
getSources
public java.util.List<SourceCode> getSources()
Get each Source to be processed.- Returns:
- all Sources to be processed
-
main
public static void main(java.lang.String[] args)
-
-