|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.sensor.duplication.internal.DefaultDuplicationBuilder
public class DefaultDuplicationBuilder
Constructor Summary | |
---|---|
DefaultDuplicationBuilder(InputFile inputFile)
|
Method Summary | |
---|---|
List<DuplicationGroup> |
build()
Call this method when you have declared all duplications of the file. |
DuplicationBuilder |
isDuplicatedBy(InputFile sameOrOtherFile,
int startLine,
int endLine)
Declare duplicate block of the previously declared DuplicationBuilder.originBlock(int, int) . |
DuplicationBuilder |
isDuplicatedBy(String fileKey,
int startLine,
int endLine)
For internal use. |
DuplicationBuilder |
originBlock(int startLine,
int endLine)
Declare duplication origin block. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDuplicationBuilder(InputFile inputFile)
Method Detail |
---|
public DuplicationBuilder originBlock(int startLine, int endLine)
DuplicationBuilder
DuplicationBuilder.isDuplicatedBy(InputFile, int, int)
to reference all duplicates of this block.
Then call again DuplicationBuilder.originBlock(int, int)
to declare another duplication.
originBlock
in interface DuplicationBuilder
public DuplicationBuilder isDuplicatedBy(InputFile sameOrOtherFile, int startLine, int endLine)
DuplicationBuilder
DuplicationBuilder.originBlock(int, int)
.
isDuplicatedBy
in interface DuplicationBuilder
sameOrOtherFile
- duplicate can be in the same file or in another file.public DuplicationBuilder isDuplicatedBy(String fileKey, int startLine, int endLine)
public List<DuplicationGroup> build()
DuplicationBuilder
build
in interface DuplicationBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |