Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 6 | 5 | 0.959 | switch_group |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 348 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java |
2 | 5 | 656 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java |
3 | 5 | 661 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java |
4 | 5 | 163 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModel.java |
5 | 5 | 265 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java |
6 | 5 | 265 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java |
| ||||
case JEM_FIELD: if ( !memento.hasMoreTokens()) return this ; String fieldName = memento.nextToken(); JavaElement field = (JavaElement) getField(fieldName); return field.getHandleFromMemento(memento, workingCopyOwner); |
| ||||
case JEM_PACKAGEDECLARATION: if ( !memento.hasMoreTokens()) return this ; String pkgName = memento.nextToken(); JavaElement pkgDecl = (JavaElement) getPackageDeclaration(pkgName); return pkgDecl.getHandleFromMemento(memento, workingCopyOwner); |
| ||||
case JEM_TYPE: if ( !memento.hasMoreTokens()) return this ; String typeName = memento.nextToken(); JavaElement type = (JavaElement) getType(typeName); return type.getHandleFromMemento(memento, workingCopyOwner); |
| ||||
case JEM_JAVAPROJECT: if ( !memento.hasMoreTokens()) return this ; String projectName = memento.nextToken(); JavaElement project = (JavaElement) getJavaProject(projectName); return project.getHandleFromMemento(memento, owner); |
| ||||
case JEM_CLASSFILE: if ( !memento.hasMoreTokens()) return this ; String classFileName = memento.nextToken(); JavaElement classFile = (JavaElement) getClassFile(classFileName); return classFile.getHandleFromMemento(memento, owner); |
| ||||
case JEM_FIELD: if ( !memento.hasMoreTokens()) return this ; String fieldName = memento.nextToken(); JavaElement field = (JavaElement) getField(fieldName); return field.getHandleFromMemento(memento, workingCopyOwner); |
| |||
case [[#variableb1109d20]]: if ( !memento.hasMoreTokens()) return this ; String [[#variableb1109c60]]= memento.nextToken(); JavaElement [[#variableb1109c80]]= (JavaElement) [[#variableb1109c20]]( [[#variableb1109c60]]); return [[#variableb1109c80]].getHandleFromMemento(memento, [[#variableb1109ba0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b1109d20]] | JEM_FIELD |
1 | 2 | [[#b1109d20]] | JEM_PACKAGEDECLARATION |
1 | 3 | [[#b1109d20]] | JEM_JAVAPROJECT |
1 | 4 | [[#b1109d20]] | JEM_CLASSFILE |
1 | 5 | [[#b1109d20]] | JEM_TYPE |
1 | 6 | [[#b1109d20]] | JEM_FIELD |
2 | 1 | [[#b1109c60]] | fieldName |
2 | 2 | [[#b1109c60]] | pkgName |
2 | 3 | [[#b1109c60]] | projectName |
2 | 4 | [[#b1109c60]] | classFileName |
2 | 5 | [[#b1109c60]] | typeName |
2 | 6 | [[#b1109c60]] | fieldName |
3 | 1 | [[#b1109c80]] | field |
3 | 2 | [[#b1109c80]] | pkgDecl |
3 | 3 | [[#b1109c80]] | project |
3 | 4 | [[#b1109c80]] | classFile |
3 | 5 | [[#b1109c80]] | type |
3 | 6 | [[#b1109c80]] | field |
4 | 1 | [[#b1109c20]] | getField |
4 | 2 | [[#b1109c20]] | getPackageDeclaration |
4 | 3 | [[#b1109c20]] | getJavaProject |
4 | 4 | [[#b1109c20]] | getClassFile |
4 | 5 | [[#b1109c20]] | getType |
4 | 6 | [[#b1109c20]] | getField |
5 | 1 | [[#b1109ba0]] | workingCopyOwner |
5 | 2 | [[#b1109ba0]] | workingCopyOwner |
5 | 3 | [[#b1109ba0]] | owner |
5 | 4 | [[#b1109ba0]] | owner |
5 | 5 | [[#b1109ba0]] | workingCopyOwner |
5 | 6 | [[#b1109ba0]] | workingCopyOwner |