| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 3 | 0.950 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 67 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/TargetSourceRangeComputer.java |
| 2 | 9 | 22 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRange.java |
| ||||
/**
* Creates a new source range.
*
* @param startPosition the 0-based character index, or <code>-1</code>
* if no source position information is known
* @param length the (possibly 0) length, or <code>0</code>
* if no source position information is known
*/
public SourceRange(int startPosition, int length) {
this.startPosition = startPosition;
this.length = length;
}
/**
* Returns the start position.
*
* @return the 0-based character index, or <code>-1</code>
* if no source position information is known
*/
public int getStartPosition() {
return this.startPosition;
}
|
| ||||
public SourceRange(int offset, int length) {
this.offset = offset;
this.length = length;
}
/**
* @see ISourceRange
*/
public int getLength() {
return this.length;
}
|
| |||
/**
* Creates a new source range.
*
* @param startPosition the 0-based character index, or <code>-1</code>
* if no source position information is known
* @param length the (possibly 0) length, or <code>0</code>
* if no source position information is known
*/
public SourceRange(int [[#variable57bf3d20]], int length) {
this. [[#variable57bf3d20]]= [[#variable57bf3d20]];
this.length = length;
}
/**
* Returns the start position.
*
* @return the 0-based character index, or <code>-1</code>
* if no source position information is known
*/
/**
* @see ISourceRange
*/
public int [[#variable57bf3840]]() {
return this. [[#variable57bf3dc0]];
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#57bf3d20]] | startPosition |
| 1 | 2 | [[#57bf3d20]] | offset |
| 2 | 1 | [[#57bf3840]] | getStartPosition |
| 2 | 2 | [[#57bf3840]] | getLength |
| 3 | 1 | [[#57bf3dc0]] | startPosition |
| 3 | 2 | [[#57bf3dc0]] | length |