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: 11 | Number of AST nodes: 11 | |||
1 | EParameter eParameter = (EParameter)theEObject;↵ | 1 | EDataType eDataType = (EDataType)theEObject;↵ | |
2 | T result = caseEParameter(eParameter);↵ | 2 | T result = caseEDataType(eDataType);↵ | |
3 | if (result == null) result = caseETypedElement(eParameter);↵ | 3 | if (result == null) result = caseEClassifier(eDataType);↵ | |
4 | if (result == null) result = caseENamedElement(eParameter);↵ | 4 | if (result == null) result = caseENamedElement(eDataType);↵ | |
5 | if (result == null) result = caseEModelElement(eParameter);↵ | 5 | if (result == null) result = caseEModelElement(eDataType);↵ | |
6 | if (result == null) result = defaultCase(theEObject);↵ | 6 | if (result == null) result = defaultCase(theEObject);↵ | |
7 | return result; | 7 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 56 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 2.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 47 | EDataType eDataType = (EDataType)theEObject; | ||||||||||||||||
| 48 | T result = caseEDataType(eDataType); | ||||||||||||||||
127 | EParameter eParameter = (EParameter)theEObject; | | ||||||||||||||||
128 | T result = caseEParameter(eParameter); | | ||||||||||||||||
129 | if (result == null) | 55 | if (result == null) | |||||||||||||||
|
| 56 | result = defaultCase(theEObject); | |||||||||||||||
130 | result = caseETypedElement(eParameter); |
| | |||||||||||||||
131 | if (result == null) | 51 | if (result == null) | |||||||||||||||
132 | result = caseENamedElement(eParameter); |
| 52 | result = caseENamedElement(eDataType); | ||||||||||||||
133 | if (result == null) | 53 | if (result == null) | |||||||||||||||
134 | result = caseEModelElement(eParameter); |
| 54 | result = caseEModelElement(eDataType); | ||||||||||||||
135 | if (result == null) | 49 | if (result == null) | |||||||||||||||
|
| 50 | result = caseEClassifier(eDataType); | |||||||||||||||
136 | result = defaultCase(theEObject); |
| | |||||||||||||||
137 | return result; | 57 | 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=caseETypedElement(eParameter); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Type org.eclipse.emf.ecore.EParameter of variable eParameter does not match with type org.eclipse.emf.ecore.EDataType of variable eDataType |
4 | Type org.eclipse.emf.ecore.EParameter of variable eParameter does not match with type org.eclipse.emf.ecore.EDataType of variable eDataType |
5 | 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 |
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 |