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);
|