Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 4 | 0.962 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 124 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java |
2 | 13 | 139 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java |
| ||||
public Collection<EnumDeclaration> getEnums() { List<IType> types = getTypesInPackage(_pkgFragments); List<EnumDeclaration> enums = new ArrayList<EnumDeclaration>(); for (IType type: types) { try { if (type.isEnum()) { enums.add((EnumDeclaration) _env.getTypeDeclaration(type)); } } catch (JavaModelException ex) { } // No longer exists, don't return it } return enums; } |
| ||||
public Collection<InterfaceDeclaration> getInterfaces() { List<IType> types = getTypesInPackage(_pkgFragments); List<InterfaceDeclaration> interfaces = new ArrayList<InterfaceDeclaration>(); for (IType type: types) { try { if (type.isInterface()) { interfaces.add((InterfaceDeclaration) _env.getTypeDeclaration(type)); } } catch (JavaModelException ex) { } // No longer exists, don't return it } return interfaces; } |
| |||
public Collection< [[#variable55e1fbc0]]> [[#variable55e1fc00]]() { List<IType> types = getTypesInPackage(_pkgFragments); List< [[#variable55e1fbc0]]> [[#variable55e1f720]]= new ArrayList< [[#variable55e1fbc0]]>(); for (IType type: types) { try { if (type. [[#variable55e1fc60]]()) { [[#variable55e1f720]].add(( [[#variable55e1fbc0]]) _env.getTypeDeclaration(type)); } } catch (JavaModelException ex) { } // No longer exists, don't return it } return [[#variable55e1f720]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55e1fbc0]] | EnumDeclaration |
1 | 2 | [[#55e1fbc0]] | InterfaceDeclaration |
2 | 1 | [[#55e1fc00]] | getEnums |
2 | 2 | [[#55e1fc00]] | getInterfaces |
3 | 1 | [[#55e1f720]] | enums |
3 | 2 | [[#55e1f720]] | interfaces |
4 | 1 | [[#55e1fc60]] | isEnum |
4 | 2 | [[#55e1fc60]] | isInterface |