Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 6 | 0.954 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 144 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java |
2 | 10 | 156 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java |
| ||||
public Collection<TypeDeclaration> getNestedTypes() { final ITypeBinding[] memberTypes = getDeclarationBinding().getDeclaredTypes(); final List<TypeDeclaration> results = new ArrayList<TypeDeclaration>(memberTypes.length); for (ITypeBinding type: memberTypes) { Declaration mirrorDecl = Factory.createReferenceType(type, _env); if (mirrorDecl != null) results.add((TypeDeclaration) mirrorDecl); } return results; } |
| ||||
public Collection<TypeParameterDeclaration> getFormalTypeParameters() { final ITypeBinding[] typeParams = getDeclarationBinding().getTypeParameters(); final List<TypeParameterDeclaration> results = new ArrayList<TypeParameterDeclaration>(typeParams.length); for (ITypeBinding typeParam: typeParams) { Declaration mirrorDecl = Factory.createDeclaration(typeParam, _env); if (mirrorDecl != null) results.add( (TypeParameterDeclaration) mirrorDecl); } return results; } |
| |||
public Collection< [[#variable98ec5bc0]]> [[#variable98ec5b40]]() { final ITypeBinding[] [[#variable98ec5a80]]= getDeclarationBinding(). [[#variable98ec5a20]](); final List< [[#variable98ec5bc0]]> results = new ArrayList< [[#variable98ec5bc0]]>( [[#variable98ec5a80]].length); for (ITypeBinding [[#variable98ec59c0]]: [[#variable98ec5a80]]) { Declaration mirrorDecl = Factory. [[#variable98ec58e0]]( [[#variable98ec59c0]], _env); if (mirrorDecl != null) results.add(( [[#variable98ec5bc0]]) mirrorDecl); } return results; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#98ec5bc0]] | TypeDeclaration |
1 | 2 | [[#98ec5bc0]] | TypeParameterDeclaration |
2 | 1 | [[#98ec5b40]] | getNestedTypes |
2 | 2 | [[#98ec5b40]] | getFormalTypeParameters |
3 | 1 | [[#98ec5a80]] | memberTypes |
3 | 2 | [[#98ec5a80]] | typeParams |
4 | 1 | [[#98ec5a20]] | getDeclaredTypes |
4 | 2 | [[#98ec5a20]] | getTypeParameters |
5 | 1 | [[#98ec59c0]] | type |
5 | 2 | [[#98ec59c0]] | typeParam |
6 | 1 | [[#98ec58e0]] | createReferenceType |
6 | 2 | [[#98ec58e0]] | createDeclaration |