aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java
diff options
context:
space:
mode:
authorLibravatar OszkarSemerath <oszka@SEMERATH-LAPTOP>2018-01-13 19:33:26 +0100
committerLibravatar OszkarSemerath <oszka@SEMERATH-LAPTOP>2018-01-13 19:33:26 +0100
commit7e50434905cbb7f5d03636033b698e17a9075e9d (patch)
tree10e0968c20ac55dae4f5dc6077f39cf9947e3cb9 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java
parentTest and measurement runners (diff)
downloadVIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.gz
VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.zst
VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.zip
Initial commit of the configuration language and application
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java405
1 files changed, 405 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java
new file mode 100644
index 00000000..673ffe08
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java
@@ -0,0 +1,405 @@
1/**
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.util;
5
6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*;
7
8import org.eclipse.emf.ecore.EObject;
9import org.eclipse.emf.ecore.EPackage;
10
11import org.eclipse.emf.ecore.util.Switch;
12
13/**
14 * <!-- begin-user-doc -->
15 * The <b>Switch</b> for the model's inheritance hierarchy.
16 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
17 * to invoke the <code>caseXXX</code> method for each class of the model,
18 * starting with the actual class of the object
19 * and proceeding up the inheritance hierarchy
20 * until a non-null result is returned,
21 * which is the result of the switch.
22 * <!-- end-user-doc -->
23 * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage
24 * @generated
25 */
26public class ApplicationConfigurationSwitch<T> extends Switch<T>
27{
28 /**
29 * The cached model package
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 protected static ApplicationConfigurationPackage modelPackage;
35
36 /**
37 * Creates an instance of the switch.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @generated
41 */
42 public ApplicationConfigurationSwitch()
43 {
44 if (modelPackage == null)
45 {
46 modelPackage = ApplicationConfigurationPackage.eINSTANCE;
47 }
48 }
49
50 /**
51 * Checks whether this is a switch for the given package.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @param ePackage the package in question.
55 * @return whether this is a switch for the given package.
56 * @generated
57 */
58 @Override
59 protected boolean isSwitchFor(EPackage ePackage)
60 {
61 return ePackage == modelPackage;
62 }
63
64 /**
65 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @return the first non-null result returned by a <code>caseXXX</code> call.
69 * @generated
70 */
71 @Override
72 protected T doSwitch(int classifierID, EObject theEObject)
73 {
74 switch (classifierID)
75 {
76 case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT:
77 {
78 ConfigurationScript configurationScript = (ConfigurationScript)theEObject;
79 T result = caseConfigurationScript(configurationScript);
80 if (result == null) result = defaultCase(theEObject);
81 return result;
82 }
83 case ApplicationConfigurationPackage.COMMAND:
84 {
85 Command command = (Command)theEObject;
86 T result = caseCommand(command);
87 if (result == null) result = defaultCase(theEObject);
88 return result;
89 }
90 case ApplicationConfigurationPackage.DECLARATION:
91 {
92 Declaration declaration = (Declaration)theEObject;
93 T result = caseDeclaration(declaration);
94 if (result == null) result = caseCommand(declaration);
95 if (result == null) result = defaultCase(theEObject);
96 return result;
97 }
98 case ApplicationConfigurationPackage.IMPORT:
99 {
100 Import import_ = (Import)theEObject;
101 T result = caseImport(import_);
102 if (result == null) result = defaultCase(theEObject);
103 return result;
104 }
105 case ApplicationConfigurationPackage.EPACKAGE_IMPORT:
106 {
107 EPackageImport ePackageImport = (EPackageImport)theEObject;
108 T result = caseEPackageImport(ePackageImport);
109 if (result == null) result = caseImport(ePackageImport);
110 if (result == null) result = defaultCase(theEObject);
111 return result;
112 }
113 case ApplicationConfigurationPackage.VIATRA_IMPORT:
114 {
115 ViatraImport viatraImport = (ViatraImport)theEObject;
116 T result = caseViatraImport(viatraImport);
117 if (result == null) result = caseImport(viatraImport);
118 if (result == null) result = defaultCase(theEObject);
119 return result;
120 }
121 case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION:
122 {
123 MetamodelSpecification metamodelSpecification = (MetamodelSpecification)theEObject;
124 T result = caseMetamodelSpecification(metamodelSpecification);
125 if (result == null) result = caseMetamodel(metamodelSpecification);
126 if (result == null) result = defaultCase(theEObject);
127 return result;
128 }
129 case ApplicationConfigurationPackage.METAMODEL_ENTRY:
130 {
131 MetamodelEntry metamodelEntry = (MetamodelEntry)theEObject;
132 T result = caseMetamodelEntry(metamodelEntry);
133 if (result == null) result = defaultCase(theEObject);
134 return result;
135 }
136 case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY:
137 {
138 AllPackageEntry allPackageEntry = (AllPackageEntry)theEObject;
139 T result = caseAllPackageEntry(allPackageEntry);
140 if (result == null) result = caseMetamodelEntry(allPackageEntry);
141 if (result == null) result = defaultCase(theEObject);
142 return result;
143 }
144 case ApplicationConfigurationPackage.METAMODEL_ELEMENT:
145 {
146 MetamodelElement metamodelElement = (MetamodelElement)theEObject;
147 T result = caseMetamodelElement(metamodelElement);
148 if (result == null) result = caseMetamodelEntry(metamodelElement);
149 if (result == null) result = defaultCase(theEObject);
150 return result;
151 }
152 case ApplicationConfigurationPackage.METAMODEL_DECLARATION:
153 {
154 MetamodelDeclaration metamodelDeclaration = (MetamodelDeclaration)theEObject;
155 T result = caseMetamodelDeclaration(metamodelDeclaration);
156 if (result == null) result = caseDeclaration(metamodelDeclaration);
157 if (result == null) result = caseCommand(metamodelDeclaration);
158 if (result == null) result = defaultCase(theEObject);
159 return result;
160 }
161 case ApplicationConfigurationPackage.METAMODEL_REFERENCE:
162 {
163 MetamodelReference metamodelReference = (MetamodelReference)theEObject;
164 T result = caseMetamodelReference(metamodelReference);
165 if (result == null) result = caseMetamodel(metamodelReference);
166 if (result == null) result = defaultCase(theEObject);
167 return result;
168 }
169 case ApplicationConfigurationPackage.METAMODEL:
170 {
171 Metamodel metamodel = (Metamodel)theEObject;
172 T result = caseMetamodel(metamodel);
173 if (result == null) result = defaultCase(theEObject);
174 return result;
175 }
176 default: return defaultCase(theEObject);
177 }
178 }
179
180 /**
181 * Returns the result of interpreting the object as an instance of '<em>Configuration Script</em>'.
182 * <!-- begin-user-doc -->
183 * This implementation returns null;
184 * returning a non-null result will terminate the switch.
185 * <!-- end-user-doc -->
186 * @param object the target of the switch.
187 * @return the result of interpreting the object as an instance of '<em>Configuration Script</em>'.
188 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
189 * @generated
190 */
191 public T caseConfigurationScript(ConfigurationScript object)
192 {
193 return null;
194 }
195
196 /**
197 * Returns the result of interpreting the object as an instance of '<em>Command</em>'.
198 * <!-- begin-user-doc -->
199 * This implementation returns null;
200 * returning a non-null result will terminate the switch.
201 * <!-- end-user-doc -->
202 * @param object the target of the switch.
203 * @return the result of interpreting the object as an instance of '<em>Command</em>'.
204 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
205 * @generated
206 */
207 public T caseCommand(Command object)
208 {
209 return null;
210 }
211
212 /**
213 * Returns the result of interpreting the object as an instance of '<em>Declaration</em>'.
214 * <!-- begin-user-doc -->
215 * This implementation returns null;
216 * returning a non-null result will terminate the switch.
217 * <!-- end-user-doc -->
218 * @param object the target of the switch.
219 * @return the result of interpreting the object as an instance of '<em>Declaration</em>'.
220 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
221 * @generated
222 */
223 public T caseDeclaration(Declaration object)
224 {
225 return null;
226 }
227
228 /**
229 * Returns the result of interpreting the object as an instance of '<em>Import</em>'.
230 * <!-- begin-user-doc -->
231 * This implementation returns null;
232 * returning a non-null result will terminate the switch.
233 * <!-- end-user-doc -->
234 * @param object the target of the switch.
235 * @return the result of interpreting the object as an instance of '<em>Import</em>'.
236 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
237 * @generated
238 */
239 public T caseImport(Import object)
240 {
241 return null;
242 }
243
244 /**
245 * Returns the result of interpreting the object as an instance of '<em>EPackage Import</em>'.
246 * <!-- begin-user-doc -->
247 * This implementation returns null;
248 * returning a non-null result will terminate the switch.
249 * <!-- end-user-doc -->
250 * @param object the target of the switch.
251 * @return the result of interpreting the object as an instance of '<em>EPackage Import</em>'.
252 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
253 * @generated
254 */
255 public T caseEPackageImport(EPackageImport object)
256 {
257 return null;
258 }
259
260 /**
261 * Returns the result of interpreting the object as an instance of '<em>Viatra Import</em>'.
262 * <!-- begin-user-doc -->
263 * This implementation returns null;
264 * returning a non-null result will terminate the switch.
265 * <!-- end-user-doc -->
266 * @param object the target of the switch.
267 * @return the result of interpreting the object as an instance of '<em>Viatra Import</em>'.
268 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
269 * @generated
270 */
271 public T caseViatraImport(ViatraImport object)
272 {
273 return null;
274 }
275
276 /**
277 * Returns the result of interpreting the object as an instance of '<em>Metamodel Specification</em>'.
278 * <!-- begin-user-doc -->
279 * This implementation returns null;
280 * returning a non-null result will terminate the switch.
281 * <!-- end-user-doc -->
282 * @param object the target of the switch.
283 * @return the result of interpreting the object as an instance of '<em>Metamodel Specification</em>'.
284 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
285 * @generated
286 */
287 public T caseMetamodelSpecification(MetamodelSpecification object)
288 {
289 return null;
290 }
291
292 /**
293 * Returns the result of interpreting the object as an instance of '<em>Metamodel Entry</em>'.
294 * <!-- begin-user-doc -->
295 * This implementation returns null;
296 * returning a non-null result will terminate the switch.
297 * <!-- end-user-doc -->
298 * @param object the target of the switch.
299 * @return the result of interpreting the object as an instance of '<em>Metamodel Entry</em>'.
300 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
301 * @generated
302 */
303 public T caseMetamodelEntry(MetamodelEntry object)
304 {
305 return null;
306 }
307
308 /**
309 * Returns the result of interpreting the object as an instance of '<em>All Package Entry</em>'.
310 * <!-- begin-user-doc -->
311 * This implementation returns null;
312 * returning a non-null result will terminate the switch.
313 * <!-- end-user-doc -->
314 * @param object the target of the switch.
315 * @return the result of interpreting the object as an instance of '<em>All Package Entry</em>'.
316 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
317 * @generated
318 */
319 public T caseAllPackageEntry(AllPackageEntry object)
320 {
321 return null;
322 }
323
324 /**
325 * Returns the result of interpreting the object as an instance of '<em>Metamodel Element</em>'.
326 * <!-- begin-user-doc -->
327 * This implementation returns null;
328 * returning a non-null result will terminate the switch.
329 * <!-- end-user-doc -->
330 * @param object the target of the switch.
331 * @return the result of interpreting the object as an instance of '<em>Metamodel Element</em>'.
332 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
333 * @generated
334 */
335 public T caseMetamodelElement(MetamodelElement object)
336 {
337 return null;
338 }
339
340 /**
341 * Returns the result of interpreting the object as an instance of '<em>Metamodel Declaration</em>'.
342 * <!-- begin-user-doc -->
343 * This implementation returns null;
344 * returning a non-null result will terminate the switch.
345 * <!-- end-user-doc -->
346 * @param object the target of the switch.
347 * @return the result of interpreting the object as an instance of '<em>Metamodel Declaration</em>'.
348 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
349 * @generated
350 */
351 public T caseMetamodelDeclaration(MetamodelDeclaration object)
352 {
353 return null;
354 }
355
356 /**
357 * Returns the result of interpreting the object as an instance of '<em>Metamodel Reference</em>'.
358 * <!-- begin-user-doc -->
359 * This implementation returns null;
360 * returning a non-null result will terminate the switch.
361 * <!-- end-user-doc -->
362 * @param object the target of the switch.
363 * @return the result of interpreting the object as an instance of '<em>Metamodel Reference</em>'.
364 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
365 * @generated
366 */
367 public T caseMetamodelReference(MetamodelReference object)
368 {
369 return null;
370 }
371
372 /**
373 * Returns the result of interpreting the object as an instance of '<em>Metamodel</em>'.
374 * <!-- begin-user-doc -->
375 * This implementation returns null;
376 * returning a non-null result will terminate the switch.
377 * <!-- end-user-doc -->
378 * @param object the target of the switch.
379 * @return the result of interpreting the object as an instance of '<em>Metamodel</em>'.
380 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
381 * @generated
382 */
383 public T caseMetamodel(Metamodel object)
384 {
385 return null;
386 }
387
388 /**
389 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
390 * <!-- begin-user-doc -->
391 * This implementation returns null;
392 * returning a non-null result will terminate the switch, but this is the last case anyway.
393 * <!-- end-user-doc -->
394 * @param object the target of the switch.
395 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
396 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
397 * @generated
398 */
399 @Override
400 public T defaultCase(EObject object)
401 {
402 return null;
403 }
404
405} //ApplicationConfigurationSwitch