1 | /** |
---|
2 | */ |
---|
3 | package de.ugoe.cs.swe.bnftools.ebnf.util; |
---|
4 | |
---|
5 | import de.ugoe.cs.swe.bnftools.ebnf.*; |
---|
6 | |
---|
7 | import org.eclipse.emf.ecore.EObject; |
---|
8 | import org.eclipse.emf.ecore.EPackage; |
---|
9 | |
---|
10 | import org.eclipse.emf.ecore.util.Switch; |
---|
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 de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage |
---|
23 | * @generated |
---|
24 | */ |
---|
25 | public class EbnfSwitch<T> extends Switch<T> |
---|
26 | { |
---|
27 | /** |
---|
28 | * The cached model package |
---|
29 | * <!-- begin-user-doc --> |
---|
30 | * <!-- end-user-doc --> |
---|
31 | * @generated |
---|
32 | */ |
---|
33 | protected static EbnfPackage modelPackage; |
---|
34 | |
---|
35 | /** |
---|
36 | * Creates an instance of the switch. |
---|
37 | * <!-- begin-user-doc --> |
---|
38 | * <!-- end-user-doc --> |
---|
39 | * @generated |
---|
40 | */ |
---|
41 | public EbnfSwitch() |
---|
42 | { |
---|
43 | if (modelPackage == null) |
---|
44 | { |
---|
45 | modelPackage = EbnfPackage.eINSTANCE; |
---|
46 | } |
---|
47 | } |
---|
48 | |
---|
49 | /** |
---|
50 | * Checks whether this is a switch for the given package. |
---|
51 | * <!-- begin-user-doc --> |
---|
52 | * <!-- end-user-doc --> |
---|
53 | * @parameter ePackage the package in question. |
---|
54 | * @return whether this is a switch for the given package. |
---|
55 | * @generated |
---|
56 | */ |
---|
57 | @Override |
---|
58 | protected boolean isSwitchFor(EPackage ePackage) |
---|
59 | { |
---|
60 | return ePackage == modelPackage; |
---|
61 | } |
---|
62 | |
---|
63 | /** |
---|
64 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
---|
65 | * <!-- begin-user-doc --> |
---|
66 | * <!-- end-user-doc --> |
---|
67 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
---|
68 | * @generated |
---|
69 | */ |
---|
70 | @Override |
---|
71 | protected T doSwitch(int classifierID, EObject theEObject) |
---|
72 | { |
---|
73 | switch (classifierID) |
---|
74 | { |
---|
75 | case EbnfPackage.ETSI_BNF: |
---|
76 | { |
---|
77 | EtsiBnf etsiBnf = (EtsiBnf)theEObject; |
---|
78 | T result = caseEtsiBnf(etsiBnf); |
---|
79 | if (result == null) result = defaultCase(theEObject); |
---|
80 | return result; |
---|
81 | } |
---|
82 | case EbnfPackage.IMPORT_SECTION: |
---|
83 | { |
---|
84 | ImportSection importSection = (ImportSection)theEObject; |
---|
85 | T result = caseImportSection(importSection); |
---|
86 | if (result == null) result = defaultCase(theEObject); |
---|
87 | return result; |
---|
88 | } |
---|
89 | case EbnfPackage.BNF_ENTRY: |
---|
90 | { |
---|
91 | BnfEntry bnfEntry = (BnfEntry)theEObject; |
---|
92 | T result = caseBnfEntry(bnfEntry); |
---|
93 | if (result == null) result = defaultCase(theEObject); |
---|
94 | return result; |
---|
95 | } |
---|
96 | case EbnfPackage.DELTA_ENTRY: |
---|
97 | { |
---|
98 | DeltaEntry deltaEntry = (DeltaEntry)theEObject; |
---|
99 | T result = caseDeltaEntry(deltaEntry); |
---|
100 | if (result == null) result = defaultCase(theEObject); |
---|
101 | return result; |
---|
102 | } |
---|
103 | case EbnfPackage.MERGE_ENTRY: |
---|
104 | { |
---|
105 | MergeEntry mergeEntry = (MergeEntry)theEObject; |
---|
106 | T result = caseMergeEntry(mergeEntry); |
---|
107 | if (result == null) result = defaultCase(theEObject); |
---|
108 | return result; |
---|
109 | } |
---|
110 | case EbnfPackage.SECTION_HEADING: |
---|
111 | { |
---|
112 | SectionHeading sectionHeading = (SectionHeading)theEObject; |
---|
113 | T result = caseSectionHeading(sectionHeading); |
---|
114 | if (result == null) result = defaultCase(theEObject); |
---|
115 | return result; |
---|
116 | } |
---|
117 | case EbnfPackage.IMPORT: |
---|
118 | { |
---|
119 | Import import_ = (Import)theEObject; |
---|
120 | T result = caseImport(import_); |
---|
121 | if (result == null) result = defaultCase(theEObject); |
---|
122 | return result; |
---|
123 | } |
---|
124 | case EbnfPackage.RULE: |
---|
125 | { |
---|
126 | Rule rule = (Rule)theEObject; |
---|
127 | T result = caseRule(rule); |
---|
128 | if (result == null) result = defaultCase(theEObject); |
---|
129 | return result; |
---|
130 | } |
---|
131 | case EbnfPackage.EXT_RULE: |
---|
132 | { |
---|
133 | ExtRule extRule = (ExtRule)theEObject; |
---|
134 | T result = caseExtRule(extRule); |
---|
135 | if (result == null) result = defaultCase(theEObject); |
---|
136 | return result; |
---|
137 | } |
---|
138 | case EbnfPackage.MERGE_RULE: |
---|
139 | { |
---|
140 | MergeRule mergeRule = (MergeRule)theEObject; |
---|
141 | T result = caseMergeRule(mergeRule); |
---|
142 | if (result == null) result = defaultCase(theEObject); |
---|
143 | return result; |
---|
144 | } |
---|
145 | case EbnfPackage.GLOBAL_COMBINATOR: |
---|
146 | { |
---|
147 | GlobalCombinator globalCombinator = (GlobalCombinator)theEObject; |
---|
148 | T result = caseGlobalCombinator(globalCombinator); |
---|
149 | if (result == null) result = caseMergeRule(globalCombinator); |
---|
150 | if (result == null) result = defaultCase(theEObject); |
---|
151 | return result; |
---|
152 | } |
---|
153 | case EbnfPackage.RULE_COMBINATOR: |
---|
154 | { |
---|
155 | RuleCombinator ruleCombinator = (RuleCombinator)theEObject; |
---|
156 | T result = caseRuleCombinator(ruleCombinator); |
---|
157 | if (result == null) result = caseMergeRule(ruleCombinator); |
---|
158 | if (result == null) result = defaultCase(theEObject); |
---|
159 | return result; |
---|
160 | } |
---|
161 | case EbnfPackage.HOOK_COMBINATOR: |
---|
162 | { |
---|
163 | HookCombinator hookCombinator = (HookCombinator)theEObject; |
---|
164 | T result = caseHookCombinator(hookCombinator); |
---|
165 | if (result == null) result = caseMergeRule(hookCombinator); |
---|
166 | if (result == null) result = defaultCase(theEObject); |
---|
167 | return result; |
---|
168 | } |
---|
169 | case EbnfPackage.DEFINITION_LIST: |
---|
170 | { |
---|
171 | DefinitionList definitionList = (DefinitionList)theEObject; |
---|
172 | T result = caseDefinitionList(definitionList); |
---|
173 | if (result == null) result = defaultCase(theEObject); |
---|
174 | return result; |
---|
175 | } |
---|
176 | case EbnfPackage.SINGLE_DEFINITION: |
---|
177 | { |
---|
178 | SingleDefinition singleDefinition = (SingleDefinition)theEObject; |
---|
179 | T result = caseSingleDefinition(singleDefinition); |
---|
180 | if (result == null) result = defaultCase(theEObject); |
---|
181 | return result; |
---|
182 | } |
---|
183 | case EbnfPackage.TERM: |
---|
184 | { |
---|
185 | Term term = (Term)theEObject; |
---|
186 | T result = caseTerm(term); |
---|
187 | if (result == null) result = defaultCase(theEObject); |
---|
188 | return result; |
---|
189 | } |
---|
190 | case EbnfPackage.ATOM: |
---|
191 | { |
---|
192 | Atom atom = (Atom)theEObject; |
---|
193 | T result = caseAtom(atom); |
---|
194 | if (result == null) result = defaultCase(theEObject); |
---|
195 | return result; |
---|
196 | } |
---|
197 | case EbnfPackage.RULE_REFERENCE: |
---|
198 | { |
---|
199 | RuleReference ruleReference = (RuleReference)theEObject; |
---|
200 | T result = caseRuleReference(ruleReference); |
---|
201 | if (result == null) result = defaultCase(theEObject); |
---|
202 | return result; |
---|
203 | } |
---|
204 | case EbnfPackage.STRING_RULE: |
---|
205 | { |
---|
206 | StringRule stringRule = (StringRule)theEObject; |
---|
207 | T result = caseStringRule(stringRule); |
---|
208 | if (result == null) result = defaultCase(theEObject); |
---|
209 | return result; |
---|
210 | } |
---|
211 | case EbnfPackage.GROUPED_SEQUENCE: |
---|
212 | { |
---|
213 | GroupedSequence groupedSequence = (GroupedSequence)theEObject; |
---|
214 | T result = caseGroupedSequence(groupedSequence); |
---|
215 | if (result == null) result = defaultCase(theEObject); |
---|
216 | return result; |
---|
217 | } |
---|
218 | case EbnfPackage.OPTIONAL_SEQUENCE: |
---|
219 | { |
---|
220 | OptionalSequence optionalSequence = (OptionalSequence)theEObject; |
---|
221 | T result = caseOptionalSequence(optionalSequence); |
---|
222 | if (result == null) result = defaultCase(theEObject); |
---|
223 | return result; |
---|
224 | } |
---|
225 | case EbnfPackage.REPEATED_SEQUENCE: |
---|
226 | { |
---|
227 | RepeatedSequence repeatedSequence = (RepeatedSequence)theEObject; |
---|
228 | T result = caseRepeatedSequence(repeatedSequence); |
---|
229 | if (result == null) result = defaultCase(theEObject); |
---|
230 | return result; |
---|
231 | } |
---|
232 | case EbnfPackage.REPEAT_RANGE: |
---|
233 | { |
---|
234 | RepeatRange repeatRange = (RepeatRange)theEObject; |
---|
235 | T result = caseRepeatRange(repeatRange); |
---|
236 | if (result == null) result = defaultCase(theEObject); |
---|
237 | return result; |
---|
238 | } |
---|
239 | default: return defaultCase(theEObject); |
---|
240 | } |
---|
241 | } |
---|
242 | |
---|
243 | /** |
---|
244 | * Returns the result of interpreting the object as an instance of '<em>Etsi Bnf</em>'. |
---|
245 | * <!-- begin-user-doc --> |
---|
246 | * This implementation returns null; |
---|
247 | * returning a non-null result will terminate the switch. |
---|
248 | * <!-- end-user-doc --> |
---|
249 | * @param object the target of the switch. |
---|
250 | * @return the result of interpreting the object as an instance of '<em>Etsi Bnf</em>'. |
---|
251 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
252 | * @generated |
---|
253 | */ |
---|
254 | public T caseEtsiBnf(EtsiBnf object) |
---|
255 | { |
---|
256 | return null; |
---|
257 | } |
---|
258 | |
---|
259 | /** |
---|
260 | * Returns the result of interpreting the object as an instance of '<em>Import Section</em>'. |
---|
261 | * <!-- begin-user-doc --> |
---|
262 | * This implementation returns null; |
---|
263 | * returning a non-null result will terminate the switch. |
---|
264 | * <!-- end-user-doc --> |
---|
265 | * @param object the target of the switch. |
---|
266 | * @return the result of interpreting the object as an instance of '<em>Import Section</em>'. |
---|
267 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
268 | * @generated |
---|
269 | */ |
---|
270 | public T caseImportSection(ImportSection object) |
---|
271 | { |
---|
272 | return null; |
---|
273 | } |
---|
274 | |
---|
275 | /** |
---|
276 | * Returns the result of interpreting the object as an instance of '<em>Bnf Entry</em>'. |
---|
277 | * <!-- begin-user-doc --> |
---|
278 | * This implementation returns null; |
---|
279 | * returning a non-null result will terminate the switch. |
---|
280 | * <!-- end-user-doc --> |
---|
281 | * @param object the target of the switch. |
---|
282 | * @return the result of interpreting the object as an instance of '<em>Bnf Entry</em>'. |
---|
283 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
284 | * @generated |
---|
285 | */ |
---|
286 | public T caseBnfEntry(BnfEntry object) |
---|
287 | { |
---|
288 | return null; |
---|
289 | } |
---|
290 | |
---|
291 | /** |
---|
292 | * Returns the result of interpreting the object as an instance of '<em>Delta Entry</em>'. |
---|
293 | * <!-- begin-user-doc --> |
---|
294 | * This implementation returns null; |
---|
295 | * returning a non-null result will terminate the switch. |
---|
296 | * <!-- end-user-doc --> |
---|
297 | * @param object the target of the switch. |
---|
298 | * @return the result of interpreting the object as an instance of '<em>Delta Entry</em>'. |
---|
299 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
300 | * @generated |
---|
301 | */ |
---|
302 | public T caseDeltaEntry(DeltaEntry object) |
---|
303 | { |
---|
304 | return null; |
---|
305 | } |
---|
306 | |
---|
307 | /** |
---|
308 | * Returns the result of interpreting the object as an instance of '<em>Merge Entry</em>'. |
---|
309 | * <!-- begin-user-doc --> |
---|
310 | * This implementation returns null; |
---|
311 | * returning a non-null result will terminate the switch. |
---|
312 | * <!-- end-user-doc --> |
---|
313 | * @param object the target of the switch. |
---|
314 | * @return the result of interpreting the object as an instance of '<em>Merge Entry</em>'. |
---|
315 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
316 | * @generated |
---|
317 | */ |
---|
318 | public T caseMergeEntry(MergeEntry object) |
---|
319 | { |
---|
320 | return null; |
---|
321 | } |
---|
322 | |
---|
323 | /** |
---|
324 | * Returns the result of interpreting the object as an instance of '<em>Section Heading</em>'. |
---|
325 | * <!-- begin-user-doc --> |
---|
326 | * This implementation returns null; |
---|
327 | * returning a non-null result will terminate the switch. |
---|
328 | * <!-- end-user-doc --> |
---|
329 | * @param object the target of the switch. |
---|
330 | * @return the result of interpreting the object as an instance of '<em>Section Heading</em>'. |
---|
331 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
332 | * @generated |
---|
333 | */ |
---|
334 | public T caseSectionHeading(SectionHeading object) |
---|
335 | { |
---|
336 | return null; |
---|
337 | } |
---|
338 | |
---|
339 | /** |
---|
340 | * Returns the result of interpreting the object as an instance of '<em>Import</em>'. |
---|
341 | * <!-- begin-user-doc --> |
---|
342 | * This implementation returns null; |
---|
343 | * returning a non-null result will terminate the switch. |
---|
344 | * <!-- end-user-doc --> |
---|
345 | * @param object the target of the switch. |
---|
346 | * @return the result of interpreting the object as an instance of '<em>Import</em>'. |
---|
347 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
348 | * @generated |
---|
349 | */ |
---|
350 | public T caseImport(Import object) |
---|
351 | { |
---|
352 | return null; |
---|
353 | } |
---|
354 | |
---|
355 | /** |
---|
356 | * Returns the result of interpreting the object as an instance of '<em>Rule</em>'. |
---|
357 | * <!-- begin-user-doc --> |
---|
358 | * This implementation returns null; |
---|
359 | * returning a non-null result will terminate the switch. |
---|
360 | * <!-- end-user-doc --> |
---|
361 | * @param object the target of the switch. |
---|
362 | * @return the result of interpreting the object as an instance of '<em>Rule</em>'. |
---|
363 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
364 | * @generated |
---|
365 | */ |
---|
366 | public T caseRule(Rule object) |
---|
367 | { |
---|
368 | return null; |
---|
369 | } |
---|
370 | |
---|
371 | /** |
---|
372 | * Returns the result of interpreting the object as an instance of '<em>Ext Rule</em>'. |
---|
373 | * <!-- begin-user-doc --> |
---|
374 | * This implementation returns null; |
---|
375 | * returning a non-null result will terminate the switch. |
---|
376 | * <!-- end-user-doc --> |
---|
377 | * @param object the target of the switch. |
---|
378 | * @return the result of interpreting the object as an instance of '<em>Ext Rule</em>'. |
---|
379 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
380 | * @generated |
---|
381 | */ |
---|
382 | public T caseExtRule(ExtRule object) |
---|
383 | { |
---|
384 | return null; |
---|
385 | } |
---|
386 | |
---|
387 | /** |
---|
388 | * Returns the result of interpreting the object as an instance of '<em>Merge Rule</em>'. |
---|
389 | * <!-- begin-user-doc --> |
---|
390 | * This implementation returns null; |
---|
391 | * returning a non-null result will terminate the switch. |
---|
392 | * <!-- end-user-doc --> |
---|
393 | * @param object the target of the switch. |
---|
394 | * @return the result of interpreting the object as an instance of '<em>Merge Rule</em>'. |
---|
395 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
396 | * @generated |
---|
397 | */ |
---|
398 | public T caseMergeRule(MergeRule object) |
---|
399 | { |
---|
400 | return null; |
---|
401 | } |
---|
402 | |
---|
403 | /** |
---|
404 | * Returns the result of interpreting the object as an instance of '<em>Global Combinator</em>'. |
---|
405 | * <!-- begin-user-doc --> |
---|
406 | * This implementation returns null; |
---|
407 | * returning a non-null result will terminate the switch. |
---|
408 | * <!-- end-user-doc --> |
---|
409 | * @param object the target of the switch. |
---|
410 | * @return the result of interpreting the object as an instance of '<em>Global Combinator</em>'. |
---|
411 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
412 | * @generated |
---|
413 | */ |
---|
414 | public T caseGlobalCombinator(GlobalCombinator object) |
---|
415 | { |
---|
416 | return null; |
---|
417 | } |
---|
418 | |
---|
419 | /** |
---|
420 | * Returns the result of interpreting the object as an instance of '<em>Rule Combinator</em>'. |
---|
421 | * <!-- begin-user-doc --> |
---|
422 | * This implementation returns null; |
---|
423 | * returning a non-null result will terminate the switch. |
---|
424 | * <!-- end-user-doc --> |
---|
425 | * @param object the target of the switch. |
---|
426 | * @return the result of interpreting the object as an instance of '<em>Rule Combinator</em>'. |
---|
427 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
428 | * @generated |
---|
429 | */ |
---|
430 | public T caseRuleCombinator(RuleCombinator object) |
---|
431 | { |
---|
432 | return null; |
---|
433 | } |
---|
434 | |
---|
435 | /** |
---|
436 | * Returns the result of interpreting the object as an instance of '<em>Hook Combinator</em>'. |
---|
437 | * <!-- begin-user-doc --> |
---|
438 | * This implementation returns null; |
---|
439 | * returning a non-null result will terminate the switch. |
---|
440 | * <!-- end-user-doc --> |
---|
441 | * @param object the target of the switch. |
---|
442 | * @return the result of interpreting the object as an instance of '<em>Hook Combinator</em>'. |
---|
443 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
444 | * @generated |
---|
445 | */ |
---|
446 | public T caseHookCombinator(HookCombinator object) |
---|
447 | { |
---|
448 | return null; |
---|
449 | } |
---|
450 | |
---|
451 | /** |
---|
452 | * Returns the result of interpreting the object as an instance of '<em>Definition List</em>'. |
---|
453 | * <!-- begin-user-doc --> |
---|
454 | * This implementation returns null; |
---|
455 | * returning a non-null result will terminate the switch. |
---|
456 | * <!-- end-user-doc --> |
---|
457 | * @param object the target of the switch. |
---|
458 | * @return the result of interpreting the object as an instance of '<em>Definition List</em>'. |
---|
459 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
460 | * @generated |
---|
461 | */ |
---|
462 | public T caseDefinitionList(DefinitionList object) |
---|
463 | { |
---|
464 | return null; |
---|
465 | } |
---|
466 | |
---|
467 | /** |
---|
468 | * Returns the result of interpreting the object as an instance of '<em>Single Definition</em>'. |
---|
469 | * <!-- begin-user-doc --> |
---|
470 | * This implementation returns null; |
---|
471 | * returning a non-null result will terminate the switch. |
---|
472 | * <!-- end-user-doc --> |
---|
473 | * @param object the target of the switch. |
---|
474 | * @return the result of interpreting the object as an instance of '<em>Single Definition</em>'. |
---|
475 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
476 | * @generated |
---|
477 | */ |
---|
478 | public T caseSingleDefinition(SingleDefinition object) |
---|
479 | { |
---|
480 | return null; |
---|
481 | } |
---|
482 | |
---|
483 | /** |
---|
484 | * Returns the result of interpreting the object as an instance of '<em>Term</em>'. |
---|
485 | * <!-- begin-user-doc --> |
---|
486 | * This implementation returns null; |
---|
487 | * returning a non-null result will terminate the switch. |
---|
488 | * <!-- end-user-doc --> |
---|
489 | * @param object the target of the switch. |
---|
490 | * @return the result of interpreting the object as an instance of '<em>Term</em>'. |
---|
491 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
492 | * @generated |
---|
493 | */ |
---|
494 | public T caseTerm(Term object) |
---|
495 | { |
---|
496 | return null; |
---|
497 | } |
---|
498 | |
---|
499 | /** |
---|
500 | * Returns the result of interpreting the object as an instance of '<em>Atom</em>'. |
---|
501 | * <!-- begin-user-doc --> |
---|
502 | * This implementation returns null; |
---|
503 | * returning a non-null result will terminate the switch. |
---|
504 | * <!-- end-user-doc --> |
---|
505 | * @param object the target of the switch. |
---|
506 | * @return the result of interpreting the object as an instance of '<em>Atom</em>'. |
---|
507 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
508 | * @generated |
---|
509 | */ |
---|
510 | public T caseAtom(Atom object) |
---|
511 | { |
---|
512 | return null; |
---|
513 | } |
---|
514 | |
---|
515 | /** |
---|
516 | * Returns the result of interpreting the object as an instance of '<em>Rule Reference</em>'. |
---|
517 | * <!-- begin-user-doc --> |
---|
518 | * This implementation returns null; |
---|
519 | * returning a non-null result will terminate the switch. |
---|
520 | * <!-- end-user-doc --> |
---|
521 | * @param object the target of the switch. |
---|
522 | * @return the result of interpreting the object as an instance of '<em>Rule Reference</em>'. |
---|
523 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
524 | * @generated |
---|
525 | */ |
---|
526 | public T caseRuleReference(RuleReference object) |
---|
527 | { |
---|
528 | return null; |
---|
529 | } |
---|
530 | |
---|
531 | /** |
---|
532 | * Returns the result of interpreting the object as an instance of '<em>String Rule</em>'. |
---|
533 | * <!-- begin-user-doc --> |
---|
534 | * This implementation returns null; |
---|
535 | * returning a non-null result will terminate the switch. |
---|
536 | * <!-- end-user-doc --> |
---|
537 | * @param object the target of the switch. |
---|
538 | * @return the result of interpreting the object as an instance of '<em>String Rule</em>'. |
---|
539 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
540 | * @generated |
---|
541 | */ |
---|
542 | public T caseStringRule(StringRule object) |
---|
543 | { |
---|
544 | return null; |
---|
545 | } |
---|
546 | |
---|
547 | /** |
---|
548 | * Returns the result of interpreting the object as an instance of '<em>Grouped Sequence</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>Grouped Sequence</em>'. |
---|
555 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
556 | * @generated |
---|
557 | */ |
---|
558 | public T caseGroupedSequence(GroupedSequence object) |
---|
559 | { |
---|
560 | return null; |
---|
561 | } |
---|
562 | |
---|
563 | /** |
---|
564 | * Returns the result of interpreting the object as an instance of '<em>Optional Sequence</em>'. |
---|
565 | * <!-- begin-user-doc --> |
---|
566 | * This implementation returns null; |
---|
567 | * returning a non-null result will terminate the switch. |
---|
568 | * <!-- end-user-doc --> |
---|
569 | * @param object the target of the switch. |
---|
570 | * @return the result of interpreting the object as an instance of '<em>Optional Sequence</em>'. |
---|
571 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
572 | * @generated |
---|
573 | */ |
---|
574 | public T caseOptionalSequence(OptionalSequence object) |
---|
575 | { |
---|
576 | return null; |
---|
577 | } |
---|
578 | |
---|
579 | /** |
---|
580 | * Returns the result of interpreting the object as an instance of '<em>Repeated Sequence</em>'. |
---|
581 | * <!-- begin-user-doc --> |
---|
582 | * This implementation returns null; |
---|
583 | * returning a non-null result will terminate the switch. |
---|
584 | * <!-- end-user-doc --> |
---|
585 | * @param object the target of the switch. |
---|
586 | * @return the result of interpreting the object as an instance of '<em>Repeated Sequence</em>'. |
---|
587 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
588 | * @generated |
---|
589 | */ |
---|
590 | public T caseRepeatedSequence(RepeatedSequence object) |
---|
591 | { |
---|
592 | return null; |
---|
593 | } |
---|
594 | |
---|
595 | /** |
---|
596 | * Returns the result of interpreting the object as an instance of '<em>Repeat Range</em>'. |
---|
597 | * <!-- begin-user-doc --> |
---|
598 | * This implementation returns null; |
---|
599 | * returning a non-null result will terminate the switch. |
---|
600 | * <!-- end-user-doc --> |
---|
601 | * @param object the target of the switch. |
---|
602 | * @return the result of interpreting the object as an instance of '<em>Repeat Range</em>'. |
---|
603 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
604 | * @generated |
---|
605 | */ |
---|
606 | public T caseRepeatRange(RepeatRange object) |
---|
607 | { |
---|
608 | return null; |
---|
609 | } |
---|
610 | |
---|
611 | /** |
---|
612 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
---|
613 | * <!-- begin-user-doc --> |
---|
614 | * This implementation returns null; |
---|
615 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
---|
616 | * <!-- end-user-doc --> |
---|
617 | * @param object the target of the switch. |
---|
618 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
---|
619 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
---|
620 | * @generated |
---|
621 | */ |
---|
622 | @Override |
---|
623 | public T defaultCase(EObject object) |
---|
624 | { |
---|
625 | return null; |
---|
626 | } |
---|
627 | |
---|
628 | } //EbnfSwitch |
---|