File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreSwitch.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreSwitch.java | |||
Method name: T doSwitch(int, EObject)
|
Method name: T doSwitch(int, EObject)
|
|||
Number of AST nodes: 13 | Number of AST nodes: 11 | |||
1 | EAttribute eAttribute = (EAttribute)theEObject;↵ | 1 | EDataType eDataType = (EDataType)theEObject;↵ | |
2 | T result = caseEAttribute(eAttribute);↵ | 2 | T result = caseEDataType(eDataType);↵ | |
3 | if (result == null) result = caseEStructuralFeature(eAttribute);↵ | 3 | if (result == null) result = caseE↵ | |
4 | if (result == null) result = caseETypedElement(eAttribute);↵ | 4 | Classifier(eDataType);↵ | |
5 | if (result == null) result = caseENamedElement(eAttribute);↵ | 5 | if (result == null) result = caseENamedElement(eDataType);↵ | |
6 | if (result == null) result = caseEModelElement(eAttribute);↵ | 6 | if (result == null) result = caseEModelElement(eDataType);↵ | |
7 | if (result == null) result = defaultCase(theEObject);↵ | 7 | if (result == null) result = defaultCase(theEObject);↵ | |
8 | return result; | 8 |
| |
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.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 60 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 8 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
3 | EAttribute eAttribute = (EAttribute)theEObject; | | |||||
4 | T result = caseEAttribute(eAttribute); | | |||||
| 47 | EDataType eDataType = (EDataType)theEObject; | |||||
| 48 | T result = caseEDataType(eDataType); | |||||
5 | if (result == null) | 49 | if (result == null) | ||||
6 | result = caseEStructuralFeature(eAttribute); |
| | ||||
|
| 50 | result = caseEClassifier(eDataType); | ||||
7 | if (result == null) | 51 | if (result == null) | ||||
8 | result = caseETypedElement(eAttribute); |
| | ||||
|
| 52 | result = caseENamedElement(eDataType); | ||||
9 | if (result == null) | 53 | if (result == null) | ||||
10 | result = caseENamedElement(eAttribute); |
| | ||||
|
| 54 | result = caseEModelElement(eDataType); | ||||
11 | if (result == null) | 55 | if (result == null) | ||||
12 | result = caseEModelElement(eAttribute); |
| | ||||
|
| 56 | result = defaultCase(theEObject); | ||||
13 | if (result == null) | | |||||
14 | result = defaultCase(theEObject); |
| | ||||
15 | return result; | 57 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=caseEStructuralFeature(eAttribute); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result=caseEClassifier(eDataType); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement result=caseETypedElement(eAttribute); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result=caseENamedElement(eDataType); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Unmatched statement result=caseENamedElement(eAttribute); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched statement result=caseEModelElement(eDataType); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Unmatched statement result=caseEModelElement(eAttribute); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | 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 |
9 | 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 |