|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.dry.parser.cpd.Duplication
public class Duplication
Java Bean class for a violation of the PMD format.
| Constructor Summary | |
|---|---|
Duplication()
|
|
| Method Summary | |
|---|---|
void |
addFile(SourceFile file)
Adds a new file to this duplication. |
java.lang.String |
getCodeFragment()
Returns the duplicate code fragment. |
java.util.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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Duplication()
| Method Detail |
|---|
public void addFile(SourceFile file)
file - the new filepublic java.util.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 java.lang.String getCodeFragment()
public void setCodeFragment(java.lang.String codeFragment)
codeFragment - the value to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||