public class Duplication extends Object
| Constructor and Description |
|---|
Duplication() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(SourceFile file)
Adds a new file to this duplication.
|
String |
getCodeFragment()
Returns the duplicate code fragment.
|
Collection<SourceFile> |
getFiles()
Returns all files of the duplication.
|
int |
getLines()
Returns the number of duplicate lines.
|
int |
getTokens()
Returns the number of duplicate tokens.
|
void |
setCodeFragment(String codeFragment)
Sets the duplicate code fragment to the specified value.
|
void |
setLines(int lines)
Sets the number of duplicate lines to the specified value.
|
void |
setTokens(int tokens)
Sets the number of duplicate tokens to the specified value.
|
public void addFile(SourceFile file)
file - the new filepublic Collection<SourceFile> getFiles()
public int getLines()
public void setLines(int lines)
lines - the value to setpublic int getTokens()
public void setTokens(int tokens)
tokens - the value to setpublic String getCodeFragment()
public void setCodeFragment(String codeFragment)
codeFragment - the value to setCopyright © 2018. All rights reserved.