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 void
add(java.io.File file)
void
add(java.util.List<java.io.File> files)
void
add(DBURI dburi)
void
addAllInDirectory(java.io.File dir)
void
addRecursively(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.void
go()
static void
main(java.lang.String[] args)
void
setCpdListener(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
-
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)
-
-