Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 6 | 0.978 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 9568 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
2 | 23 | 9593 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
private void endVisitMethod(AbstractMethodDeclaration methodDeclaration, ClassScope scope) { TypeDeclaration[] foundTypes = null; int length = 0; if (this.typePtr > -1) { length = this.typePtr + 1; foundTypes = new TypeDeclaration[length]; System.arraycopy(this.types, 0, foundTypes, 0, length); } ReferenceContext oldContext = Parser.this.referenceContext; Parser.this.recoveryScanner.resetTo(methodDeclaration.bodyStart, methodDeclaration.bodyEnd); Scanner oldScanner = Parser.this.scanner; Parser.this.scanner = Parser.this.recoveryScanner; Parser.this.parseStatements( methodDeclaration, methodDeclaration.bodyStart, methodDeclaration.bodyEnd, foundTypes, compilationUnit); Parser.this.scanner = oldScanner; Parser.this.referenceContext = oldContext; for (int i = 0; i < length; i++) { foundTypes[i].traverse(typeVisitor, scope); } } |
| ||||
public void endVisit(Initializer initializer, MethodScope scope) { TypeDeclaration[] foundTypes = null; int length = 0; if (this.typePtr > -1) { length = this.typePtr + 1; foundTypes = new TypeDeclaration[length]; System.arraycopy(this.types, 0, foundTypes, 0, length); } ReferenceContext oldContext = Parser.this.referenceContext; Parser.this.recoveryScanner.resetTo(initializer.bodyStart, initializer.bodyEnd); Scanner oldScanner = Parser.this.scanner; Parser.this.scanner = Parser.this.recoveryScanner; Parser.this.parseStatements( this.enclosingType, initializer.bodyStart, initializer.bodyEnd, foundTypes, compilationUnit); Parser.this.scanner = oldScanner; Parser.this.referenceContext = oldContext; for (int i = 0; i < length; i++) { foundTypes[i].traverse(typeVisitor, scope); } } |
| |||
[[#variableb92aa900]]void [[#variableb92aa840]]( [[#variableb92aa820]] [[#variableb92aa740]], [[#variableb92aa7e0]] scope) { TypeDeclaration[] foundTypes = null; int length = 0; if (this.typePtr > -1) { length = this.typePtr + 1; foundTypes = new TypeDeclaration[length]; System.arraycopy(this.types, 0, foundTypes, 0, length); } ReferenceContext oldContext = Parser.this.referenceContext; Parser.this.recoveryScanner.resetTo( [[#variableb92aa740]].bodyStart, [[#variableb92aa740]].bodyEnd); Scanner oldScanner = Parser.this.scanner; Parser.this.scanner = Parser.this.recoveryScanner; Parser.this.parseStatements( [[#variableb92aa7c0]], [[#variableb92aa740]].bodyStart, [[#variableb92aa740]].bodyEnd, foundTypes, compilationUnit); Parser.this.scanner = oldScanner; Parser.this.referenceContext = oldContext; for (int i = 0; i < length; i++) { foundTypes[i].traverse(typeVisitor, scope); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b92aa900]] | private |
1 | 2 | [[#b92aa900]] | public |
2 | 1 | [[#b92aa840]] | endVisitMethod |
2 | 2 | [[#b92aa840]] | endVisit |
3 | 1 | [[#b92aa820]] | AbstractMethodDeclaration |
3 | 2 | [[#b92aa820]] | Initializer |
4 | 1 | [[#b92aa740]] | methodDeclaration |
4 | 2 | [[#b92aa740]] | initializer |
5 | 1 | [[#b92aa7e0]] | ClassScope |
5 | 2 | [[#b92aa7e0]] | MethodScope |
6 | 1 | [[#b92aa7c0]] | methodDeclaration |
6 | 2 | [[#b92aa7c0]] | this.enclosingType |