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 TypeMethodDescriptionvoidMethod addFile.Get the codefragment field.getFiles()Method getFiles.intgetLines()Get the lines field.intGet the tokens field.voidremoveFile(CpdFile cpdFile) Method removeFile.voidsetCodefragment(String codefragment) Set the codefragment field.voidSet the files field.voidsetLines(int lines) Set the lines field.voidsetTokens(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-
-