Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 5 | 0.950 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 425 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
2 | 9 | 439 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
3 | 10 | 453 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
| ||||
/** * Find the matching parse node, answers null if nothing found */ public FieldDeclaration declarationOf(FieldBinding fieldBinding) { if (fieldBinding != null && this.fields != null) { for (int i = 0, max = this.fields.length; i < max; i++) { FieldDeclaration fieldDecl; if ((fieldDecl = this.fields[i]).binding == fieldBinding) return fieldDecl; } } return null; } |
| ||||
/** * Find the matching parse node, answers null if nothing found */ public TypeDeclaration declarationOf(MemberTypeBinding memberTypeBinding) { if (memberTypeBinding != null && this.memberTypes != null) { for (int i = 0, max = this.memberTypes.length; i < max; i++) { TypeDeclaration memberTypeDecl; if ((memberTypeDecl = this.memberTypes[i]).binding == memberTypeBinding) return memberTypeDecl; } } return null; } |
| ||||
/** * Find the matching parse node, answers null if nothing found */ public AbstractMethodDeclaration declarationOf(MethodBinding methodBinding) { if (methodBinding != null && this.methods != null) { for (int i = 0, max = this.methods.length; i < max; i++) { AbstractMethodDeclaration methodDecl; if ((methodDecl = this.methods[i]).binding == methodBinding) return methodDecl; } } return null; } |
| |||
/** * Find the matching parse node, answers null if nothing found */ public [[#variableb7fdfa00]] declarationOf( [[#variableb7fdf980]] [[#variableb7fdf900]]) { if ( [[#variableb7fdf900]]!= null && this. [[#variableb7fdf880]]!= null) { for (int i = 0, max = this. [[#variableb7fdf880]].length; i < max; i++) { [[#variableb7fdfa00]] [[#variableb7fdf800]]; if (( [[#variableb7fdf800]]= this. [[#variableb7fdf880]][i]).binding == [[#variableb7fdf900]]) return [[#variableb7fdf800]]; } } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b7fdfa00]] | FieldDeclaration |
1 | 2 | [[#b7fdfa00]] | TypeDeclaration |
1 | 3 | [[#b7fdfa00]] | AbstractMethodDeclaration |
2 | 1 | [[#b7fdf980]] | FieldBinding |
2 | 2 | [[#b7fdf980]] | MemberTypeBinding |
2 | 3 | [[#b7fdf980]] | MethodBinding |
3 | 1 | [[#b7fdf900]] | fieldBinding |
3 | 2 | [[#b7fdf900]] | memberTypeBinding |
3 | 3 | [[#b7fdf900]] | methodBinding |
4 | 1 | [[#b7fdf880]] | fields |
4 | 2 | [[#b7fdf880]] | memberTypes |
4 | 3 | [[#b7fdf880]] | methods |
5 | 1 | [[#b7fdf800]] | fieldDecl |
5 | 2 | [[#b7fdf800]] | memberTypeDecl |
5 | 3 | [[#b7fdf800]] | methodDecl |