| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 4 | 3 | 0.952 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 32 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeSearcher.java |
| 2 | 9 | 44 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeSearcher.java |
| 3 | 7 | 55 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeSearcher.java |
| 4 | 10 | 76 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeSearcher.java |
| ||||
public boolean visit(
ConstructorDeclaration constructorDeclaration,
ClassScope scope) {
if (constructorDeclaration.declarationSourceStart <= position &&
position <= constructorDeclaration.declarationSourceEnd) {
found = constructorDeclaration;
return false;
}
return true;
}
|
| ||||
public boolean visit(
FieldDeclaration fieldDeclaration,
MethodScope scope) {
if (fieldDeclaration.declarationSourceStart <= position &&
position <= fieldDeclaration.declarationSourceEnd) {
found = fieldDeclaration;
return false;
}
return true;
}
|
| ||||
public boolean visit(Initializer initializer, MethodScope scope) {
if (initializer.declarationSourceStart <= position &&
position <= initializer.declarationSourceEnd) {
found = initializer;
return false;
}
return true;
}
|
| ||||
public boolean visit(
MethodDeclaration methodDeclaration,
ClassScope scope) {
if (methodDeclaration.declarationSourceStart <= position &&
position <= methodDeclaration.declarationSourceEnd) {
found = methodDeclaration;
return false;
}
return true;
}
|
| |||
public boolean visit( [[#variablea5226da0]] [[#variablea5226d00]], [[#variablea5226c80]] scope) {
if ( [[#variablea5226d00]].declarationSourceStart <= position && position <= [[#variablea5226d00]].declarationSourceEnd) {
found = [[#variablea5226d00]];
return false;
}
return true;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a5226da0]] | ConstructorDeclaration |
| 1 | 2 | [[#a5226da0]] | FieldDeclaration |
| 1 | 3 | [[#a5226da0]] | Initializer |
| 1 | 4 | [[#a5226da0]] | MethodDeclaration |
| 2 | 1 | [[#a5226d00]] | constructorDeclaration |
| 2 | 2 | [[#a5226d00]] | fieldDeclaration |
| 2 | 3 | [[#a5226d00]] | initializer |
| 2 | 4 | [[#a5226d00]] | methodDeclaration |
| 3 | 1 | [[#a5226c80]] | ClassScope |
| 3 | 2 | [[#a5226c80]] | MethodScope |
| 3 | 3 | [[#a5226c80]] | MethodScope |
| 3 | 4 | [[#a5226c80]] | ClassScope |