diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util')
2 files changed, 998 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java new file mode 100644 index 00000000..035b1191 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java | |||
@@ -0,0 +1,473 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Adapter; | ||
9 | import org.eclipse.emf.common.notify.Notifier; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EObject; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * The <b>Adapter Factory</b> for the model. | ||
18 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
21 | * @generated | ||
22 | */ | ||
23 | public class CftLanguageAdapterFactory extends AdapterFactoryImpl | ||
24 | { | ||
25 | /** | ||
26 | * The cached model package. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | protected static CftLanguagePackage modelPackage; | ||
32 | |||
33 | /** | ||
34 | * Creates an instance of the adapter factory. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @generated | ||
38 | */ | ||
39 | public CftLanguageAdapterFactory() | ||
40 | { | ||
41 | if (modelPackage == null) | ||
42 | { | ||
43 | modelPackage = CftLanguagePackage.eINSTANCE; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Returns whether this factory is applicable for the type of the object. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
51 | * <!-- end-user-doc --> | ||
52 | * @return whether this factory is applicable for the type of the object. | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | public boolean isFactoryForType(Object object) | ||
57 | { | ||
58 | if (object == modelPackage) | ||
59 | { | ||
60 | return true; | ||
61 | } | ||
62 | if (object instanceof EObject) | ||
63 | { | ||
64 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
65 | } | ||
66 | return false; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * The switch that delegates to the <code>createXXX</code> methods. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected CftLanguageSwitch<Adapter> modelSwitch = | ||
76 | new CftLanguageSwitch<Adapter>() | ||
77 | { | ||
78 | @Override | ||
79 | public Adapter caseCftModel(CftModel object) | ||
80 | { | ||
81 | return createCftModelAdapter(); | ||
82 | } | ||
83 | @Override | ||
84 | public Adapter caseImportDeclaration(ImportDeclaration object) | ||
85 | { | ||
86 | return createImportDeclarationAdapter(); | ||
87 | } | ||
88 | @Override | ||
89 | public Adapter caseComponentDefinition(ComponentDefinition object) | ||
90 | { | ||
91 | return createComponentDefinitionAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseEventDeclaration(EventDeclaration object) | ||
95 | { | ||
96 | return createEventDeclarationAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseInputEvent(InputEvent object) | ||
100 | { | ||
101 | return createInputEventAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseEventDefinition(EventDefinition object) | ||
105 | { | ||
106 | return createEventDefinitionAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) | ||
110 | { | ||
111 | return createBasicEventDefinitionAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseGateDefinition(GateDefinition object) | ||
115 | { | ||
116 | return createGateDefinitionAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseAndGate(AndGate object) | ||
120 | { | ||
121 | return createAndGateAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseOrGate(OrGate object) | ||
125 | { | ||
126 | return createOrGateAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter caseTransformationDefinition(TransformationDefinition object) | ||
130 | { | ||
131 | return createTransformationDefinitionAdapter(); | ||
132 | } | ||
133 | @Override | ||
134 | public Adapter caseMappingDefinition(MappingDefinition object) | ||
135 | { | ||
136 | return createMappingDefinitionAdapter(); | ||
137 | } | ||
138 | @Override | ||
139 | public Adapter caseMappingParameter(MappingParameter object) | ||
140 | { | ||
141 | return createMappingParameterAdapter(); | ||
142 | } | ||
143 | @Override | ||
144 | public Adapter caseLookupDefinition(LookupDefinition object) | ||
145 | { | ||
146 | return createLookupDefinitionAdapter(); | ||
147 | } | ||
148 | @Override | ||
149 | public Adapter caseVariable(Variable object) | ||
150 | { | ||
151 | return createVariableAdapter(); | ||
152 | } | ||
153 | @Override | ||
154 | public Adapter caseAssignment(Assignment object) | ||
155 | { | ||
156 | return createAssignmentAdapter(); | ||
157 | } | ||
158 | @Override | ||
159 | public Adapter caseEventReference(EventReference object) | ||
160 | { | ||
161 | return createEventReferenceAdapter(); | ||
162 | } | ||
163 | @Override | ||
164 | public Adapter caseComponentInstance(ComponentInstance object) | ||
165 | { | ||
166 | return createComponentInstanceAdapter(); | ||
167 | } | ||
168 | @Override | ||
169 | public Adapter defaultCase(EObject object) | ||
170 | { | ||
171 | return createEObjectAdapter(); | ||
172 | } | ||
173 | }; | ||
174 | |||
175 | /** | ||
176 | * Creates an adapter for the <code>target</code>. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @param target the object to adapt. | ||
180 | * @return the adapter for the <code>target</code>. | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Adapter createAdapter(Notifier target) | ||
185 | { | ||
186 | return modelSwitch.doSwitch((EObject)target); | ||
187 | } | ||
188 | |||
189 | |||
190 | /** | ||
191 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
192 | * <!-- begin-user-doc --> | ||
193 | * This default implementation returns null so that we can easily ignore cases; | ||
194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
195 | * <!-- end-user-doc --> | ||
196 | * @return the new adapter. | ||
197 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
198 | * @generated | ||
199 | */ | ||
200 | public Adapter createCftModelAdapter() | ||
201 | { | ||
202 | return null; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
207 | * <!-- begin-user-doc --> | ||
208 | * This default implementation returns null so that we can easily ignore cases; | ||
209 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
210 | * <!-- end-user-doc --> | ||
211 | * @return the new adapter. | ||
212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
213 | * @generated | ||
214 | */ | ||
215 | public Adapter createImportDeclarationAdapter() | ||
216 | { | ||
217 | return null; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createComponentDefinitionAdapter() | ||
231 | { | ||
232 | return null; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * This default implementation returns null so that we can easily ignore cases; | ||
239 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
240 | * <!-- end-user-doc --> | ||
241 | * @return the new adapter. | ||
242 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
243 | * @generated | ||
244 | */ | ||
245 | public Adapter createEventDeclarationAdapter() | ||
246 | { | ||
247 | return null; | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
252 | * <!-- begin-user-doc --> | ||
253 | * This default implementation returns null so that we can easily ignore cases; | ||
254 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
255 | * <!-- end-user-doc --> | ||
256 | * @return the new adapter. | ||
257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
258 | * @generated | ||
259 | */ | ||
260 | public Adapter createInputEventAdapter() | ||
261 | { | ||
262 | return null; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
267 | * <!-- begin-user-doc --> | ||
268 | * This default implementation returns null so that we can easily ignore cases; | ||
269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
270 | * <!-- end-user-doc --> | ||
271 | * @return the new adapter. | ||
272 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
273 | * @generated | ||
274 | */ | ||
275 | public Adapter createEventDefinitionAdapter() | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This default implementation returns null so that we can easily ignore cases; | ||
284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @return the new adapter. | ||
287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
288 | * @generated | ||
289 | */ | ||
290 | public Adapter createBasicEventDefinitionAdapter() | ||
291 | { | ||
292 | return null; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
297 | * <!-- begin-user-doc --> | ||
298 | * This default implementation returns null so that we can easily ignore cases; | ||
299 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
300 | * <!-- end-user-doc --> | ||
301 | * @return the new adapter. | ||
302 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
303 | * @generated | ||
304 | */ | ||
305 | public Adapter createGateDefinitionAdapter() | ||
306 | { | ||
307 | return null; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * This default implementation returns null so that we can easily ignore cases; | ||
314 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
315 | * <!-- end-user-doc --> | ||
316 | * @return the new adapter. | ||
317 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
318 | * @generated | ||
319 | */ | ||
320 | public Adapter createAndGateAdapter() | ||
321 | { | ||
322 | return null; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * This default implementation returns null so that we can easily ignore cases; | ||
329 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
330 | * <!-- end-user-doc --> | ||
331 | * @return the new adapter. | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
333 | * @generated | ||
334 | */ | ||
335 | public Adapter createOrGateAdapter() | ||
336 | { | ||
337 | return null; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
342 | * <!-- begin-user-doc --> | ||
343 | * This default implementation returns null so that we can easily ignore cases; | ||
344 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
345 | * <!-- end-user-doc --> | ||
346 | * @return the new adapter. | ||
347 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createTransformationDefinitionAdapter() | ||
351 | { | ||
352 | return null; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * This default implementation returns null so that we can easily ignore cases; | ||
359 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
360 | * <!-- end-user-doc --> | ||
361 | * @return the new adapter. | ||
362 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
363 | * @generated | ||
364 | */ | ||
365 | public Adapter createMappingDefinitionAdapter() | ||
366 | { | ||
367 | return null; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
372 | * <!-- begin-user-doc --> | ||
373 | * This default implementation returns null so that we can easily ignore cases; | ||
374 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
375 | * <!-- end-user-doc --> | ||
376 | * @return the new adapter. | ||
377 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
378 | * @generated | ||
379 | */ | ||
380 | public Adapter createMappingParameterAdapter() | ||
381 | { | ||
382 | return null; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
387 | * <!-- begin-user-doc --> | ||
388 | * This default implementation returns null so that we can easily ignore cases; | ||
389 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
390 | * <!-- end-user-doc --> | ||
391 | * @return the new adapter. | ||
392 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
393 | * @generated | ||
394 | */ | ||
395 | public Adapter createLookupDefinitionAdapter() | ||
396 | { | ||
397 | return null; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * This default implementation returns null so that we can easily ignore cases; | ||
404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
405 | * <!-- end-user-doc --> | ||
406 | * @return the new adapter. | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
408 | * @generated | ||
409 | */ | ||
410 | public Adapter createVariableAdapter() | ||
411 | { | ||
412 | return null; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
417 | * <!-- begin-user-doc --> | ||
418 | * This default implementation returns null so that we can easily ignore cases; | ||
419 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
420 | * <!-- end-user-doc --> | ||
421 | * @return the new adapter. | ||
422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
423 | * @generated | ||
424 | */ | ||
425 | public Adapter createAssignmentAdapter() | ||
426 | { | ||
427 | return null; | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * This default implementation returns null so that we can easily ignore cases; | ||
434 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
435 | * <!-- end-user-doc --> | ||
436 | * @return the new adapter. | ||
437 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
438 | * @generated | ||
439 | */ | ||
440 | public Adapter createEventReferenceAdapter() | ||
441 | { | ||
442 | return null; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
447 | * <!-- begin-user-doc --> | ||
448 | * This default implementation returns null so that we can easily ignore cases; | ||
449 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
450 | * <!-- end-user-doc --> | ||
451 | * @return the new adapter. | ||
452 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
453 | * @generated | ||
454 | */ | ||
455 | public Adapter createComponentInstanceAdapter() | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Creates a new adapter for the default case. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This default implementation returns null. | ||
464 | * <!-- end-user-doc --> | ||
465 | * @return the new adapter. | ||
466 | * @generated | ||
467 | */ | ||
468 | public Adapter createEObjectAdapter() | ||
469 | { | ||
470 | return null; | ||
471 | } | ||
472 | |||
473 | } //CftLanguageAdapterFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java new file mode 100644 index 00000000..29266601 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java | |||
@@ -0,0 +1,525 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.util.Switch; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
16 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
17 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
18 | * starting with the actual class of the object | ||
19 | * and proceeding up the inheritance hierarchy | ||
20 | * until a non-null result is returned, | ||
21 | * which is the result of the switch. | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
24 | * @generated | ||
25 | */ | ||
26 | public class CftLanguageSwitch<T> extends Switch<T> | ||
27 | { | ||
28 | /** | ||
29 | * The cached model package | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | protected static CftLanguagePackage modelPackage; | ||
35 | |||
36 | /** | ||
37 | * Creates an instance of the switch. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | public CftLanguageSwitch() | ||
43 | { | ||
44 | if (modelPackage == null) | ||
45 | { | ||
46 | modelPackage = CftLanguagePackage.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 | { | ||
61 | return ePackage == modelPackage; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected T doSwitch(int classifierID, EObject theEObject) | ||
73 | { | ||
74 | switch (classifierID) | ||
75 | { | ||
76 | case CftLanguagePackage.CFT_MODEL: | ||
77 | { | ||
78 | CftModel cftModel = (CftModel)theEObject; | ||
79 | T result = caseCftModel(cftModel); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
84 | { | ||
85 | ImportDeclaration importDeclaration = (ImportDeclaration)theEObject; | ||
86 | T result = caseImportDeclaration(importDeclaration); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
91 | { | ||
92 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
93 | T result = caseComponentDefinition(componentDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.EVENT_DECLARATION: | ||
98 | { | ||
99 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
100 | T result = caseEventDeclaration(eventDeclaration); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.INPUT_EVENT: | ||
105 | { | ||
106 | InputEvent inputEvent = (InputEvent)theEObject; | ||
107 | T result = caseInputEvent(inputEvent); | ||
108 | if (result == null) result = caseEventDeclaration(inputEvent); | ||
109 | if (result == null) result = defaultCase(theEObject); | ||
110 | return result; | ||
111 | } | ||
112 | case CftLanguagePackage.EVENT_DEFINITION: | ||
113 | { | ||
114 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
115 | T result = caseEventDefinition(eventDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
121 | { | ||
122 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
123 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
124 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftLanguagePackage.GATE_DEFINITION: | ||
130 | { | ||
131 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
132 | T result = caseGateDefinition(gateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftLanguagePackage.AND_GATE: | ||
139 | { | ||
140 | AndGate andGate = (AndGate)theEObject; | ||
141 | T result = caseAndGate(andGate); | ||
142 | if (result == null) result = caseGateDefinition(andGate); | ||
143 | if (result == null) result = caseEventDefinition(andGate); | ||
144 | if (result == null) result = caseEventDeclaration(andGate); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | case CftLanguagePackage.OR_GATE: | ||
149 | { | ||
150 | OrGate orGate = (OrGate)theEObject; | ||
151 | T result = caseOrGate(orGate); | ||
152 | if (result == null) result = caseGateDefinition(orGate); | ||
153 | if (result == null) result = caseEventDefinition(orGate); | ||
154 | if (result == null) result = caseEventDeclaration(orGate); | ||
155 | if (result == null) result = defaultCase(theEObject); | ||
156 | return result; | ||
157 | } | ||
158 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
159 | { | ||
160 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | ||
161 | T result = caseTransformationDefinition(transformationDefinition); | ||
162 | if (result == null) result = defaultCase(theEObject); | ||
163 | return result; | ||
164 | } | ||
165 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
166 | { | ||
167 | MappingDefinition mappingDefinition = (MappingDefinition)theEObject; | ||
168 | T result = caseMappingDefinition(mappingDefinition); | ||
169 | if (result == null) result = defaultCase(theEObject); | ||
170 | return result; | ||
171 | } | ||
172 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
173 | { | ||
174 | MappingParameter mappingParameter = (MappingParameter)theEObject; | ||
175 | T result = caseMappingParameter(mappingParameter); | ||
176 | if (result == null) result = defaultCase(theEObject); | ||
177 | return result; | ||
178 | } | ||
179 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
180 | { | ||
181 | LookupDefinition lookupDefinition = (LookupDefinition)theEObject; | ||
182 | T result = caseLookupDefinition(lookupDefinition); | ||
183 | if (result == null) result = caseVariable(lookupDefinition); | ||
184 | if (result == null) result = defaultCase(theEObject); | ||
185 | return result; | ||
186 | } | ||
187 | case CftLanguagePackage.VARIABLE: | ||
188 | { | ||
189 | Variable variable = (Variable)theEObject; | ||
190 | T result = caseVariable(variable); | ||
191 | if (result == null) result = defaultCase(theEObject); | ||
192 | return result; | ||
193 | } | ||
194 | case CftLanguagePackage.ASSIGNMENT: | ||
195 | { | ||
196 | Assignment assignment = (Assignment)theEObject; | ||
197 | T result = caseAssignment(assignment); | ||
198 | if (result == null) result = defaultCase(theEObject); | ||
199 | return result; | ||
200 | } | ||
201 | case CftLanguagePackage.EVENT_REFERENCE: | ||
202 | { | ||
203 | EventReference eventReference = (EventReference)theEObject; | ||
204 | T result = caseEventReference(eventReference); | ||
205 | if (result == null) result = defaultCase(theEObject); | ||
206 | return result; | ||
207 | } | ||
208 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
209 | { | ||
210 | ComponentInstance componentInstance = (ComponentInstance)theEObject; | ||
211 | T result = caseComponentInstance(componentInstance); | ||
212 | if (result == null) result = caseVariable(componentInstance); | ||
213 | if (result == null) result = defaultCase(theEObject); | ||
214 | return result; | ||
215 | } | ||
216 | default: return defaultCase(theEObject); | ||
217 | } | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Returns the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This implementation returns null; | ||
224 | * returning a non-null result will terminate the switch. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @param object the target of the switch. | ||
227 | * @return the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
228 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
229 | * @generated | ||
230 | */ | ||
231 | public T caseCftModel(CftModel object) | ||
232 | { | ||
233 | return null; | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * Returns the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * This implementation returns null; | ||
240 | * returning a non-null result will terminate the switch. | ||
241 | * <!-- end-user-doc --> | ||
242 | * @param object the target of the switch. | ||
243 | * @return the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
244 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
245 | * @generated | ||
246 | */ | ||
247 | public T caseImportDeclaration(ImportDeclaration object) | ||
248 | { | ||
249 | return null; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
254 | * <!-- begin-user-doc --> | ||
255 | * This implementation returns null; | ||
256 | * returning a non-null result will terminate the switch. | ||
257 | * <!-- end-user-doc --> | ||
258 | * @param object the target of the switch. | ||
259 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
260 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
261 | * @generated | ||
262 | */ | ||
263 | public T caseComponentDefinition(ComponentDefinition object) | ||
264 | { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * This implementation returns null; | ||
272 | * returning a non-null result will terminate the switch. | ||
273 | * <!-- end-user-doc --> | ||
274 | * @param object the target of the switch. | ||
275 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseEventDeclaration(EventDeclaration object) | ||
280 | { | ||
281 | return null; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * Returns the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
286 | * <!-- begin-user-doc --> | ||
287 | * This implementation returns null; | ||
288 | * returning a non-null result will terminate the switch. | ||
289 | * <!-- end-user-doc --> | ||
290 | * @param object the target of the switch. | ||
291 | * @return the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
292 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
293 | * @generated | ||
294 | */ | ||
295 | public T caseInputEvent(InputEvent object) | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseEventDefinition(EventDefinition object) | ||
312 | { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This implementation returns null; | ||
320 | * returning a non-null result will terminate the switch. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @param object the target of the switch. | ||
323 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
324 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
325 | * @generated | ||
326 | */ | ||
327 | public T caseBasicEventDefinition(BasicEventDefinition object) | ||
328 | { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This implementation returns null; | ||
336 | * returning a non-null result will terminate the switch. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @param object the target of the switch. | ||
339 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
340 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
341 | * @generated | ||
342 | */ | ||
343 | public T caseGateDefinition(GateDefinition object) | ||
344 | { | ||
345 | return null; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * Returns the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
350 | * <!-- begin-user-doc --> | ||
351 | * This implementation returns null; | ||
352 | * returning a non-null result will terminate the switch. | ||
353 | * <!-- end-user-doc --> | ||
354 | * @param object the target of the switch. | ||
355 | * @return the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
356 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
357 | * @generated | ||
358 | */ | ||
359 | public T caseAndGate(AndGate object) | ||
360 | { | ||
361 | return null; | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * Returns the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
366 | * <!-- begin-user-doc --> | ||
367 | * This implementation returns null; | ||
368 | * returning a non-null result will terminate the switch. | ||
369 | * <!-- end-user-doc --> | ||
370 | * @param object the target of the switch. | ||
371 | * @return the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
372 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
373 | * @generated | ||
374 | */ | ||
375 | public T caseOrGate(OrGate object) | ||
376 | { | ||
377 | return null; | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
382 | * <!-- begin-user-doc --> | ||
383 | * This implementation returns null; | ||
384 | * returning a non-null result will terminate the switch. | ||
385 | * <!-- end-user-doc --> | ||
386 | * @param object the target of the switch. | ||
387 | * @return the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
388 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
389 | * @generated | ||
390 | */ | ||
391 | public T caseTransformationDefinition(TransformationDefinition object) | ||
392 | { | ||
393 | return null; | ||
394 | } | ||
395 | |||
396 | /** | ||
397 | * Returns the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
398 | * <!-- begin-user-doc --> | ||
399 | * This implementation returns null; | ||
400 | * returning a non-null result will terminate the switch. | ||
401 | * <!-- end-user-doc --> | ||
402 | * @param object the target of the switch. | ||
403 | * @return the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
404 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
405 | * @generated | ||
406 | */ | ||
407 | public T caseMappingDefinition(MappingDefinition object) | ||
408 | { | ||
409 | return null; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * Returns the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * This implementation returns null; | ||
416 | * returning a non-null result will terminate the switch. | ||
417 | * <!-- end-user-doc --> | ||
418 | * @param object the target of the switch. | ||
419 | * @return the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
421 | * @generated | ||
422 | */ | ||
423 | public T caseMappingParameter(MappingParameter object) | ||
424 | { | ||
425 | return null; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Returns the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * This implementation returns null; | ||
432 | * returning a non-null result will terminate the switch. | ||
433 | * <!-- end-user-doc --> | ||
434 | * @param object the target of the switch. | ||
435 | * @return the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
436 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
437 | * @generated | ||
438 | */ | ||
439 | public T caseLookupDefinition(LookupDefinition object) | ||
440 | { | ||
441 | return null; | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
446 | * <!-- begin-user-doc --> | ||
447 | * This implementation returns null; | ||
448 | * returning a non-null result will terminate the switch. | ||
449 | * <!-- end-user-doc --> | ||
450 | * @param object the target of the switch. | ||
451 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
452 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
453 | * @generated | ||
454 | */ | ||
455 | public T caseVariable(Variable object) | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Returns the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This implementation returns null; | ||
464 | * returning a non-null result will terminate the switch. | ||
465 | * <!-- end-user-doc --> | ||
466 | * @param object the target of the switch. | ||
467 | * @return the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
468 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
469 | * @generated | ||
470 | */ | ||
471 | public T caseAssignment(Assignment object) | ||
472 | { | ||
473 | return null; | ||
474 | } | ||
475 | |||
476 | /** | ||
477 | * Returns the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * This implementation returns null; | ||
480 | * returning a non-null result will terminate the switch. | ||
481 | * <!-- end-user-doc --> | ||
482 | * @param object the target of the switch. | ||
483 | * @return the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
484 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
485 | * @generated | ||
486 | */ | ||
487 | public T caseEventReference(EventReference object) | ||
488 | { | ||
489 | return null; | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * Returns the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
494 | * <!-- begin-user-doc --> | ||
495 | * This implementation returns null; | ||
496 | * returning a non-null result will terminate the switch. | ||
497 | * <!-- end-user-doc --> | ||
498 | * @param object the target of the switch. | ||
499 | * @return the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
500 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
501 | * @generated | ||
502 | */ | ||
503 | public T caseComponentInstance(ComponentInstance object) | ||
504 | { | ||
505 | return null; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
510 | * <!-- begin-user-doc --> | ||
511 | * This implementation returns null; | ||
512 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
513 | * <!-- end-user-doc --> | ||
514 | * @param object the target of the switch. | ||
515 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
516 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
517 | * @generated | ||
518 | */ | ||
519 | @Override | ||
520 | public T defaultCase(EObject object) | ||
521 | { | ||
522 | return null; | ||
523 | } | ||
524 | |||
525 | } //CftLanguageSwitch | ||