Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 5 | 0.971 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 114 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredBlock.java |
2 | 20 | 139 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredBlock.java |
| ||||
/* * Record a statement declaration */ public RecoveredElement add(Statement stmt, int bracketBalanceValue) { return this.add(stmt, bracketBalanceValue, false); } /* * Record a statement declaration */ public RecoveredElement add(Statement stmt, int bracketBalanceValue, boolean delegatedByParent) { /* do not consider a nested block starting passed the block end (if set) it must be belonging to an enclosing block */ if (this.blockDeclaration.sourceEnd != 0 && stmt.sourceStart > this.blockDeclaration.sourceEnd) { if (delegatedByParent) return this ; //ignore return this.parent.add(stmt, bracketBalanceValue); } RecoveredStatement element = new RecoveredStatement(stmt, this, bracketBalanceValue); this.attach(element); if (stmt.sourceEnd == 0) return element; return this ; } |
| ||||
/* * Addition of a type to an initializer (act like inside method body) */ public RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue) { return this.add(typeDeclaration, bracketBalanceValue, false); } /* * Addition of a type to an initializer (act like inside method body) */ public RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue, boolean delegatedByParent) { /* do not consider a type starting passed the block end (if set) it must be belonging to an enclosing block */ if (this.blockDeclaration.sourceEnd != 0 && typeDeclaration.declarationSourceStart > this.blockDeclaration.sourceEnd) { if (delegatedByParent) return this ; //ignore return this.parent.add(typeDeclaration, bracketBalanceValue); } RecoveredStatement element = new RecoveredType(typeDeclaration, this, bracketBalanceValue); this.attach(element); if (typeDeclaration.declarationSourceEnd == 0) return element; return this ; } |
| |||
/* * Addition of a type to an initializer (act like inside method body) */ /* * Record a statement declaration */ public RecoveredElement add( [[#variable4e345b60]] [[#variable4e3459e0]], int bracketBalanceValue) { return this.add( [[#variable4e3459e0]], bracketBalanceValue, false); } /* * Addition of a type to an initializer (act like inside method body) */ /* * Record a statement declaration */ public RecoveredElement add( [[#variable4e345b60]] [[#variable4e3459e0]], int bracketBalanceValue, boolean delegatedByParent) { /* do not consider a type starting passed the block end (if set) it must be belonging to an enclosing block */ /* do not consider a nested block starting passed the block end (if set) it must be belonging to an enclosing block */ if (this.blockDeclaration.sourceEnd != 0 && [[#variable4e3459e0]]. [[#variable54196b20]] > this.blockDeclaration.sourceEnd) { if (delegatedByParent) return this ; //ignore return this.parent.add( [[#variable4e3459e0]], bracketBalanceValue); } RecoveredStatement element = new [[#variable99f278a0]]( [[#variable4e3459e0]], this, bracketBalanceValue); this.attach(element); if ( [[#variable4e3459e0]]. [[#variable4e345ac0]]== 0) return element; return this ; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e345b60]] | TypeDeclaration |
1 | 2 | [[#4e345b60]] | Statement |
2 | 1 | [[#4e3459e0]] | typeDeclaration |
2 | 2 | [[#4e3459e0]] | stmt |
3 | 1 | [[#54196b20]] | declarationSourceStart |
3 | 2 | [[#54196b20]] | sourceStart |
4 | 1 | [[#99f278a0]] | RecoveredType |
4 | 2 | [[#99f278a0]] | RecoveredStatement |
5 | 1 | [[#4e345ac0]] | declarationSourceEnd |
5 | 2 | [[#4e345ac0]] | sourceEnd |