File path: /emf-2.4.1/src/org/eclipse/emf/mapping/util/MappingSwitch.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/util/Ecore2EcoreSwitch.java | |||
Method name: T doSwitch(int, EObject)
|
Method name: T doSwitch(int, EObject)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | FunctionNamePair functionNamePair = (FunctionNamePair)theEObject;↵ | |||
2 | T result = caseFunctionNamePair(functionNamePair↵ | 1 | Ecore2EcoreMappingRoot ecore2EcoreMappingRoot = (Ecore2EcoreMappingRoot)theEObject;↵ | |
3 | );↵ | 2 | T result = caseEcore2EcoreMappingRoot(ecore2EcoreMappingRoot);↵ | |
4 | if (result == null) result = caseTypeConverter(functionNamePair);↵ | 3 | if (result == null) result = caseMappingRoot(ecore2EcoreMappingRoot);↵ | |
5 | if (result == null) result = caseMappingHelper(functionNamePair);↵ | 4 | if (result == null) result = caseMapping(ecore2EcoreMappingRoot);↵ | |
6 | if (result == null) result = defaultCase(theEObject);↵ | 5 | if (result == null) result = defaultCase(theEObject);↵ | |
7 | return result; | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 37 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 5 |
Time elapsed for statement mapping (ms) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
| 3 | Ecore2EcoreMappingRoot ecore2EcoreMappingRoot = (Ecore2EcoreMappingRoot)theEObject; | |||||
| 4 | T result = caseEcore2EcoreMappingRoot(ecore2EcoreMappingRoot); | |||||
33 | FunctionNamePair functionNamePair = (FunctionNamePair)theEObject; | | |||||
34 | T result = caseFunctionNamePair(functionNamePair); | | |||||
35 | if (result == null) | 9 | if (result == null) | ||||
|
| 10 | result = defaultCase(theEObject); | ||||
36 | result = caseTypeConverter(functionNamePair); |
| | ||||
37 | if (result == null) | 7 | if (result == null) | ||||
|
| 8 | result = caseMapping(ecore2EcoreMappingRoot); | ||||
38 | result = caseMappingHelper(functionNamePair); |
| | ||||
39 | if (result == null) | 5 | if (result == null) | ||||
|
| 6 | result = caseMappingRoot(ecore2EcoreMappingRoot); | ||||
40 | result = defaultCase(theEObject); |
| | ||||
41 | return result; | 11 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result=caseTypeConverter(functionNamePair); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement result=caseMapping(ecore2EcoreMappingRoot); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result=caseMappingHelper(functionNamePair); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Unmatched statement result=caseMappingRoot(ecore2EcoreMappingRoot); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement result=defaultCase(theEObject); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |