Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 5 | 0.966 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 702 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java |
2 | 14 | 719 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java |
| ||||
{ final SimpleName[] result = new SimpleName[1]; ASTVisitor visitor = new ASTVisitor() { public boolean visit(QualifiedName qualifiedName) { Name left = qualifiedName.getQualifier(); if (left instanceof SimpleName) result[0] = (SimpleName) left; else left.accept(this ); return false; } }; name.accept(visitor); return result[0]; } |
| ||||
{ final SimpleType[] result = new SimpleType[1]; ASTVisitor visitor = new ASTVisitor() { public boolean visit(QualifiedType qualifiedType) { Type left = qualifiedType.getQualifier(); if (left instanceof SimpleType) result[0] = (SimpleType) left; else left.accept(this ); return false; } }; type.accept(visitor); return result[0]; } |
| |||
{ final [[#variableb3d9f300]][] result = new [[#variableb3d9f300]][1]; ASTVisitor visitor = new ASTVisitor() { public boolean visit( [[#variableb3d9f260]] [[#variableb3d9f200]]) { [[#variableb3d21480]] left = [[#variableb3d9f200]].getQualifier(); if (left instanceof [[#variableb3d9f300]]) result[0] = ( [[#variableb3d9f300]]) left; else left.accept(this ); return false; } }; [[#variableb3d9f1e0]].accept(visitor); return result[0]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b3d9f300]] | SimpleName |
1 | 2 | [[#b3d9f300]] | SimpleType |
2 | 1 | [[#b3d9f260]] | QualifiedName |
2 | 2 | [[#b3d9f260]] | QualifiedType |
3 | 1 | [[#b3d9f200]] | qualifiedName |
3 | 2 | [[#b3d9f200]] | qualifiedType |
4 | 1 | [[#b3d21480]] | Name |
4 | 2 | [[#b3d21480]] | Type |
5 | 1 | [[#b3d9f1e0]] | name |
5 | 2 | [[#b3d9f1e0]] | type |