diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-06-27 14:22:40 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-06-27 14:22:40 +0200 |
commit | 07719e927f9d398765e661c84fd8778cefb39083 (patch) | |
tree | 9652080f7e580f09a0763a3e258348dea6e02684 /language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util | |
parent | Add enum support (diff) | |
download | refinery-07719e927f9d398765e661c84fd8778cefb39083.tar.gz refinery-07719e927f9d398765e661c84fd8778cefb39083.tar.zst refinery-07719e927f9d398765e661c84fd8778cefb39083.zip |
Simplify project layout
Diffstat (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util')
2 files changed, 1322 insertions, 0 deletions
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java new file mode 100644 index 00000000..3fc3ca75 --- /dev/null +++ b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java | |||
@@ -0,0 +1,594 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.util; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Adapter; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * The <b>Adapter Factory</b> for the model. | ||
17 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ProblemAdapterFactory extends AdapterFactoryImpl { | ||
23 | /** | ||
24 | * The cached model package. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | protected static ProblemPackage modelPackage; | ||
30 | |||
31 | /** | ||
32 | * Creates an instance of the adapter factory. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | public ProblemAdapterFactory() { | ||
38 | if (modelPackage == null) { | ||
39 | modelPackage = ProblemPackage.eINSTANCE; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Returns whether this factory is applicable for the type of the object. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return whether this factory is applicable for the type of the object. | ||
49 | * @generated | ||
50 | */ | ||
51 | @Override | ||
52 | public boolean isFactoryForType(Object object) { | ||
53 | if (object == modelPackage) { | ||
54 | return true; | ||
55 | } | ||
56 | if (object instanceof EObject) { | ||
57 | return ((EObject) object).eClass().getEPackage() == modelPackage; | ||
58 | } | ||
59 | return false; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * The switch that delegates to the <code>createXXX</code> methods. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected ProblemSwitch<Adapter> modelSwitch = new ProblemSwitch<Adapter>() { | ||
69 | @Override | ||
70 | public Adapter caseProblem(Problem object) { | ||
71 | return createProblemAdapter(); | ||
72 | } | ||
73 | |||
74 | @Override | ||
75 | public Adapter caseRelation(Relation object) { | ||
76 | return createRelationAdapter(); | ||
77 | } | ||
78 | |||
79 | @Override | ||
80 | public Adapter caseClassDeclaration(ClassDeclaration object) { | ||
81 | return createClassDeclarationAdapter(); | ||
82 | } | ||
83 | |||
84 | @Override | ||
85 | public Adapter caseReferenceDeclaration(ReferenceDeclaration object) { | ||
86 | return createReferenceDeclarationAdapter(); | ||
87 | } | ||
88 | |||
89 | @Override | ||
90 | public Adapter caseNamedElement(NamedElement object) { | ||
91 | return createNamedElementAdapter(); | ||
92 | } | ||
93 | |||
94 | @Override | ||
95 | public Adapter casePredicateDefinition(PredicateDefinition object) { | ||
96 | return createPredicateDefinitionAdapter(); | ||
97 | } | ||
98 | |||
99 | @Override | ||
100 | public Adapter caseParameter(Parameter object) { | ||
101 | return createParameterAdapter(); | ||
102 | } | ||
103 | |||
104 | @Override | ||
105 | public Adapter caseVariable(Variable object) { | ||
106 | return createVariableAdapter(); | ||
107 | } | ||
108 | |||
109 | @Override | ||
110 | public Adapter caseConjunction(Conjunction object) { | ||
111 | return createConjunctionAdapter(); | ||
112 | } | ||
113 | |||
114 | @Override | ||
115 | public Adapter caseLiteral(Literal object) { | ||
116 | return createLiteralAdapter(); | ||
117 | } | ||
118 | |||
119 | @Override | ||
120 | public Adapter caseAtom(Atom object) { | ||
121 | return createAtomAdapter(); | ||
122 | } | ||
123 | |||
124 | @Override | ||
125 | public Adapter caseImplicitVariable(ImplicitVariable object) { | ||
126 | return createImplicitVariableAdapter(); | ||
127 | } | ||
128 | |||
129 | @Override | ||
130 | public Adapter caseNegativeLiteral(NegativeLiteral object) { | ||
131 | return createNegativeLiteralAdapter(); | ||
132 | } | ||
133 | |||
134 | @Override | ||
135 | public Adapter caseExistentialQuantifier(ExistentialQuantifier object) { | ||
136 | return createExistentialQuantifierAdapter(); | ||
137 | } | ||
138 | |||
139 | @Override | ||
140 | public Adapter caseAssertion(Assertion object) { | ||
141 | return createAssertionAdapter(); | ||
142 | } | ||
143 | |||
144 | @Override | ||
145 | public Adapter caseNode(Node object) { | ||
146 | return createNodeAdapter(); | ||
147 | } | ||
148 | |||
149 | @Override | ||
150 | public Adapter caseScopeDeclaration(ScopeDeclaration object) { | ||
151 | return createScopeDeclarationAdapter(); | ||
152 | } | ||
153 | |||
154 | @Override | ||
155 | public Adapter caseStatement(Statement object) { | ||
156 | return createStatementAdapter(); | ||
157 | } | ||
158 | |||
159 | @Override | ||
160 | public Adapter caseTypeScope(TypeScope object) { | ||
161 | return createTypeScopeAdapter(); | ||
162 | } | ||
163 | |||
164 | @Override | ||
165 | public Adapter caseMultiplicity(Multiplicity object) { | ||
166 | return createMultiplicityAdapter(); | ||
167 | } | ||
168 | |||
169 | @Override | ||
170 | public Adapter caseRangeMultiplicity(RangeMultiplicity object) { | ||
171 | return createRangeMultiplicityAdapter(); | ||
172 | } | ||
173 | |||
174 | @Override | ||
175 | public Adapter caseExactMultiplicity(ExactMultiplicity object) { | ||
176 | return createExactMultiplicityAdapter(); | ||
177 | } | ||
178 | |||
179 | @Override | ||
180 | public Adapter caseUnboundedMultiplicity(UnboundedMultiplicity object) { | ||
181 | return createUnboundedMultiplicityAdapter(); | ||
182 | } | ||
183 | |||
184 | @Override | ||
185 | public Adapter caseArgument(Argument object) { | ||
186 | return createArgumentAdapter(); | ||
187 | } | ||
188 | |||
189 | @Override | ||
190 | public Adapter caseEnumDeclaration(EnumDeclaration object) { | ||
191 | return createEnumDeclarationAdapter(); | ||
192 | } | ||
193 | |||
194 | @Override | ||
195 | public Adapter caseVariableOrNode(VariableOrNode object) { | ||
196 | return createVariableOrNodeAdapter(); | ||
197 | } | ||
198 | |||
199 | @Override | ||
200 | public Adapter defaultCase(EObject object) { | ||
201 | return createEObjectAdapter(); | ||
202 | } | ||
203 | }; | ||
204 | |||
205 | /** | ||
206 | * Creates an adapter for the <code>target</code>. | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @param target the object to adapt. | ||
210 | * @return the adapter for the <code>target</code>. | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public Adapter createAdapter(Notifier target) { | ||
215 | return modelSwitch.doSwitch((EObject) target); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Problem <em>Problem</em>}'. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * This default implementation returns null so that we can easily ignore cases; | ||
222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
223 | * <!-- end-user-doc --> | ||
224 | * @return the new adapter. | ||
225 | * @see org.eclipse.viatra.solver.language.model.problem.Problem | ||
226 | * @generated | ||
227 | */ | ||
228 | public Adapter createProblemAdapter() { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Relation <em>Relation</em>}'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This default implementation returns null so that we can easily ignore cases; | ||
236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @return the new adapter. | ||
239 | * @see org.eclipse.viatra.solver.language.model.problem.Relation | ||
240 | * @generated | ||
241 | */ | ||
242 | public Adapter createRelationAdapter() { | ||
243 | return null; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration <em>Class Declaration</em>}'. | ||
248 | * <!-- begin-user-doc --> | ||
249 | * This default implementation returns null so that we can easily ignore cases; | ||
250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
251 | * <!-- end-user-doc --> | ||
252 | * @return the new adapter. | ||
253 | * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration | ||
254 | * @generated | ||
255 | */ | ||
256 | public Adapter createClassDeclarationAdapter() { | ||
257 | return null; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration <em>Reference Declaration</em>}'. | ||
262 | * <!-- begin-user-doc --> | ||
263 | * This default implementation returns null so that we can easily ignore cases; | ||
264 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
265 | * <!-- end-user-doc --> | ||
266 | * @return the new adapter. | ||
267 | * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration | ||
268 | * @generated | ||
269 | */ | ||
270 | public Adapter createReferenceDeclarationAdapter() { | ||
271 | return null; | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement <em>Named Element</em>}'. | ||
276 | * <!-- begin-user-doc --> | ||
277 | * This default implementation returns null so that we can easily ignore cases; | ||
278 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
279 | * <!-- end-user-doc --> | ||
280 | * @return the new adapter. | ||
281 | * @see org.eclipse.viatra.solver.language.model.problem.NamedElement | ||
282 | * @generated | ||
283 | */ | ||
284 | public Adapter createNamedElementAdapter() { | ||
285 | return null; | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition <em>Predicate Definition</em>}'. | ||
290 | * <!-- begin-user-doc --> | ||
291 | * This default implementation returns null so that we can easily ignore cases; | ||
292 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
293 | * <!-- end-user-doc --> | ||
294 | * @return the new adapter. | ||
295 | * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition | ||
296 | * @generated | ||
297 | */ | ||
298 | public Adapter createPredicateDefinitionAdapter() { | ||
299 | return null; | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Parameter <em>Parameter</em>}'. | ||
304 | * <!-- begin-user-doc --> | ||
305 | * This default implementation returns null so that we can easily ignore cases; | ||
306 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
307 | * <!-- end-user-doc --> | ||
308 | * @return the new adapter. | ||
309 | * @see org.eclipse.viatra.solver.language.model.problem.Parameter | ||
310 | * @generated | ||
311 | */ | ||
312 | public Adapter createParameterAdapter() { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Variable <em>Variable</em>}'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This default implementation returns null so that we can easily ignore cases; | ||
320 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @return the new adapter. | ||
323 | * @see org.eclipse.viatra.solver.language.model.problem.Variable | ||
324 | * @generated | ||
325 | */ | ||
326 | public Adapter createVariableAdapter() { | ||
327 | return null; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Conjunction <em>Conjunction</em>}'. | ||
332 | * <!-- begin-user-doc --> | ||
333 | * This default implementation returns null so that we can easily ignore cases; | ||
334 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
335 | * <!-- end-user-doc --> | ||
336 | * @return the new adapter. | ||
337 | * @see org.eclipse.viatra.solver.language.model.problem.Conjunction | ||
338 | * @generated | ||
339 | */ | ||
340 | public Adapter createConjunctionAdapter() { | ||
341 | return null; | ||
342 | } | ||
343 | |||
344 | /** | ||
345 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Literal <em>Literal</em>}'. | ||
346 | * <!-- begin-user-doc --> | ||
347 | * This default implementation returns null so that we can easily ignore cases; | ||
348 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
349 | * <!-- end-user-doc --> | ||
350 | * @return the new adapter. | ||
351 | * @see org.eclipse.viatra.solver.language.model.problem.Literal | ||
352 | * @generated | ||
353 | */ | ||
354 | public Adapter createLiteralAdapter() { | ||
355 | return null; | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Atom <em>Atom</em>}'. | ||
360 | * <!-- begin-user-doc --> | ||
361 | * This default implementation returns null so that we can easily ignore cases; | ||
362 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
363 | * <!-- end-user-doc --> | ||
364 | * @return the new adapter. | ||
365 | * @see org.eclipse.viatra.solver.language.model.problem.Atom | ||
366 | * @generated | ||
367 | */ | ||
368 | public Adapter createAtomAdapter() { | ||
369 | return null; | ||
370 | } | ||
371 | |||
372 | /** | ||
373 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ImplicitVariable <em>Implicit Variable</em>}'. | ||
374 | * <!-- begin-user-doc --> | ||
375 | * This default implementation returns null so that we can easily ignore cases; | ||
376 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
377 | * <!-- end-user-doc --> | ||
378 | * @return the new adapter. | ||
379 | * @see org.eclipse.viatra.solver.language.model.problem.ImplicitVariable | ||
380 | * @generated | ||
381 | */ | ||
382 | public Adapter createImplicitVariableAdapter() { | ||
383 | return null; | ||
384 | } | ||
385 | |||
386 | /** | ||
387 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral <em>Negative Literal</em>}'. | ||
388 | * <!-- begin-user-doc --> | ||
389 | * This default implementation returns null so that we can easily ignore cases; | ||
390 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
391 | * <!-- end-user-doc --> | ||
392 | * @return the new adapter. | ||
393 | * @see org.eclipse.viatra.solver.language.model.problem.NegativeLiteral | ||
394 | * @generated | ||
395 | */ | ||
396 | public Adapter createNegativeLiteralAdapter() { | ||
397 | return null; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</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 org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier | ||
408 | * @generated | ||
409 | */ | ||
410 | public Adapter createExistentialQuantifierAdapter() { | ||
411 | return null; | ||
412 | } | ||
413 | |||
414 | /** | ||
415 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Assertion <em>Assertion</em>}'. | ||
416 | * <!-- begin-user-doc --> | ||
417 | * This default implementation returns null so that we can easily ignore cases; | ||
418 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
419 | * <!-- end-user-doc --> | ||
420 | * @return the new adapter. | ||
421 | * @see org.eclipse.viatra.solver.language.model.problem.Assertion | ||
422 | * @generated | ||
423 | */ | ||
424 | public Adapter createAssertionAdapter() { | ||
425 | return null; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Node <em>Node</em>}'. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * This default implementation returns null so that we can easily ignore cases; | ||
432 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
433 | * <!-- end-user-doc --> | ||
434 | * @return the new adapter. | ||
435 | * @see org.eclipse.viatra.solver.language.model.problem.Node | ||
436 | * @generated | ||
437 | */ | ||
438 | public Adapter createNodeAdapter() { | ||
439 | return null; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration <em>Scope Declaration</em>}'. | ||
444 | * <!-- begin-user-doc --> | ||
445 | * This default implementation returns null so that we can easily ignore cases; | ||
446 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
447 | * <!-- end-user-doc --> | ||
448 | * @return the new adapter. | ||
449 | * @see org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration | ||
450 | * @generated | ||
451 | */ | ||
452 | public Adapter createScopeDeclarationAdapter() { | ||
453 | return null; | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}'. | ||
458 | * <!-- begin-user-doc --> | ||
459 | * This default implementation returns null so that we can easily ignore cases; | ||
460 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
461 | * <!-- end-user-doc --> | ||
462 | * @return the new adapter. | ||
463 | * @see org.eclipse.viatra.solver.language.model.problem.Statement | ||
464 | * @generated | ||
465 | */ | ||
466 | public Adapter createStatementAdapter() { | ||
467 | return null; | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope <em>Type Scope</em>}'. | ||
472 | * <!-- begin-user-doc --> | ||
473 | * This default implementation returns null so that we can easily ignore cases; | ||
474 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
475 | * <!-- end-user-doc --> | ||
476 | * @return the new adapter. | ||
477 | * @see org.eclipse.viatra.solver.language.model.problem.TypeScope | ||
478 | * @generated | ||
479 | */ | ||
480 | public Adapter createTypeScopeAdapter() { | ||
481 | return null; | ||
482 | } | ||
483 | |||
484 | /** | ||
485 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Multiplicity <em>Multiplicity</em>}'. | ||
486 | * <!-- begin-user-doc --> | ||
487 | * This default implementation returns null so that we can easily ignore cases; | ||
488 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
489 | * <!-- end-user-doc --> | ||
490 | * @return the new adapter. | ||
491 | * @see org.eclipse.viatra.solver.language.model.problem.Multiplicity | ||
492 | * @generated | ||
493 | */ | ||
494 | public Adapter createMultiplicityAdapter() { | ||
495 | return null; | ||
496 | } | ||
497 | |||
498 | /** | ||
499 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity <em>Range Multiplicity</em>}'. | ||
500 | * <!-- begin-user-doc --> | ||
501 | * This default implementation returns null so that we can easily ignore cases; | ||
502 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
503 | * <!-- end-user-doc --> | ||
504 | * @return the new adapter. | ||
505 | * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity | ||
506 | * @generated | ||
507 | */ | ||
508 | public Adapter createRangeMultiplicityAdapter() { | ||
509 | return null; | ||
510 | } | ||
511 | |||
512 | /** | ||
513 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity <em>Exact Multiplicity</em>}'. | ||
514 | * <!-- begin-user-doc --> | ||
515 | * This default implementation returns null so that we can easily ignore cases; | ||
516 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
517 | * <!-- end-user-doc --> | ||
518 | * @return the new adapter. | ||
519 | * @see org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity | ||
520 | * @generated | ||
521 | */ | ||
522 | public Adapter createExactMultiplicityAdapter() { | ||
523 | return null; | ||
524 | } | ||
525 | |||
526 | /** | ||
527 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity <em>Unbounded Multiplicity</em>}'. | ||
528 | * <!-- begin-user-doc --> | ||
529 | * This default implementation returns null so that we can easily ignore cases; | ||
530 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
531 | * <!-- end-user-doc --> | ||
532 | * @return the new adapter. | ||
533 | * @see org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity | ||
534 | * @generated | ||
535 | */ | ||
536 | public Adapter createUnboundedMultiplicityAdapter() { | ||
537 | return null; | ||
538 | } | ||
539 | |||
540 | /** | ||
541 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Argument <em>Argument</em>}'. | ||
542 | * <!-- begin-user-doc --> | ||
543 | * This default implementation returns null so that we can easily ignore cases; | ||
544 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
545 | * <!-- end-user-doc --> | ||
546 | * @return the new adapter. | ||
547 | * @see org.eclipse.viatra.solver.language.model.problem.Argument | ||
548 | * @generated | ||
549 | */ | ||
550 | public Adapter createArgumentAdapter() { | ||
551 | return null; | ||
552 | } | ||
553 | |||
554 | /** | ||
555 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration <em>Enum Declaration</em>}'. | ||
556 | * <!-- begin-user-doc --> | ||
557 | * This default implementation returns null so that we can easily ignore cases; | ||
558 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
559 | * <!-- end-user-doc --> | ||
560 | * @return the new adapter. | ||
561 | * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration | ||
562 | * @generated | ||
563 | */ | ||
564 | public Adapter createEnumDeclarationAdapter() { | ||
565 | return null; | ||
566 | } | ||
567 | |||
568 | /** | ||
569 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.VariableOrNode <em>Variable Or Node</em>}'. | ||
570 | * <!-- begin-user-doc --> | ||
571 | * This default implementation returns null so that we can easily ignore cases; | ||
572 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
573 | * <!-- end-user-doc --> | ||
574 | * @return the new adapter. | ||
575 | * @see org.eclipse.viatra.solver.language.model.problem.VariableOrNode | ||
576 | * @generated | ||
577 | */ | ||
578 | public Adapter createVariableOrNodeAdapter() { | ||
579 | return null; | ||
580 | } | ||
581 | |||
582 | /** | ||
583 | * Creates a new adapter for the default case. | ||
584 | * <!-- begin-user-doc --> | ||
585 | * This default implementation returns null. | ||
586 | * <!-- end-user-doc --> | ||
587 | * @return the new adapter. | ||
588 | * @generated | ||
589 | */ | ||
590 | public Adapter createEObjectAdapter() { | ||
591 | return null; | ||
592 | } | ||
593 | |||
594 | } //ProblemAdapterFactory | ||
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java new file mode 100644 index 00000000..b74718b5 --- /dev/null +++ b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemSwitch.java | |||
@@ -0,0 +1,728 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.util; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.util.Switch; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class ProblemSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static ProblemPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public ProblemSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = ProblemPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case ProblemPackage.PROBLEM: { | ||
70 | Problem problem = (Problem) theEObject; | ||
71 | T result = caseProblem(problem); | ||
72 | if (result == null) | ||
73 | result = caseNamedElement(problem); | ||
74 | if (result == null) | ||
75 | result = defaultCase(theEObject); | ||
76 | return result; | ||
77 | } | ||
78 | case ProblemPackage.RELATION: { | ||
79 | Relation relation = (Relation) theEObject; | ||
80 | T result = caseRelation(relation); | ||
81 | if (result == null) | ||
82 | result = caseNamedElement(relation); | ||
83 | if (result == null) | ||
84 | result = defaultCase(theEObject); | ||
85 | return result; | ||
86 | } | ||
87 | case ProblemPackage.CLASS_DECLARATION: { | ||
88 | ClassDeclaration classDeclaration = (ClassDeclaration) theEObject; | ||
89 | T result = caseClassDeclaration(classDeclaration); | ||
90 | if (result == null) | ||
91 | result = caseRelation(classDeclaration); | ||
92 | if (result == null) | ||
93 | result = caseStatement(classDeclaration); | ||
94 | if (result == null) | ||
95 | result = caseNamedElement(classDeclaration); | ||
96 | if (result == null) | ||
97 | result = defaultCase(theEObject); | ||
98 | return result; | ||
99 | } | ||
100 | case ProblemPackage.REFERENCE_DECLARATION: { | ||
101 | ReferenceDeclaration referenceDeclaration = (ReferenceDeclaration) theEObject; | ||
102 | T result = caseReferenceDeclaration(referenceDeclaration); | ||
103 | if (result == null) | ||
104 | result = caseRelation(referenceDeclaration); | ||
105 | if (result == null) | ||
106 | result = caseNamedElement(referenceDeclaration); | ||
107 | if (result == null) | ||
108 | result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case ProblemPackage.NAMED_ELEMENT: { | ||
112 | NamedElement namedElement = (NamedElement) theEObject; | ||
113 | T result = caseNamedElement(namedElement); | ||
114 | if (result == null) | ||
115 | result = defaultCase(theEObject); | ||
116 | return result; | ||
117 | } | ||
118 | case ProblemPackage.PREDICATE_DEFINITION: { | ||
119 | PredicateDefinition predicateDefinition = (PredicateDefinition) theEObject; | ||
120 | T result = casePredicateDefinition(predicateDefinition); | ||
121 | if (result == null) | ||
122 | result = caseRelation(predicateDefinition); | ||
123 | if (result == null) | ||
124 | result = caseStatement(predicateDefinition); | ||
125 | if (result == null) | ||
126 | result = caseNamedElement(predicateDefinition); | ||
127 | if (result == null) | ||
128 | result = defaultCase(theEObject); | ||
129 | return result; | ||
130 | } | ||
131 | case ProblemPackage.PARAMETER: { | ||
132 | Parameter parameter = (Parameter) theEObject; | ||
133 | T result = caseParameter(parameter); | ||
134 | if (result == null) | ||
135 | result = caseVariable(parameter); | ||
136 | if (result == null) | ||
137 | result = caseVariableOrNode(parameter); | ||
138 | if (result == null) | ||
139 | result = caseNamedElement(parameter); | ||
140 | if (result == null) | ||
141 | result = defaultCase(theEObject); | ||
142 | return result; | ||
143 | } | ||
144 | case ProblemPackage.VARIABLE: { | ||
145 | Variable variable = (Variable) theEObject; | ||
146 | T result = caseVariable(variable); | ||
147 | if (result == null) | ||
148 | result = caseVariableOrNode(variable); | ||
149 | if (result == null) | ||
150 | result = caseNamedElement(variable); | ||
151 | if (result == null) | ||
152 | result = defaultCase(theEObject); | ||
153 | return result; | ||
154 | } | ||
155 | case ProblemPackage.CONJUNCTION: { | ||
156 | Conjunction conjunction = (Conjunction) theEObject; | ||
157 | T result = caseConjunction(conjunction); | ||
158 | if (result == null) | ||
159 | result = caseExistentialQuantifier(conjunction); | ||
160 | if (result == null) | ||
161 | result = defaultCase(theEObject); | ||
162 | return result; | ||
163 | } | ||
164 | case ProblemPackage.LITERAL: { | ||
165 | Literal literal = (Literal) theEObject; | ||
166 | T result = caseLiteral(literal); | ||
167 | if (result == null) | ||
168 | result = defaultCase(theEObject); | ||
169 | return result; | ||
170 | } | ||
171 | case ProblemPackage.ATOM: { | ||
172 | Atom atom = (Atom) theEObject; | ||
173 | T result = caseAtom(atom); | ||
174 | if (result == null) | ||
175 | result = caseLiteral(atom); | ||
176 | if (result == null) | ||
177 | result = defaultCase(theEObject); | ||
178 | return result; | ||
179 | } | ||
180 | case ProblemPackage.IMPLICIT_VARIABLE: { | ||
181 | ImplicitVariable implicitVariable = (ImplicitVariable) theEObject; | ||
182 | T result = caseImplicitVariable(implicitVariable); | ||
183 | if (result == null) | ||
184 | result = caseVariable(implicitVariable); | ||
185 | if (result == null) | ||
186 | result = caseVariableOrNode(implicitVariable); | ||
187 | if (result == null) | ||
188 | result = caseNamedElement(implicitVariable); | ||
189 | if (result == null) | ||
190 | result = defaultCase(theEObject); | ||
191 | return result; | ||
192 | } | ||
193 | case ProblemPackage.NEGATIVE_LITERAL: { | ||
194 | NegativeLiteral negativeLiteral = (NegativeLiteral) theEObject; | ||
195 | T result = caseNegativeLiteral(negativeLiteral); | ||
196 | if (result == null) | ||
197 | result = caseExistentialQuantifier(negativeLiteral); | ||
198 | if (result == null) | ||
199 | result = caseLiteral(negativeLiteral); | ||
200 | if (result == null) | ||
201 | result = defaultCase(theEObject); | ||
202 | return result; | ||
203 | } | ||
204 | case ProblemPackage.EXISTENTIAL_QUANTIFIER: { | ||
205 | ExistentialQuantifier existentialQuantifier = (ExistentialQuantifier) theEObject; | ||
206 | T result = caseExistentialQuantifier(existentialQuantifier); | ||
207 | if (result == null) | ||
208 | result = defaultCase(theEObject); | ||
209 | return result; | ||
210 | } | ||
211 | case ProblemPackage.ASSERTION: { | ||
212 | Assertion assertion = (Assertion) theEObject; | ||
213 | T result = caseAssertion(assertion); | ||
214 | if (result == null) | ||
215 | result = caseStatement(assertion); | ||
216 | if (result == null) | ||
217 | result = defaultCase(theEObject); | ||
218 | return result; | ||
219 | } | ||
220 | case ProblemPackage.NODE: { | ||
221 | Node node = (Node) theEObject; | ||
222 | T result = caseNode(node); | ||
223 | if (result == null) | ||
224 | result = caseVariableOrNode(node); | ||
225 | if (result == null) | ||
226 | result = caseNamedElement(node); | ||
227 | if (result == null) | ||
228 | result = defaultCase(theEObject); | ||
229 | return result; | ||
230 | } | ||
231 | case ProblemPackage.SCOPE_DECLARATION: { | ||
232 | ScopeDeclaration scopeDeclaration = (ScopeDeclaration) theEObject; | ||
233 | T result = caseScopeDeclaration(scopeDeclaration); | ||
234 | if (result == null) | ||
235 | result = caseStatement(scopeDeclaration); | ||
236 | if (result == null) | ||
237 | result = defaultCase(theEObject); | ||
238 | return result; | ||
239 | } | ||
240 | case ProblemPackage.STATEMENT: { | ||
241 | Statement statement = (Statement) theEObject; | ||
242 | T result = caseStatement(statement); | ||
243 | if (result == null) | ||
244 | result = defaultCase(theEObject); | ||
245 | return result; | ||
246 | } | ||
247 | case ProblemPackage.TYPE_SCOPE: { | ||
248 | TypeScope typeScope = (TypeScope) theEObject; | ||
249 | T result = caseTypeScope(typeScope); | ||
250 | if (result == null) | ||
251 | result = defaultCase(theEObject); | ||
252 | return result; | ||
253 | } | ||
254 | case ProblemPackage.MULTIPLICITY: { | ||
255 | Multiplicity multiplicity = (Multiplicity) theEObject; | ||
256 | T result = caseMultiplicity(multiplicity); | ||
257 | if (result == null) | ||
258 | result = defaultCase(theEObject); | ||
259 | return result; | ||
260 | } | ||
261 | case ProblemPackage.RANGE_MULTIPLICITY: { | ||
262 | RangeMultiplicity rangeMultiplicity = (RangeMultiplicity) theEObject; | ||
263 | T result = caseRangeMultiplicity(rangeMultiplicity); | ||
264 | if (result == null) | ||
265 | result = caseMultiplicity(rangeMultiplicity); | ||
266 | if (result == null) | ||
267 | result = defaultCase(theEObject); | ||
268 | return result; | ||
269 | } | ||
270 | case ProblemPackage.EXACT_MULTIPLICITY: { | ||
271 | ExactMultiplicity exactMultiplicity = (ExactMultiplicity) theEObject; | ||
272 | T result = caseExactMultiplicity(exactMultiplicity); | ||
273 | if (result == null) | ||
274 | result = caseMultiplicity(exactMultiplicity); | ||
275 | if (result == null) | ||
276 | result = defaultCase(theEObject); | ||
277 | return result; | ||
278 | } | ||
279 | case ProblemPackage.UNBOUNDED_MULTIPLICITY: { | ||
280 | UnboundedMultiplicity unboundedMultiplicity = (UnboundedMultiplicity) theEObject; | ||
281 | T result = caseUnboundedMultiplicity(unboundedMultiplicity); | ||
282 | if (result == null) | ||
283 | result = caseMultiplicity(unboundedMultiplicity); | ||
284 | if (result == null) | ||
285 | result = defaultCase(theEObject); | ||
286 | return result; | ||
287 | } | ||
288 | case ProblemPackage.ARGUMENT: { | ||
289 | Argument argument = (Argument) theEObject; | ||
290 | T result = caseArgument(argument); | ||
291 | if (result == null) | ||
292 | result = defaultCase(theEObject); | ||
293 | return result; | ||
294 | } | ||
295 | case ProblemPackage.ENUM_DECLARATION: { | ||
296 | EnumDeclaration enumDeclaration = (EnumDeclaration) theEObject; | ||
297 | T result = caseEnumDeclaration(enumDeclaration); | ||
298 | if (result == null) | ||
299 | result = caseRelation(enumDeclaration); | ||
300 | if (result == null) | ||
301 | result = caseStatement(enumDeclaration); | ||
302 | if (result == null) | ||
303 | result = caseNamedElement(enumDeclaration); | ||
304 | if (result == null) | ||
305 | result = defaultCase(theEObject); | ||
306 | return result; | ||
307 | } | ||
308 | case ProblemPackage.VARIABLE_OR_NODE: { | ||
309 | VariableOrNode variableOrNode = (VariableOrNode) theEObject; | ||
310 | T result = caseVariableOrNode(variableOrNode); | ||
311 | if (result == null) | ||
312 | result = caseNamedElement(variableOrNode); | ||
313 | if (result == null) | ||
314 | result = defaultCase(theEObject); | ||
315 | return result; | ||
316 | } | ||
317 | default: | ||
318 | return defaultCase(theEObject); | ||
319 | } | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * Returns the result of interpreting the object as an instance of '<em>Problem</em>'. | ||
324 | * <!-- begin-user-doc --> | ||
325 | * This implementation returns null; | ||
326 | * returning a non-null result will terminate the switch. | ||
327 | * <!-- end-user-doc --> | ||
328 | * @param object the target of the switch. | ||
329 | * @return the result of interpreting the object as an instance of '<em>Problem</em>'. | ||
330 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
331 | * @generated | ||
332 | */ | ||
333 | public T caseProblem(Problem object) { | ||
334 | return null; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * This implementation returns null; | ||
341 | * returning a non-null result will terminate the switch. | ||
342 | * <!-- end-user-doc --> | ||
343 | * @param object the target of the switch. | ||
344 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. | ||
345 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
346 | * @generated | ||
347 | */ | ||
348 | public T caseRelation(Relation object) { | ||
349 | return null; | ||
350 | } | ||
351 | |||
352 | /** | ||
353 | * Returns the result of interpreting the object as an instance of '<em>Class Declaration</em>'. | ||
354 | * <!-- begin-user-doc --> | ||
355 | * This implementation returns null; | ||
356 | * returning a non-null result will terminate the switch. | ||
357 | * <!-- end-user-doc --> | ||
358 | * @param object the target of the switch. | ||
359 | * @return the result of interpreting the object as an instance of '<em>Class Declaration</em>'. | ||
360 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
361 | * @generated | ||
362 | */ | ||
363 | public T caseClassDeclaration(ClassDeclaration object) { | ||
364 | return null; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * Returns the result of interpreting the object as an instance of '<em>Reference Declaration</em>'. | ||
369 | * <!-- begin-user-doc --> | ||
370 | * This implementation returns null; | ||
371 | * returning a non-null result will terminate the switch. | ||
372 | * <!-- end-user-doc --> | ||
373 | * @param object the target of the switch. | ||
374 | * @return the result of interpreting the object as an instance of '<em>Reference Declaration</em>'. | ||
375 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
376 | * @generated | ||
377 | */ | ||
378 | public T caseReferenceDeclaration(ReferenceDeclaration object) { | ||
379 | return null; | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. | ||
384 | * <!-- begin-user-doc --> | ||
385 | * This implementation returns null; | ||
386 | * returning a non-null result will terminate the switch. | ||
387 | * <!-- end-user-doc --> | ||
388 | * @param object the target of the switch. | ||
389 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. | ||
390 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
391 | * @generated | ||
392 | */ | ||
393 | public T caseNamedElement(NamedElement object) { | ||
394 | return null; | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * Returns the result of interpreting the object as an instance of '<em>Predicate Definition</em>'. | ||
399 | * <!-- begin-user-doc --> | ||
400 | * This implementation returns null; | ||
401 | * returning a non-null result will terminate the switch. | ||
402 | * <!-- end-user-doc --> | ||
403 | * @param object the target of the switch. | ||
404 | * @return the result of interpreting the object as an instance of '<em>Predicate Definition</em>'. | ||
405 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
406 | * @generated | ||
407 | */ | ||
408 | public T casePredicateDefinition(PredicateDefinition object) { | ||
409 | return null; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * Returns the result of interpreting the object as an instance of '<em>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>Parameter</em>'. | ||
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
421 | * @generated | ||
422 | */ | ||
423 | public T caseParameter(Parameter object) { | ||
424 | return null; | ||
425 | } | ||
426 | |||
427 | /** | ||
428 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
429 | * <!-- begin-user-doc --> | ||
430 | * This implementation returns null; | ||
431 | * returning a non-null result will terminate the switch. | ||
432 | * <!-- end-user-doc --> | ||
433 | * @param object the target of the switch. | ||
434 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
435 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
436 | * @generated | ||
437 | */ | ||
438 | public T caseVariable(Variable object) { | ||
439 | return null; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * Returns the result of interpreting the object as an instance of '<em>Conjunction</em>'. | ||
444 | * <!-- begin-user-doc --> | ||
445 | * This implementation returns null; | ||
446 | * returning a non-null result will terminate the switch. | ||
447 | * <!-- end-user-doc --> | ||
448 | * @param object the target of the switch. | ||
449 | * @return the result of interpreting the object as an instance of '<em>Conjunction</em>'. | ||
450 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
451 | * @generated | ||
452 | */ | ||
453 | public T caseConjunction(Conjunction object) { | ||
454 | return null; | ||
455 | } | ||
456 | |||
457 | /** | ||
458 | * Returns the result of interpreting the object as an instance of '<em>Literal</em>'. | ||
459 | * <!-- begin-user-doc --> | ||
460 | * This implementation returns null; | ||
461 | * returning a non-null result will terminate the switch. | ||
462 | * <!-- end-user-doc --> | ||
463 | * @param object the target of the switch. | ||
464 | * @return the result of interpreting the object as an instance of '<em>Literal</em>'. | ||
465 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
466 | * @generated | ||
467 | */ | ||
468 | public T caseLiteral(Literal object) { | ||
469 | return null; | ||
470 | } | ||
471 | |||
472 | /** | ||
473 | * Returns the result of interpreting the object as an instance of '<em>Atom</em>'. | ||
474 | * <!-- begin-user-doc --> | ||
475 | * This implementation returns null; | ||
476 | * returning a non-null result will terminate the switch. | ||
477 | * <!-- end-user-doc --> | ||
478 | * @param object the target of the switch. | ||
479 | * @return the result of interpreting the object as an instance of '<em>Atom</em>'. | ||
480 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
481 | * @generated | ||
482 | */ | ||
483 | public T caseAtom(Atom object) { | ||
484 | return null; | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * Returns the result of interpreting the object as an instance of '<em>Implicit Variable</em>'. | ||
489 | * <!-- begin-user-doc --> | ||
490 | * This implementation returns null; | ||
491 | * returning a non-null result will terminate the switch. | ||
492 | * <!-- end-user-doc --> | ||
493 | * @param object the target of the switch. | ||
494 | * @return the result of interpreting the object as an instance of '<em>Implicit Variable</em>'. | ||
495 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
496 | * @generated | ||
497 | */ | ||
498 | public T caseImplicitVariable(ImplicitVariable object) { | ||
499 | return null; | ||
500 | } | ||
501 | |||
502 | /** | ||
503 | * Returns the result of interpreting the object as an instance of '<em>Negative Literal</em>'. | ||
504 | * <!-- begin-user-doc --> | ||
505 | * This implementation returns null; | ||
506 | * returning a non-null result will terminate the switch. | ||
507 | * <!-- end-user-doc --> | ||
508 | * @param object the target of the switch. | ||
509 | * @return the result of interpreting the object as an instance of '<em>Negative Literal</em>'. | ||
510 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
511 | * @generated | ||
512 | */ | ||
513 | public T caseNegativeLiteral(NegativeLiteral object) { | ||
514 | return null; | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * Returns the result of interpreting the object as an instance of '<em>Existential Quantifier</em>'. | ||
519 | * <!-- begin-user-doc --> | ||
520 | * This implementation returns null; | ||
521 | * returning a non-null result will terminate the switch. | ||
522 | * <!-- end-user-doc --> | ||
523 | * @param object the target of the switch. | ||
524 | * @return the result of interpreting the object as an instance of '<em>Existential Quantifier</em>'. | ||
525 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
526 | * @generated | ||
527 | */ | ||
528 | public T caseExistentialQuantifier(ExistentialQuantifier object) { | ||
529 | return null; | ||
530 | } | ||
531 | |||
532 | /** | ||
533 | * Returns the result of interpreting the object as an instance of '<em>Assertion</em>'. | ||
534 | * <!-- begin-user-doc --> | ||
535 | * This implementation returns null; | ||
536 | * returning a non-null result will terminate the switch. | ||
537 | * <!-- end-user-doc --> | ||
538 | * @param object the target of the switch. | ||
539 | * @return the result of interpreting the object as an instance of '<em>Assertion</em>'. | ||
540 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
541 | * @generated | ||
542 | */ | ||
543 | public T caseAssertion(Assertion object) { | ||
544 | return null; | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * Returns the result of interpreting the object as an instance of '<em>Node</em>'. | ||
549 | * <!-- begin-user-doc --> | ||
550 | * This implementation returns null; | ||
551 | * returning a non-null result will terminate the switch. | ||
552 | * <!-- end-user-doc --> | ||
553 | * @param object the target of the switch. | ||
554 | * @return the result of interpreting the object as an instance of '<em>Node</em>'. | ||
555 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
556 | * @generated | ||
557 | */ | ||
558 | public T caseNode(Node object) { | ||
559 | return null; | ||
560 | } | ||
561 | |||
562 | /** | ||
563 | * Returns the result of interpreting the object as an instance of '<em>Scope Declaration</em>'. | ||
564 | * <!-- begin-user-doc --> | ||
565 | * This implementation returns null; | ||
566 | * returning a non-null result will terminate the switch. | ||
567 | * <!-- end-user-doc --> | ||
568 | * @param object the target of the switch. | ||
569 | * @return the result of interpreting the object as an instance of '<em>Scope Declaration</em>'. | ||
570 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
571 | * @generated | ||
572 | */ | ||
573 | public T caseScopeDeclaration(ScopeDeclaration object) { | ||
574 | return null; | ||
575 | } | ||
576 | |||
577 | /** | ||
578 | * Returns the result of interpreting the object as an instance of '<em>Statement</em>'. | ||
579 | * <!-- begin-user-doc --> | ||
580 | * This implementation returns null; | ||
581 | * returning a non-null result will terminate the switch. | ||
582 | * <!-- end-user-doc --> | ||
583 | * @param object the target of the switch. | ||
584 | * @return the result of interpreting the object as an instance of '<em>Statement</em>'. | ||
585 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
586 | * @generated | ||
587 | */ | ||
588 | public T caseStatement(Statement object) { | ||
589 | return null; | ||
590 | } | ||
591 | |||
592 | /** | ||
593 | * Returns the result of interpreting the object as an instance of '<em>Type Scope</em>'. | ||
594 | * <!-- begin-user-doc --> | ||
595 | * This implementation returns null; | ||
596 | * returning a non-null result will terminate the switch. | ||
597 | * <!-- end-user-doc --> | ||
598 | * @param object the target of the switch. | ||
599 | * @return the result of interpreting the object as an instance of '<em>Type Scope</em>'. | ||
600 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
601 | * @generated | ||
602 | */ | ||
603 | public T caseTypeScope(TypeScope object) { | ||
604 | return null; | ||
605 | } | ||
606 | |||
607 | /** | ||
608 | * Returns the result of interpreting the object as an instance of '<em>Multiplicity</em>'. | ||
609 | * <!-- begin-user-doc --> | ||
610 | * This implementation returns null; | ||
611 | * returning a non-null result will terminate the switch. | ||
612 | * <!-- end-user-doc --> | ||
613 | * @param object the target of the switch. | ||
614 | * @return the result of interpreting the object as an instance of '<em>Multiplicity</em>'. | ||
615 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
616 | * @generated | ||
617 | */ | ||
618 | public T caseMultiplicity(Multiplicity object) { | ||
619 | return null; | ||
620 | } | ||
621 | |||
622 | /** | ||
623 | * Returns the result of interpreting the object as an instance of '<em>Range Multiplicity</em>'. | ||
624 | * <!-- begin-user-doc --> | ||
625 | * This implementation returns null; | ||
626 | * returning a non-null result will terminate the switch. | ||
627 | * <!-- end-user-doc --> | ||
628 | * @param object the target of the switch. | ||
629 | * @return the result of interpreting the object as an instance of '<em>Range Multiplicity</em>'. | ||
630 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
631 | * @generated | ||
632 | */ | ||
633 | public T caseRangeMultiplicity(RangeMultiplicity object) { | ||
634 | return null; | ||
635 | } | ||
636 | |||
637 | /** | ||
638 | * Returns the result of interpreting the object as an instance of '<em>Exact Multiplicity</em>'. | ||
639 | * <!-- begin-user-doc --> | ||
640 | * This implementation returns null; | ||
641 | * returning a non-null result will terminate the switch. | ||
642 | * <!-- end-user-doc --> | ||
643 | * @param object the target of the switch. | ||
644 | * @return the result of interpreting the object as an instance of '<em>Exact Multiplicity</em>'. | ||
645 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
646 | * @generated | ||
647 | */ | ||
648 | public T caseExactMultiplicity(ExactMultiplicity object) { | ||
649 | return null; | ||
650 | } | ||
651 | |||
652 | /** | ||
653 | * Returns the result of interpreting the object as an instance of '<em>Unbounded Multiplicity</em>'. | ||
654 | * <!-- begin-user-doc --> | ||
655 | * This implementation returns null; | ||
656 | * returning a non-null result will terminate the switch. | ||
657 | * <!-- end-user-doc --> | ||
658 | * @param object the target of the switch. | ||
659 | * @return the result of interpreting the object as an instance of '<em>Unbounded Multiplicity</em>'. | ||
660 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
661 | * @generated | ||
662 | */ | ||
663 | public T caseUnboundedMultiplicity(UnboundedMultiplicity object) { | ||
664 | return null; | ||
665 | } | ||
666 | |||
667 | /** | ||
668 | * Returns the result of interpreting the object as an instance of '<em>Argument</em>'. | ||
669 | * <!-- begin-user-doc --> | ||
670 | * This implementation returns null; | ||
671 | * returning a non-null result will terminate the switch. | ||
672 | * <!-- end-user-doc --> | ||
673 | * @param object the target of the switch. | ||
674 | * @return the result of interpreting the object as an instance of '<em>Argument</em>'. | ||
675 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
676 | * @generated | ||
677 | */ | ||
678 | public T caseArgument(Argument object) { | ||
679 | return null; | ||
680 | } | ||
681 | |||
682 | /** | ||
683 | * Returns the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
684 | * <!-- begin-user-doc --> | ||
685 | * This implementation returns null; | ||
686 | * returning a non-null result will terminate the switch. | ||
687 | * <!-- end-user-doc --> | ||
688 | * @param object the target of the switch. | ||
689 | * @return the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
690 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
691 | * @generated | ||
692 | */ | ||
693 | public T caseEnumDeclaration(EnumDeclaration object) { | ||
694 | return null; | ||
695 | } | ||
696 | |||
697 | /** | ||
698 | * Returns the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
699 | * <!-- begin-user-doc --> | ||
700 | * This implementation returns null; | ||
701 | * returning a non-null result will terminate the switch. | ||
702 | * <!-- end-user-doc --> | ||
703 | * @param object the target of the switch. | ||
704 | * @return the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
705 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
706 | * @generated | ||
707 | */ | ||
708 | public T caseVariableOrNode(VariableOrNode object) { | ||
709 | return null; | ||
710 | } | ||
711 | |||
712 | /** | ||
713 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
714 | * <!-- begin-user-doc --> | ||
715 | * This implementation returns null; | ||
716 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
717 | * <!-- end-user-doc --> | ||
718 | * @param object the target of the switch. | ||
719 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
720 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
721 | * @generated | ||
722 | */ | ||
723 | @Override | ||
724 | public T defaultCase(EObject object) { | ||
725 | return null; | ||
726 | } | ||
727 | |||
728 | } //ProblemSwitch | ||