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.COMMENT: |
---|
118 | { |
---|
119 | Comment comment = (Comment)theEObject; |
---|
120 | T result = caseComment(comment); |
---|
121 | if (result == null) result = defaultCase(theEObject); |
---|
122 | return result; |
---|
123 | } |
---|
124 | case EbnfPackage.IMPORT: |
---|
125 | { |
---|
126 | Import import_ = (Import)theEObject; |
---|
127 | T result = caseImport(import_); |
---|
128 | if (result == null) result = defaultCase(theEObject); |
---|
129 | return result; |
---|
130 | } |
---|
131 | case EbnfPackage.RULE: |
---|
132 | { |
---|
133 | Rule rule = (Rule)theEObject; |
---|
134 | T result = caseRule(rule); |
---|
135 | if (result == null) result = defaultCase(theEObject); |
---|
136 | return result; |
---|
137 | } |
---|
138 | case EbnfPackage.EXT_RULE: |
---|
139 | { |
---|
140 | ExtRule extRule = (ExtRule)theEObject; |
---|
141 | T result = caseExtRule(extRule); |
---|
142 | if (result == null) result = defaultCase(theEObject); |
---|
143 | return result; |
---|
144 | } |
---|
145 | case EbnfPackage.MERGE_RULE: |
---|
146 | { |
---|
147 | MergeRule mergeRule = (MergeRule)theEObject; |
---|
148 | T result = caseMergeRule(mergeRule); |
---|
149 | if (result == null) result = defaultCase(theEObject); |
---|
150 | return result; |
---|
151 | } |
---|
152 | case EbnfPackage.GLOBAL_COMBINATOR: |
---|
153 | { |
---|
154 | GlobalCombinator globalCombinator = (GlobalCombinator)theEObject; |
---|
155 | T result = caseGlobalCombinator(globalCombinator); |
---|
156 | if (result == null) result = caseMergeRule(globalCombinator); |
---|
157 | if (result == null) result = defaultCase(theEObject); |
---|
158 | return result; |
---|
159 | } |
---|
160 | case EbnfPackage.RULE_COMBINATOR: |
---|
161 | { |
---|
162 | RuleCombinator ruleCombinator = (RuleCombinator)theEObject; |
---|
163 | T result = caseRuleCombinator(ruleCombinator); |
---|
164 | if (result == null) result = caseMergeRule(ruleCombinator); |
---|
165 | if (result == null) result = defaultCase(theEObject); |
---|
166 | return result; |
---|
167 | } |
---|
168 | case EbnfPackage.HOOK_COMBINATOR: |
---|
169 | { |
---|
170 | HookCombinator hookCombinator = (HookCombinator)theEObject; |
---|
171 | T result = caseHookCombinator(hookCombinator); |
---|
172 | if (result == null) result = caseMergeRule(hookCombinator); |
---|
173 | if (result == null) result = defaultCase(theEObject); |
---|
174 | return result; |
---|
175 | } |
---|
176 | case EbnfPackage.DEFINITION_LIST: |
---|
177 | { |
---|
178 | DefinitionList definitionList = (DefinitionList)theEObject; |
---|
179 | T result = caseDefinitionList(definitionList); |
---|
180 | if (result == null) result = defaultCase(theEObject); |
---|
181 | return result; |
---|
182 | } |
---|
183 | case EbnfPackage.SINGLE_DEFINITION: |
---|
184 | { |
---|
185 | SingleDefinition singleDefinition = (SingleDefinition)theEObject; |
---|
186 | T result = caseSingleDefinition(singleDefinition); |
---|
187 | if (result == null) result = defaultCase(theEObject); |
---|
188 | return result; |
---|
189 | } |
---|
190 | case EbnfPackage.TERM: |
---|
191 | { |
---|
192 | Term term = (Term)theEObject; |
---|
193 | T result = caseTerm(term); |
---|
194 | if (result == null) result = defaultCase(theEObject); |
---|
195 | return result; |
---|
196 | } |
---|
197 | case EbnfPackage.ATOM: |
---|
198 | { |
---|
199 | Atom atom = (Atom)theEObject; |
---|
200 | T result = caseAtom(atom); |
---|
201 | if (result == null) result = defaultCase(theEObject); |
---|
202 | return result; |
---|
203 | } |
---|
204 | case EbnfPackage.RULE_REFERENCE: |
---|
205 | { |
---|
206 | RuleReference ruleReference = (RuleReference)theEObject; |
---|
207 | T result = caseRuleReference(ruleReference); |
---|
208 | if (result == null) result = defaultCase(theEObject); |
---|
209 | return result; |
---|
210 | } |
---|
211 | case EbnfPackage.STRING_RULE: |
---|
212 | { |
---|
213 | StringRule stringRule = (StringRule)theEObject; |
---|
214 | T result = caseStringRule(stringRule); |
---|
215 | if (result == null) result = defaultCase(theEObject); |
---|
216 | return result; |
---|
217 | } |
---|
218 | case EbnfPackage.GROUPED_SEQUENCE: |
---|
219 | { |
---|
220 | GroupedSequence groupedSequence = (GroupedSequence)theEObject; |
---|
221 | T result = caseGroupedSequence(groupedSequence); |
---|
222 | if (result == null) result = defaultCase(theEObject); |
---|
223 | return result; |
---|
224 | } |
---|
225 | case EbnfPackage.OPTIONAL_SEQUENCE: |
---|
226 | { |
---|
227 | OptionalSequence optionalSequence = (OptionalSequence)theEObject; |
---|
228 | T result = caseOptionalSequence(optionalSequence); |
---|
229 | if (result == null) result = defaultCase(theEObject); |
---|
230 | return result; |
---|
231 | } |
---|
232 | case EbnfPackage.REPEATED_SEQUENCE: |
---|
233 | { |
---|
234 | RepeatedSequence repeatedSequence = (RepeatedSequence)theEObject; |
---|
235 | T result = caseRepeatedSequence(repeatedSequence); |
---|
236 | if (result == null) result = defaultCase(theEObject); |
---|
237 | return result; |
---|
238 | } |
---|
239 | case EbnfPackage.REPEAT_RANGE: |
---|
240 | { |
---|
241 | RepeatRange repeatRange = (RepeatRange)theEObject; |
---|
242 | T result = caseRepeatRange(repeatRange); |
---|
243 | if (result == null) result = defaultCase(theEObject); |
---|
244 | return result; |
---|
245 | } |
---|
246 | default: return defaultCase(theEObject); |
---|
247 | } |
---|
248 | } |
---|
249 | |
---|
250 | /** |
---|
251 | * Returns the result of interpreting the object as an instance of '<em>Etsi Bnf</em>'. |
---|
252 | * <!-- begin-user-doc --> |
---|
253 | * This implementation returns null; |
---|
254 | * returning a non-null result will terminate the switch. |
---|
255 | * <!-- end-user-doc --> |
---|
256 | * @param object the target of the switch. |
---|
257 | * @return the result of interpreting the object as an instance of '<em>Etsi Bnf</em>'. |
---|
258 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
259 | * @generated |
---|
260 | */ |
---|
261 | public T caseEtsiBnf(EtsiBnf object) |
---|
262 | { |
---|
263 | return null; |
---|
264 | } |
---|
265 | |
---|
266 | /** |
---|
267 | * Returns the result of interpreting the object as an instance of '<em>Import Section</em>'. |
---|
268 | * <!-- begin-user-doc --> |
---|
269 | * This implementation returns null; |
---|
270 | * returning a non-null result will terminate the switch. |
---|
271 | * <!-- end-user-doc --> |
---|
272 | * @param object the target of the switch. |
---|
273 | * @return the result of interpreting the object as an instance of '<em>Import Section</em>'. |
---|
274 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
275 | * @generated |
---|
276 | */ |
---|
277 | public T caseImportSection(ImportSection object) |
---|
278 | { |
---|
279 | return null; |
---|
280 | } |
---|
281 | |
---|
282 | /** |
---|
283 | * Returns the result of interpreting the object as an instance of '<em>Bnf Entry</em>'. |
---|
284 | * <!-- begin-user-doc --> |
---|
285 | * This implementation returns null; |
---|
286 | * returning a non-null result will terminate the switch. |
---|
287 | * <!-- end-user-doc --> |
---|
288 | * @param object the target of the switch. |
---|
289 | * @return the result of interpreting the object as an instance of '<em>Bnf Entry</em>'. |
---|
290 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
291 | * @generated |
---|
292 | */ |
---|
293 | public T caseBnfEntry(BnfEntry object) |
---|
294 | { |
---|
295 | return null; |
---|
296 | } |
---|
297 | |
---|
298 | /** |
---|
299 | * Returns the result of interpreting the object as an instance of '<em>Delta Entry</em>'. |
---|
300 | * <!-- begin-user-doc --> |
---|
301 | * This implementation returns null; |
---|
302 | * returning a non-null result will terminate the switch. |
---|
303 | * <!-- end-user-doc --> |
---|
304 | * @param object the target of the switch. |
---|
305 | * @return the result of interpreting the object as an instance of '<em>Delta Entry</em>'. |
---|
306 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
307 | * @generated |
---|
308 | */ |
---|
309 | public T caseDeltaEntry(DeltaEntry object) |
---|
310 | { |
---|
311 | return null; |
---|
312 | } |
---|
313 | |
---|
314 | /** |
---|
315 | * Returns the result of interpreting the object as an instance of '<em>Merge Entry</em>'. |
---|
316 | * <!-- begin-user-doc --> |
---|
317 | * This implementation returns null; |
---|
318 | * returning a non-null result will terminate the switch. |
---|
319 | * <!-- end-user-doc --> |
---|
320 | * @param object the target of the switch. |
---|
321 | * @return the result of interpreting the object as an instance of '<em>Merge Entry</em>'. |
---|
322 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
323 | * @generated |
---|
324 | */ |
---|
325 | public T caseMergeEntry(MergeEntry object) |
---|
326 | { |
---|
327 | return null; |
---|
328 | } |
---|
329 | |
---|
330 | /** |
---|
331 | * Returns the result of interpreting the object as an instance of '<em>Section Heading</em>'. |
---|
332 | * <!-- begin-user-doc --> |
---|
333 | * This implementation returns null; |
---|
334 | * returning a non-null result will terminate the switch. |
---|
335 | * <!-- end-user-doc --> |
---|
336 | * @param object the target of the switch. |
---|
337 | * @return the result of interpreting the object as an instance of '<em>Section Heading</em>'. |
---|
338 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
339 | * @generated |
---|
340 | */ |
---|
341 | public T caseSectionHeading(SectionHeading object) |
---|
342 | { |
---|
343 | return null; |
---|
344 | } |
---|
345 | |
---|
346 | /** |
---|
347 | * Returns the result of interpreting the object as an instance of '<em>Comment</em>'. |
---|
348 | * <!-- begin-user-doc --> |
---|
349 | * This implementation returns null; |
---|
350 | * returning a non-null result will terminate the switch. |
---|
351 | * <!-- end-user-doc --> |
---|
352 | * @param object the target of the switch. |
---|
353 | * @return the result of interpreting the object as an instance of '<em>Comment</em>'. |
---|
354 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
355 | * @generated |
---|
356 | */ |
---|
357 | public T caseComment(Comment object) |
---|
358 | { |
---|
359 | return null; |
---|
360 | } |
---|
361 | |
---|
362 | /** |
---|
363 | * Returns the result of interpreting the object as an instance of '<em>Import</em>'. |
---|
364 | * <!-- begin-user-doc --> |
---|
365 | * This implementation returns null; |
---|
366 | * returning a non-null result will terminate the switch. |
---|
367 | * <!-- end-user-doc --> |
---|
368 | * @param object the target of the switch. |
---|
369 | * @return the result of interpreting the object as an instance of '<em>Import</em>'. |
---|
370 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
371 | * @generated |
---|
372 | */ |
---|
373 | public T caseImport(Import object) |
---|
374 | { |
---|
375 | return null; |
---|
376 | } |
---|
377 | |
---|
378 | /** |
---|
379 | * Returns the result of interpreting the object as an instance of '<em>Rule</em>'. |
---|
380 | * <!-- begin-user-doc --> |
---|
381 | * This implementation returns null; |
---|
382 | * returning a non-null result will terminate the switch. |
---|
383 | * <!-- end-user-doc --> |
---|
384 | * @param object the target of the switch. |
---|
385 | * @return the result of interpreting the object as an instance of '<em>Rule</em>'. |
---|
386 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
387 | * @generated |
---|
388 | */ |
---|
389 | public T caseRule(Rule object) |
---|
390 | { |
---|
391 | return null; |
---|
392 | } |
---|
393 | |
---|
394 | /** |
---|
395 | * Returns the result of interpreting the object as an instance of '<em>Ext Rule</em>'. |
---|
396 | * <!-- begin-user-doc --> |
---|
397 | * This implementation returns null; |
---|
398 | * returning a non-null result will terminate the switch. |
---|
399 | * <!-- end-user-doc --> |
---|
400 | * @param object the target of the switch. |
---|
401 | * @return the result of interpreting the object as an instance of '<em>Ext Rule</em>'. |
---|
402 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
403 | * @generated |
---|
404 | */ |
---|
405 | public T caseExtRule(ExtRule object) |
---|
406 | { |
---|
407 | return null; |
---|
408 | } |
---|
409 | |
---|
410 | /** |
---|
411 | * Returns the result of interpreting the object as an instance of '<em>Merge Rule</em>'. |
---|
412 | * <!-- begin-user-doc --> |
---|
413 | * This implementation returns null; |
---|
414 | * returning a non-null result will terminate the switch. |
---|
415 | * <!-- end-user-doc --> |
---|
416 | * @param object the target of the switch. |
---|
417 | * @return the result of interpreting the object as an instance of '<em>Merge Rule</em>'. |
---|
418 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
419 | * @generated |
---|
420 | */ |
---|
421 | public T caseMergeRule(MergeRule object) |
---|
422 | { |
---|
423 | return null; |
---|
424 | } |
---|
425 | |
---|
426 | /** |
---|
427 | * Returns the result of interpreting the object as an instance of '<em>Global Combinator</em>'. |
---|
428 | * <!-- begin-user-doc --> |
---|
429 | * This implementation returns null; |
---|
430 | * returning a non-null result will terminate the switch. |
---|
431 | * <!-- end-user-doc --> |
---|
432 | * @param object the target of the switch. |
---|
433 | * @return the result of interpreting the object as an instance of '<em>Global Combinator</em>'. |
---|
434 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
435 | * @generated |
---|
436 | */ |
---|
437 | public T caseGlobalCombinator(GlobalCombinator object) |
---|
438 | { |
---|
439 | return null; |
---|
440 | } |
---|
441 | |
---|
442 | /** |
---|
443 | * Returns the result of interpreting the object as an instance of '<em>Rule Combinator</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>Rule Combinator</em>'. |
---|
450 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
451 | * @generated |
---|
452 | */ |
---|
453 | public T caseRuleCombinator(RuleCombinator object) |
---|
454 | { |
---|
455 | return null; |
---|
456 | } |
---|
457 | |
---|
458 | /** |
---|
459 | * Returns the result of interpreting the object as an instance of '<em>Hook Combinator</em>'. |
---|
460 | * <!-- begin-user-doc --> |
---|
461 | * This implementation returns null; |
---|
462 | * returning a non-null result will terminate the switch. |
---|
463 | * <!-- end-user-doc --> |
---|
464 | * @param object the target of the switch. |
---|
465 | * @return the result of interpreting the object as an instance of '<em>Hook Combinator</em>'. |
---|
466 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
467 | * @generated |
---|
468 | */ |
---|
469 | public T caseHookCombinator(HookCombinator object) |
---|
470 | { |
---|
471 | return null; |
---|
472 | } |
---|
473 | |
---|
474 | /** |
---|
475 | * Returns the result of interpreting the object as an instance of '<em>Definition List</em>'. |
---|
476 | * <!-- begin-user-doc --> |
---|
477 | * This implementation returns null; |
---|
478 | * returning a non-null result will terminate the switch. |
---|
479 | * <!-- end-user-doc --> |
---|
480 | * @param object the target of the switch. |
---|
481 | * @return the result of interpreting the object as an instance of '<em>Definition List</em>'. |
---|
482 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
483 | * @generated |
---|
484 | */ |
---|
485 | public T caseDefinitionList(DefinitionList object) |
---|
486 | { |
---|
487 | return null; |
---|
488 | } |
---|
489 | |
---|
490 | /** |
---|
491 | * Returns the result of interpreting the object as an instance of '<em>Single Definition</em>'. |
---|
492 | * <!-- begin-user-doc --> |
---|
493 | * This implementation returns null; |
---|
494 | * returning a non-null result will terminate the switch. |
---|
495 | * <!-- end-user-doc --> |
---|
496 | * @param object the target of the switch. |
---|
497 | * @return the result of interpreting the object as an instance of '<em>Single Definition</em>'. |
---|
498 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
499 | * @generated |
---|
500 | */ |
---|
501 | public T caseSingleDefinition(SingleDefinition object) |
---|
502 | { |
---|
503 | return null; |
---|
504 | } |
---|
505 | |
---|
506 | /** |
---|
507 | * Returns the result of interpreting the object as an instance of '<em>Term</em>'. |
---|
508 | * <!-- begin-user-doc --> |
---|
509 | * This implementation returns null; |
---|
510 | * returning a non-null result will terminate the switch. |
---|
511 | * <!-- end-user-doc --> |
---|
512 | * @param object the target of the switch. |
---|
513 | * @return the result of interpreting the object as an instance of '<em>Term</em>'. |
---|
514 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
515 | * @generated |
---|
516 | */ |
---|
517 | public T caseTerm(Term object) |
---|
518 | { |
---|
519 | return null; |
---|
520 | } |
---|
521 | |
---|
522 | /** |
---|
523 | * Returns the result of interpreting the object as an instance of '<em>Atom</em>'. |
---|
524 | * <!-- begin-user-doc --> |
---|
525 | * This implementation returns null; |
---|
526 | * returning a non-null result will terminate the switch. |
---|
527 | * <!-- end-user-doc --> |
---|
528 | * @param object the target of the switch. |
---|
529 | * @return the result of interpreting the object as an instance of '<em>Atom</em>'. |
---|
530 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
531 | * @generated |
---|
532 | */ |
---|
533 | public T caseAtom(Atom object) |
---|
534 | { |
---|
535 | return null; |
---|
536 | } |
---|
537 | |
---|
538 | /** |
---|
539 | * Returns the result of interpreting the object as an instance of '<em>Rule Reference</em>'. |
---|
540 | * <!-- begin-user-doc --> |
---|
541 | * This implementation returns null; |
---|
542 | * returning a non-null result will terminate the switch. |
---|
543 | * <!-- end-user-doc --> |
---|
544 | * @param object the target of the switch. |
---|
545 | * @return the result of interpreting the object as an instance of '<em>Rule Reference</em>'. |
---|
546 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
547 | * @generated |
---|
548 | */ |
---|
549 | public T caseRuleReference(RuleReference object) |
---|
550 | { |
---|
551 | return null; |
---|
552 | } |
---|
553 | |
---|
554 | /** |
---|
555 | * Returns the result of interpreting the object as an instance of '<em>String Rule</em>'. |
---|
556 | * <!-- begin-user-doc --> |
---|
557 | * This implementation returns null; |
---|
558 | * returning a non-null result will terminate the switch. |
---|
559 | * <!-- end-user-doc --> |
---|
560 | * @param object the target of the switch. |
---|
561 | * @return the result of interpreting the object as an instance of '<em>String Rule</em>'. |
---|
562 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
563 | * @generated |
---|
564 | */ |
---|
565 | public T caseStringRule(StringRule object) |
---|
566 | { |
---|
567 | return null; |
---|
568 | } |
---|
569 | |
---|
570 | /** |
---|
571 | * Returns the result of interpreting the object as an instance of '<em>Grouped Sequence</em>'. |
---|
572 | * <!-- begin-user-doc --> |
---|
573 | * This implementation returns null; |
---|
574 | * returning a non-null result will terminate the switch. |
---|
575 | * <!-- end-user-doc --> |
---|
576 | * @param object the target of the switch. |
---|
577 | * @return the result of interpreting the object as an instance of '<em>Grouped Sequence</em>'. |
---|
578 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
579 | * @generated |
---|
580 | */ |
---|
581 | public T caseGroupedSequence(GroupedSequence object) |
---|
582 | { |
---|
583 | return null; |
---|
584 | } |
---|
585 | |
---|
586 | /** |
---|
587 | * Returns the result of interpreting the object as an instance of '<em>Optional Sequence</em>'. |
---|
588 | * <!-- begin-user-doc --> |
---|
589 | * This implementation returns null; |
---|
590 | * returning a non-null result will terminate the switch. |
---|
591 | * <!-- end-user-doc --> |
---|
592 | * @param object the target of the switch. |
---|
593 | * @return the result of interpreting the object as an instance of '<em>Optional Sequence</em>'. |
---|
594 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
595 | * @generated |
---|
596 | */ |
---|
597 | public T caseOptionalSequence(OptionalSequence object) |
---|
598 | { |
---|
599 | return null; |
---|
600 | } |
---|
601 | |
---|
602 | /** |
---|
603 | * Returns the result of interpreting the object as an instance of '<em>Repeated Sequence</em>'. |
---|
604 | * <!-- begin-user-doc --> |
---|
605 | * This implementation returns null; |
---|
606 | * returning a non-null result will terminate the switch. |
---|
607 | * <!-- end-user-doc --> |
---|
608 | * @param object the target of the switch. |
---|
609 | * @return the result of interpreting the object as an instance of '<em>Repeated Sequence</em>'. |
---|
610 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
611 | * @generated |
---|
612 | */ |
---|
613 | public T caseRepeatedSequence(RepeatedSequence object) |
---|
614 | { |
---|
615 | return null; |
---|
616 | } |
---|
617 | |
---|
618 | /** |
---|
619 | * Returns the result of interpreting the object as an instance of '<em>Repeat Range</em>'. |
---|
620 | * <!-- begin-user-doc --> |
---|
621 | * This implementation returns null; |
---|
622 | * returning a non-null result will terminate the switch. |
---|
623 | * <!-- end-user-doc --> |
---|
624 | * @param object the target of the switch. |
---|
625 | * @return the result of interpreting the object as an instance of '<em>Repeat Range</em>'. |
---|
626 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
---|
627 | * @generated |
---|
628 | */ |
---|
629 | public T caseRepeatRange(RepeatRange object) |
---|
630 | { |
---|
631 | return null; |
---|
632 | } |
---|
633 | |
---|
634 | /** |
---|
635 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
---|
636 | * <!-- begin-user-doc --> |
---|
637 | * This implementation returns null; |
---|
638 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
---|
639 | * <!-- end-user-doc --> |
---|
640 | * @param object the target of the switch. |
---|
641 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
---|
642 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
---|
643 | * @generated |
---|
644 | */ |
---|
645 | @Override |
---|
646 | public T defaultCase(EObject object) |
---|
647 | { |
---|
648 | return null; |
---|
649 | } |
---|
650 | |
---|
651 | } //EbnfSwitch |
---|