Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.969 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 44 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java |
2 | 6 | 36 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ReferenceAnalyzer.java |
| ||||
/* * cases: * - access to moved member (or to member of moved member) -> do nothing. * - (static) access to source -> change to source, import source. * - (static) access to target -> change to target. * - access to other type -> do nothing (import is done in MoveStaticMembersRefactoring#getUpdatedMemberSource()) */ // TW: Adapted references to type // - Reference to type inside moved type: // - if originally resolved by qualification -> no problem // - if originally resolved by import -> must add import in target too (qualify if import ambiguous) public MovedMemberAnalyzer(CompilationUnitRewrite cuRewrite, IBinding[] members, ITypeBinding source, ITypeBinding target) { super(cuRewrite, members, source, target); } public boolean targetNeedsSourceImport() { return fNeedsImport; } |
| ||||
public ReferenceAnalyzer(CompilationUnitRewrite cuRewrite, IBinding[] members, ITypeBinding target, ITypeBinding source) { super(cuRewrite, members, source, target); } public boolean needsTargetImport() { return fNeedsImport; } |
| |||
/* * cases: * - access to moved member (or to member of moved member) -> do nothing. * - (static) access to source -> change to source, import source. * - (static) access to target -> change to target. * - access to other type -> do nothing (import is done in MoveStaticMembersRefactoring#getUpdatedMemberSource()) */ // TW: Adapted references to type // - Reference to type inside moved type: // - if originally resolved by qualification -> no problem // - if originally resolved by import -> must add import in target too (qualify if import ambiguous) public [[#variable95db6b80]](CompilationUnitRewrite cuRewrite, IBinding[] members, ITypeBinding [[#variable95db6a60]], ITypeBinding [[#variable95db6b00]]) { super(cuRewrite, members, source, target); } public boolean [[#variable95db6b20]]() { return fNeedsImport; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95db6b80]] | MovedMemberAnalyzer |
1 | 2 | [[#95db6b80]] | ReferenceAnalyzer |
2 | 1 | [[#95db6a60]] | source |
2 | 2 | [[#95db6a60]] | target |
3 | 1 | [[#95db6b00]] | target |
3 | 2 | [[#95db6b00]] | source |
4 | 1 | [[#95db6b20]] | targetNeedsSourceImport |
4 | 2 | [[#95db6b20]] | needsTargetImport |