diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/util/Viatra2LogicAnnotationsSwitch.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/util/Viatra2LogicAnnotationsSwitch.java | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/util/Viatra2LogicAnnotationsSwitch.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/util/Viatra2LogicAnnotationsSwitch.java new file mode 100644 index 00000000..09288a62 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/util/Viatra2LogicAnnotationsSwitch.java | |||
@@ -0,0 +1,207 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation; | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.RelationAnnotation; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.*; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EObject; | ||
12 | import org.eclipse.emf.ecore.EPackage; | ||
13 | |||
14 | import org.eclipse.emf.ecore.util.Switch; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
19 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
20 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
21 | * starting with the actual class of the object | ||
22 | * and proceeding up the inheritance hierarchy | ||
23 | * until a non-null result is returned, | ||
24 | * which is the result of the switch. | ||
25 | * <!-- end-user-doc --> | ||
26 | * @see hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage | ||
27 | * @generated | ||
28 | */ | ||
29 | public class Viatra2LogicAnnotationsSwitch<T> extends Switch<T> { | ||
30 | /** | ||
31 | * The cached model package | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @generated | ||
35 | */ | ||
36 | protected static Viatra2LogicAnnotationsPackage modelPackage; | ||
37 | |||
38 | /** | ||
39 | * Creates an instance of the switch. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @generated | ||
43 | */ | ||
44 | public Viatra2LogicAnnotationsSwitch() { | ||
45 | if (modelPackage == null) { | ||
46 | modelPackage = Viatra2LogicAnnotationsPackage.eINSTANCE; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * Checks whether this is a switch for the given package. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @param ePackage the package in question. | ||
55 | * @return whether this is a switch for the given package. | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected boolean isSwitchFor(EPackage ePackage) { | ||
60 | return ePackage == modelPackage; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
72 | switch (classifierID) { | ||
73 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY: { | ||
74 | TransfomedViatraQuery transfomedViatraQuery = (TransfomedViatraQuery)theEObject; | ||
75 | T result = caseTransfomedViatraQuery(transfomedViatraQuery); | ||
76 | if (result == null) result = caseRelationAnnotation(transfomedViatraQuery); | ||
77 | if (result == null) result = caseAnnotation(transfomedViatraQuery); | ||
78 | if (result == null) result = defaultCase(theEObject); | ||
79 | return result; | ||
80 | } | ||
81 | case Viatra2LogicAnnotationsPackage.TRANSFORMED_VIATRA_WELLFORMEDNESS_CONSTRAINT: { | ||
82 | TransformedViatraWellformednessConstraint transformedViatraWellformednessConstraint = (TransformedViatraWellformednessConstraint)theEObject; | ||
83 | T result = caseTransformedViatraWellformednessConstraint(transformedViatraWellformednessConstraint); | ||
84 | if (result == null) result = caseAssertionAnnotation(transformedViatraWellformednessConstraint); | ||
85 | if (result == null) result = caseAnnotation(transformedViatraWellformednessConstraint); | ||
86 | if (result == null) result = defaultCase(theEObject); | ||
87 | return result; | ||
88 | } | ||
89 | case Viatra2LogicAnnotationsPackage.DEFINED_BY_DERIVED_FEATURE: { | ||
90 | DefinedByDerivedFeature definedByDerivedFeature = (DefinedByDerivedFeature)theEObject; | ||
91 | T result = caseDefinedByDerivedFeature(definedByDerivedFeature); | ||
92 | if (result == null) result = caseRelationAnnotation(definedByDerivedFeature); | ||
93 | if (result == null) result = caseAnnotation(definedByDerivedFeature); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | default: return defaultCase(theEObject); | ||
98 | } | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * Returns the result of interpreting the object as an instance of '<em>Transfomed Viatra Query</em>'. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * This implementation returns null; | ||
105 | * returning a non-null result will terminate the switch. | ||
106 | * <!-- end-user-doc --> | ||
107 | * @param object the target of the switch. | ||
108 | * @return the result of interpreting the object as an instance of '<em>Transfomed Viatra Query</em>'. | ||
109 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
110 | * @generated | ||
111 | */ | ||
112 | public T caseTransfomedViatraQuery(TransfomedViatraQuery object) { | ||
113 | return null; | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * Returns the result of interpreting the object as an instance of '<em>Transformed Viatra Wellformedness Constraint</em>'. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * This implementation returns null; | ||
120 | * returning a non-null result will terminate the switch. | ||
121 | * <!-- end-user-doc --> | ||
122 | * @param object the target of the switch. | ||
123 | * @return the result of interpreting the object as an instance of '<em>Transformed Viatra Wellformedness Constraint</em>'. | ||
124 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
125 | * @generated | ||
126 | */ | ||
127 | public T caseTransformedViatraWellformednessConstraint(TransformedViatraWellformednessConstraint object) { | ||
128 | return null; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * Returns the result of interpreting the object as an instance of '<em>Defined By Derived Feature</em>'. | ||
133 | * <!-- begin-user-doc --> | ||
134 | * This implementation returns null; | ||
135 | * returning a non-null result will terminate the switch. | ||
136 | * <!-- end-user-doc --> | ||
137 | * @param object the target of the switch. | ||
138 | * @return the result of interpreting the object as an instance of '<em>Defined By Derived Feature</em>'. | ||
139 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
140 | * @generated | ||
141 | */ | ||
142 | public T caseDefinedByDerivedFeature(DefinedByDerivedFeature object) { | ||
143 | return null; | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * Returns the result of interpreting the object as an instance of '<em>Annotation</em>'. | ||
148 | * <!-- begin-user-doc --> | ||
149 | * This implementation returns null; | ||
150 | * returning a non-null result will terminate the switch. | ||
151 | * <!-- end-user-doc --> | ||
152 | * @param object the target of the switch. | ||
153 | * @return the result of interpreting the object as an instance of '<em>Annotation</em>'. | ||
154 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
155 | * @generated | ||
156 | */ | ||
157 | public T caseAnnotation(Annotation object) { | ||
158 | return null; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * Returns the result of interpreting the object as an instance of '<em>Relation Annotation</em>'. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * This implementation returns null; | ||
165 | * returning a non-null result will terminate the switch. | ||
166 | * <!-- end-user-doc --> | ||
167 | * @param object the target of the switch. | ||
168 | * @return the result of interpreting the object as an instance of '<em>Relation Annotation</em>'. | ||
169 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
170 | * @generated | ||
171 | */ | ||
172 | public T caseRelationAnnotation(RelationAnnotation object) { | ||
173 | return null; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * Returns the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'. | ||
178 | * <!-- begin-user-doc --> | ||
179 | * This implementation returns null; | ||
180 | * returning a non-null result will terminate the switch. | ||
181 | * <!-- end-user-doc --> | ||
182 | * @param object the target of the switch. | ||
183 | * @return the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'. | ||
184 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
185 | * @generated | ||
186 | */ | ||
187 | public T caseAssertionAnnotation(AssertionAnnotation object) { | ||
188 | return null; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
193 | * <!-- begin-user-doc --> | ||
194 | * This implementation returns null; | ||
195 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
196 | * <!-- end-user-doc --> | ||
197 | * @param object the target of the switch. | ||
198 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
199 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
200 | * @generated | ||
201 | */ | ||
202 | @Override | ||
203 | public T defaultCase(EObject object) { | ||
204 | return null; | ||
205 | } | ||
206 | |||
207 | } //Viatra2LogicAnnotationsSwitch | ||