public T doSwitch(EObject theEObject) { return doSwitch(theEObject.eClass(), theEObject); } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected T doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); } else { List<EClass> eSuperTypes = theEClass.getESuperTypes(); return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
public T doSwitch(EObject theEObject) { return doSwitch(theEObject.eClass(), theEObject); } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected T doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); } else { List<EClass> eSuperTypes = theEClass.getESuperTypes(); return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/tree/util/TreeSwitch.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2ecore/util/Ecore2EcoreSwitch.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public T doSwitch(EObject theEObject)
1
public T doSwitch(EObject theEObject)
2
  {
2
  {
3
    return doSwitch(theEObject.eClass(), theEObject);
3
    return doSwitch(theEObject.eClass(), theEObject);
4
  }
4
  }
5
  /**
5
  /**
6
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
6
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
7
   * <!-- begin-user-doc -->
7
   * <!-- begin-user-doc -->
8
   * <!-- end-user-doc -->
8
   * <!-- end-user-doc -->
9
   * @return the first non-null result returned by a <code>caseXXX</code> call.
9
   * @return the first non-null result returned by a <code>caseXXX</code> call.
10
   * @generated
10
   * @generated
11
   */
11
   */
12
  protected T doSwitch(EClass theEClass, EObject theEObject)
12
  protected T doSwitch(EClass theEClass, EObject theEObject)
13
  {
13
  {
14
    if (theEClass.eContainer() == modelPackage)
14
    if (theEClass.eContainer() == modelPackage)
15
    {
15
    {
16
      return doSwitch(theEClass.getClassifierID(), theEObject);
16
      return doSwitch(theEClass.getClassifierID(), theEObject);
17
    }
17
    }
18
    else
18
    else
19
    {
19
    {
20
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
20
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
21
      return
21
      return
22
        eSuperTypes.isEmpty() ?
22
        eSuperTypes.isEmpty() ?
23
          defaultCase(theEObject) :
23
          defaultCase(theEObject) :
24
          doSwitch(eSuperTypes.get(0), theEObject);
24
          doSwitch(eSuperTypes.get(0), theEObject);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0