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 | EStructuralFeature eStructuralFeature = (EStructuralFeature)theEObject;↵ | 1 | EParameter eParameter = (EParameter)theEObject;↵ | |
2 | T result = caseEStructuralFeature(eStructuralFeature);↵ | 2 | T result = caseEParameter(eParameter);↵ | |
3 | if (result == null) result = caseETypedElement(eStructuralFeature);↵ | 3 | if (result == null) result = caseETypedElement(eParameter);↵ | |
4 | if (result == null) result = caseENamedElement(eStructuralFeature);↵ | 4 | if (result == null) result = caseENamedElement(eParameter);↵ | |
5 | if (result == null) result = caseEModelElement(eStructuralFeature);↵ | 5 | if (result == null) result = caseEModelElement(eParameter);↵ | |
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 | 9 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 3.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 127 | EParameter eParameter = (EParameter)theEObject; | ||||||||||||||||
| 128 | T result = caseEParameter(eParameter); | ||||||||||||||||
153 | EStructuralFeature eStructuralFeature = (EStructuralFeature)theEObject; | | ||||||||||||||||
154 | T result = caseEStructuralFeature(eStructuralFeature); | | ||||||||||||||||
155 | if (result == null) | 129 | if (result == null) | |||||||||||||||
156 | result = caseETypedElement(eStructuralFeature); |
| 130 | result = caseETypedElement(eParameter); | ||||||||||||||
157 | if (result == null) | 131 | if (result == null) | |||||||||||||||
158 | result = caseENamedElement(eStructuralFeature); |
| 132 | result = caseENamedElement(eParameter); | ||||||||||||||
159 | if (result == null) | 133 | if (result == null) | |||||||||||||||
160 | result = caseEModelElement(eStructuralFeature); |
| 134 | result = caseEModelElement(eParameter); | ||||||||||||||
161 | if (result == null) | 135 | if (result == null) | |||||||||||||||
162 | result = defaultCase(theEObject); | 136 | result = defaultCase(theEObject); | |||||||||||||||
163 | return result; | 137 | return result; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EStructuralFeature of variable eStructuralFeature does not match with type org.eclipse.emf.ecore.EParameter of variable eParameter |
2 | Type org.eclipse.emf.ecore.EStructuralFeature of variable eStructuralFeature does not match with type org.eclipse.emf.ecore.EParameter of variable eParameter |
3 | Type org.eclipse.emf.ecore.EStructuralFeature of variable eStructuralFeature does not match with type org.eclipse.emf.ecore.EParameter of variable eParameter |