diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java | 329 |
1 files changed, 0 insertions, 329 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java deleted file mode 100644 index b3de106b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java +++ /dev/null | |||
@@ -1,329 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.util.Switch; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
16 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
17 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
18 | * starting with the actual class of the object | ||
19 | * and proceeding up the inheritance hierarchy | ||
20 | * until a non-null result is returned, | ||
21 | * which is the result of the switch. | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
24 | * @generated | ||
25 | */ | ||
26 | public class CftLanguageSwitch<T> extends Switch<T> | ||
27 | { | ||
28 | /** | ||
29 | * The cached model package | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | protected static CftLanguagePackage modelPackage; | ||
35 | |||
36 | /** | ||
37 | * Creates an instance of the switch. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | public CftLanguageSwitch() | ||
43 | { | ||
44 | if (modelPackage == null) | ||
45 | { | ||
46 | modelPackage = CftLanguagePackage.eINSTANCE; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * Checks whether this is a switch for the given package. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @param ePackage the package in question. | ||
55 | * @return whether this is a switch for the given package. | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected boolean isSwitchFor(EPackage ePackage) | ||
60 | { | ||
61 | return ePackage == modelPackage; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected T doSwitch(int classifierID, EObject theEObject) | ||
73 | { | ||
74 | switch (classifierID) | ||
75 | { | ||
76 | case CftLanguagePackage.CFT_MODEL: | ||
77 | { | ||
78 | CftModel cftModel = (CftModel)theEObject; | ||
79 | T result = caseCftModel(cftModel); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
84 | { | ||
85 | ImportDeclaration importDeclaration = (ImportDeclaration)theEObject; | ||
86 | T result = caseImportDeclaration(importDeclaration); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
91 | { | ||
92 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | ||
93 | T result = caseTransformationDefinition(transformationDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
98 | { | ||
99 | MappingDefinition mappingDefinition = (MappingDefinition)theEObject; | ||
100 | T result = caseMappingDefinition(mappingDefinition); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
105 | { | ||
106 | MappingParameter mappingParameter = (MappingParameter)theEObject; | ||
107 | T result = caseMappingParameter(mappingParameter); | ||
108 | if (result == null) result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
112 | { | ||
113 | LookupDefinition lookupDefinition = (LookupDefinition)theEObject; | ||
114 | T result = caseLookupDefinition(lookupDefinition); | ||
115 | if (result == null) result = caseVariable(lookupDefinition); | ||
116 | if (result == null) result = defaultCase(theEObject); | ||
117 | return result; | ||
118 | } | ||
119 | case CftLanguagePackage.VARIABLE: | ||
120 | { | ||
121 | Variable variable = (Variable)theEObject; | ||
122 | T result = caseVariable(variable); | ||
123 | if (result == null) result = defaultCase(theEObject); | ||
124 | return result; | ||
125 | } | ||
126 | case CftLanguagePackage.ASSIGNMENT: | ||
127 | { | ||
128 | Assignment assignment = (Assignment)theEObject; | ||
129 | T result = caseAssignment(assignment); | ||
130 | if (result == null) result = defaultCase(theEObject); | ||
131 | return result; | ||
132 | } | ||
133 | case CftLanguagePackage.EVENT_REFERENCE: | ||
134 | { | ||
135 | EventReference eventReference = (EventReference)theEObject; | ||
136 | T result = caseEventReference(eventReference); | ||
137 | if (result == null) result = defaultCase(theEObject); | ||
138 | return result; | ||
139 | } | ||
140 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
141 | { | ||
142 | ComponentInstance componentInstance = (ComponentInstance)theEObject; | ||
143 | T result = caseComponentInstance(componentInstance); | ||
144 | if (result == null) result = caseVariable(componentInstance); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | default: return defaultCase(theEObject); | ||
149 | } | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * Returns the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * This implementation returns null; | ||
156 | * returning a non-null result will terminate the switch. | ||
157 | * <!-- end-user-doc --> | ||
158 | * @param object the target of the switch. | ||
159 | * @return the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
160 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
161 | * @generated | ||
162 | */ | ||
163 | public T caseCftModel(CftModel object) | ||
164 | { | ||
165 | return null; | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * Returns the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
170 | * <!-- begin-user-doc --> | ||
171 | * This implementation returns null; | ||
172 | * returning a non-null result will terminate the switch. | ||
173 | * <!-- end-user-doc --> | ||
174 | * @param object the target of the switch. | ||
175 | * @return the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
176 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
177 | * @generated | ||
178 | */ | ||
179 | public T caseImportDeclaration(ImportDeclaration object) | ||
180 | { | ||
181 | return null; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
186 | * <!-- begin-user-doc --> | ||
187 | * This implementation returns null; | ||
188 | * returning a non-null result will terminate the switch. | ||
189 | * <!-- end-user-doc --> | ||
190 | * @param object the target of the switch. | ||
191 | * @return the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
192 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
193 | * @generated | ||
194 | */ | ||
195 | public T caseTransformationDefinition(TransformationDefinition object) | ||
196 | { | ||
197 | return null; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * Returns the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
202 | * <!-- begin-user-doc --> | ||
203 | * This implementation returns null; | ||
204 | * returning a non-null result will terminate the switch. | ||
205 | * <!-- end-user-doc --> | ||
206 | * @param object the target of the switch. | ||
207 | * @return the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
208 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
209 | * @generated | ||
210 | */ | ||
211 | public T caseMappingDefinition(MappingDefinition object) | ||
212 | { | ||
213 | return null; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Returns the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * This implementation returns null; | ||
220 | * returning a non-null result will terminate the switch. | ||
221 | * <!-- end-user-doc --> | ||
222 | * @param object the target of the switch. | ||
223 | * @return the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
224 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
225 | * @generated | ||
226 | */ | ||
227 | public T caseMappingParameter(MappingParameter object) | ||
228 | { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Returns the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This implementation returns null; | ||
236 | * returning a non-null result will terminate the switch. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @param object the target of the switch. | ||
239 | * @return the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
240 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
241 | * @generated | ||
242 | */ | ||
243 | public T caseLookupDefinition(LookupDefinition object) | ||
244 | { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This implementation returns null; | ||
252 | * returning a non-null result will terminate the switch. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @param object the target of the switch. | ||
255 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
256 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
257 | * @generated | ||
258 | */ | ||
259 | public T caseVariable(Variable object) | ||
260 | { | ||
261 | return null; | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * Returns the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
266 | * <!-- begin-user-doc --> | ||
267 | * This implementation returns null; | ||
268 | * returning a non-null result will terminate the switch. | ||
269 | * <!-- end-user-doc --> | ||
270 | * @param object the target of the switch. | ||
271 | * @return the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
272 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
273 | * @generated | ||
274 | */ | ||
275 | public T caseAssignment(Assignment object) | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Returns the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This implementation returns null; | ||
284 | * returning a non-null result will terminate the switch. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @param object the target of the switch. | ||
287 | * @return the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
288 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
289 | * @generated | ||
290 | */ | ||
291 | public T caseEventReference(EventReference object) | ||
292 | { | ||
293 | return null; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * Returns the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
298 | * <!-- begin-user-doc --> | ||
299 | * This implementation returns null; | ||
300 | * returning a non-null result will terminate the switch. | ||
301 | * <!-- end-user-doc --> | ||
302 | * @param object the target of the switch. | ||
303 | * @return the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
304 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
305 | * @generated | ||
306 | */ | ||
307 | public T caseComponentInstance(ComponentInstance object) | ||
308 | { | ||
309 | return null; | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
314 | * <!-- begin-user-doc --> | ||
315 | * This implementation returns null; | ||
316 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
317 | * <!-- end-user-doc --> | ||
318 | * @param object the target of the switch. | ||
319 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
320 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
321 | * @generated | ||
322 | */ | ||
323 | @Override | ||
324 | public T defaultCase(EObject object) | ||
325 | { | ||
326 | return null; | ||
327 | } | ||
328 | |||
329 | } //CftLanguageSwitch | ||