Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.991 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 174 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java |
2 | 8 | 184 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java |
| ||||
public boolean visit(FieldAccess node) { final ITypeBinding declaring = MoveInnerToTopRefactoring.getDeclaringTypeBinding(node); if (declaring != null) { final IType type = (IType) declaring.getJavaElement(); if (type != null && fHierarchy.contains(type)) fFieldAccesses.add(node); } return super.visit(node); } |
| ||||
public boolean visit(MethodInvocation node) { final ITypeBinding declaring = MoveInnerToTopRefactoring.getDeclaringTypeBinding(node); if (declaring != null) { final IType type = (IType) declaring.getJavaElement(); if (type != null && fHierarchy.contains(type)) fMethodAccesses.add(node); } return super.visit(node); } |
| |||
public boolean visit( [[#variable5cd66aa0]] node) { final ITypeBinding declaring = MoveInnerToTopRefactoring.getDeclaringTypeBinding(node); if (declaring != null) { final IType type = (IType) declaring.getJavaElement(); if (type != null && fHierarchy.contains(type)) [[#variable5cd66a40]].add(node); } return super.visit(node); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5cd66aa0]] | FieldAccess |
1 | 2 | [[#5cd66aa0]] | MethodInvocation |
2 | 1 | [[#5cd66a40]] | fFieldAccesses |
2 | 2 | [[#5cd66a40]] | fMethodAccesses |