Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 5 | 0.965 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 947 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java |
2 | 17 | 977 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java |
| ||||
public boolean visit(ConstructorDeclaration constructorDeclaration, ClassScope scope) { if (constructorDeclaration.selector == assistIdentifier) { if (constructorDeclaration.binding != null) { throw new SelectionNodeFound(constructorDeclaration.binding); } else { if (constructorDeclaration.scope != null) { throw new SelectionNodeFound(new MethodBinding(constructorDeclaration.modifiers, constructorDeclaration.selector, null, null, null, constructorDeclaration.scope.referenceType().binding)); } } } return true; } public boolean visit(FieldDeclaration fieldDeclaration, MethodScope scope) { if (fieldDeclaration.name == assistIdentifier) { throw new SelectionNodeFound(fieldDeclaration.binding); } return true; } |
| ||||
public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) { if (methodDeclaration.selector == assistIdentifier) { if (methodDeclaration.binding != null) { throw new SelectionNodeFound(methodDeclaration.binding); } else { if (methodDeclaration.scope != null) { throw new SelectionNodeFound(new MethodBinding(methodDeclaration.modifiers, methodDeclaration.selector, null, null, null, methodDeclaration.scope.referenceType().binding)); } } } return true; } public boolean visit(TypeDeclaration typeDeclaration, CompilationUnitScope scope) { if (typeDeclaration.name == assistIdentifier) { throw new SelectionNodeFound(typeDeclaration.binding); } return true; } |
| |||
public boolean visit( [[#variableb5dbbfc0]] [[#variableb5dbbf80]], ClassScope scope) { if ( [[#variableb5dbbf80]].selector == assistIdentifier) { if ( [[#variableb5dbbf80]].binding != null) { throw new SelectionNodeFound( [[#variableb5dbbf80]].binding); } else { if ( [[#variableb5dbbf80]].scope != null) { throw new SelectionNodeFound(new MethodBinding( [[#variableb5dbbf80]].modifiers, [[#variableb5dbbf80]].selector, null, null, null, [[#variableb5dbbf80]].scope.referenceType().binding)); } } } return true; } public boolean visit( [[#variableb5dbbf20]] [[#variableb5dbbee0]], [[#variableb5dbbec0]] scope) { if ( [[#variableb5dbbee0]].name == assistIdentifier) { throw new SelectionNodeFound( [[#variableb5dbbee0]].binding); } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5dbbfc0]] | MethodDeclaration |
1 | 2 | [[#b5dbbfc0]] | ConstructorDeclaration |
2 | 1 | [[#b5dbbf80]] | methodDeclaration |
2 | 2 | [[#b5dbbf80]] | constructorDeclaration |
3 | 1 | [[#b5dbbf20]] | TypeDeclaration |
3 | 2 | [[#b5dbbf20]] | FieldDeclaration |
4 | 1 | [[#b5dbbee0]] | typeDeclaration |
4 | 2 | [[#b5dbbee0]] | fieldDeclaration |
5 | 1 | [[#b5dbbec0]] | CompilationUnitScope |
5 | 2 | [[#b5dbbec0]] | MethodScope |