Class Duplication
java.lang.Object
org.apache.maven.plugins.pmd.model.Duplication
- All Implemented Interfaces:
Serializable
Class Duplication.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addFile.Get the codefragment field.getFiles()
Method getFiles.int
getLines()
Get the lines field.int
Get the tokens field.void
removeFile
(CpdFile cpdFile) Method removeFile.void
setCodefragment
(String codefragment) Set the codefragment field.void
Set the files field.void
setLines
(int lines) Set the lines field.void
setTokens
(int tokens) Set the tokens field.
-
Constructor Details
-
Duplication
public Duplication()
-
-
Method Details
-
addFile
Method addFile.- Parameters:
cpdFile
-
-
getCodefragment
Get the codefragment field.- Returns:
- String
-
getFiles
Method getFiles.- Returns:
- List
-
getLines
public int getLines()Get the lines field.- Returns:
- int
-
getTokens
public int getTokens()Get the tokens field.- Returns:
- int
-
removeFile
Method removeFile.- Parameters:
cpdFile
-
-
setCodefragment
Set the codefragment field.- Parameters:
codefragment
-
-
setFiles
Set the files field.- Parameters:
files
-
-
setLines
public void setLines(int lines) Set the lines field.- Parameters:
lines
-
-
setTokens
public void setTokens(int tokens) Set the tokens field.- Parameters:
tokens
-
-