Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 3403 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java |
2 | 9 | 3414 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java |
| ||||
public final ClassScope outerMostClassScope() { ClassScope lastClassScope = null; Scope scope = this ; do { if (scope instanceof ClassScope) lastClassScope = (ClassScope) scope; scope = scope.parent; } while ( scope != null); return lastClassScope; // may answer null if no class around } |
| ||||
public final MethodScope outerMostMethodScope() { MethodScope lastMethodScope = null; Scope scope = this ; do { if (scope instanceof MethodScope) lastMethodScope = (MethodScope) scope; scope = scope.parent; } while ( scope != null); return lastMethodScope; // may answer null if no method around } |
| |||
public final [[#variablea38b9120]] [[#variablea38b90c0]]() { [[#variablea38b9120]] [[#variablea38b9040]]= null; Scope scope = this ; do { if (scope instanceof [[#variablea38b9120]]) [[#variablea38b9040]]= ( [[#variablea38b9120]]) scope; scope = scope.parent; } while (scope != null); return [[#variablea38b9040]]; // may answer null if no class around // may answer null if no method around } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a38b9120]] | ClassScope |
1 | 2 | [[#a38b9120]] | MethodScope |
2 | 1 | [[#a38b90c0]] | outerMostClassScope |
2 | 2 | [[#a38b90c0]] | outerMostMethodScope |
3 | 1 | [[#a38b9040]] | lastClassScope |
3 | 2 | [[#a38b9040]] | lastMethodScope |