diff options
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTypeDefImpl.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTypeDefImpl.java | 408 |
1 files changed, 408 insertions, 0 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTypeDefImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTypeDefImpl.java new file mode 100644 index 00000000..d16f5fe4 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTypeDefImpl.java | |||
@@ -0,0 +1,408 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.14.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTypeDef; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>VLS Type Def</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSTypeDefImpl#getTypeSig <em>Type Sig</em>}</li> | ||
28 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSTypeDefImpl#getMapsTo <em>Maps To</em>}</li> | ||
29 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSTypeDefImpl#getInitType <em>Init Type</em>}</li> | ||
30 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSTypeDefImpl#getNextType <em>Next Type</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class VLSTypeDefImpl extends MinimalEObjectImpl.Container implements VLSTypeDef | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getTypeSig() <em>Type Sig</em>}' containment reference. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getTypeSig() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected VLSTypeDef typeSig; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getMapsTo() <em>Maps To</em>}' containment reference. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getMapsTo() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected VLSTerm mapsTo; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getInitType() <em>Init Type</em>}' containment reference. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getInitType() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected VLSTerm initType; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getNextType() <em>Next Type</em>}' containment reference. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getNextType() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected VLSTerm nextType; | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | protected VLSTypeDefImpl() | ||
83 | { | ||
84 | super(); | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | protected EClass eStaticClass() | ||
94 | { | ||
95 | return VampireLanguagePackage.Literals.VLS_TYPE_DEF; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | public VLSTypeDef getTypeSig() | ||
104 | { | ||
105 | return typeSig; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetTypeSig(VLSTypeDef newTypeSig, NotificationChain msgs) | ||
114 | { | ||
115 | VLSTypeDef oldTypeSig = typeSig; | ||
116 | typeSig = newTypeSig; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG, oldTypeSig, newTypeSig); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | public void setTypeSig(VLSTypeDef newTypeSig) | ||
131 | { | ||
132 | if (newTypeSig != typeSig) | ||
133 | { | ||
134 | NotificationChain msgs = null; | ||
135 | if (typeSig != null) | ||
136 | msgs = ((InternalEObject)typeSig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG, null, msgs); | ||
137 | if (newTypeSig != null) | ||
138 | msgs = ((InternalEObject)newTypeSig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG, null, msgs); | ||
139 | msgs = basicSetTypeSig(newTypeSig, msgs); | ||
140 | if (msgs != null) msgs.dispatch(); | ||
141 | } | ||
142 | else if (eNotificationRequired()) | ||
143 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG, newTypeSig, newTypeSig)); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | public VLSTerm getMapsTo() | ||
152 | { | ||
153 | return mapsTo; | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | public NotificationChain basicSetMapsTo(VLSTerm newMapsTo, NotificationChain msgs) | ||
162 | { | ||
163 | VLSTerm oldMapsTo = mapsTo; | ||
164 | mapsTo = newMapsTo; | ||
165 | if (eNotificationRequired()) | ||
166 | { | ||
167 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO, oldMapsTo, newMapsTo); | ||
168 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
169 | } | ||
170 | return msgs; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | public void setMapsTo(VLSTerm newMapsTo) | ||
179 | { | ||
180 | if (newMapsTo != mapsTo) | ||
181 | { | ||
182 | NotificationChain msgs = null; | ||
183 | if (mapsTo != null) | ||
184 | msgs = ((InternalEObject)mapsTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO, null, msgs); | ||
185 | if (newMapsTo != null) | ||
186 | msgs = ((InternalEObject)newMapsTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO, null, msgs); | ||
187 | msgs = basicSetMapsTo(newMapsTo, msgs); | ||
188 | if (msgs != null) msgs.dispatch(); | ||
189 | } | ||
190 | else if (eNotificationRequired()) | ||
191 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO, newMapsTo, newMapsTo)); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | public VLSTerm getInitType() | ||
200 | { | ||
201 | return initType; | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | public NotificationChain basicSetInitType(VLSTerm newInitType, NotificationChain msgs) | ||
210 | { | ||
211 | VLSTerm oldInitType = initType; | ||
212 | initType = newInitType; | ||
213 | if (eNotificationRequired()) | ||
214 | { | ||
215 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE, oldInitType, newInitType); | ||
216 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
217 | } | ||
218 | return msgs; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | public void setInitType(VLSTerm newInitType) | ||
227 | { | ||
228 | if (newInitType != initType) | ||
229 | { | ||
230 | NotificationChain msgs = null; | ||
231 | if (initType != null) | ||
232 | msgs = ((InternalEObject)initType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE, null, msgs); | ||
233 | if (newInitType != null) | ||
234 | msgs = ((InternalEObject)newInitType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE, null, msgs); | ||
235 | msgs = basicSetInitType(newInitType, msgs); | ||
236 | if (msgs != null) msgs.dispatch(); | ||
237 | } | ||
238 | else if (eNotificationRequired()) | ||
239 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE, newInitType, newInitType)); | ||
240 | } | ||
241 | |||
242 | /** | ||
243 | * <!-- begin-user-doc --> | ||
244 | * <!-- end-user-doc --> | ||
245 | * @generated | ||
246 | */ | ||
247 | public VLSTerm getNextType() | ||
248 | { | ||
249 | return nextType; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @generated | ||
256 | */ | ||
257 | public NotificationChain basicSetNextType(VLSTerm newNextType, NotificationChain msgs) | ||
258 | { | ||
259 | VLSTerm oldNextType = nextType; | ||
260 | nextType = newNextType; | ||
261 | if (eNotificationRequired()) | ||
262 | { | ||
263 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE, oldNextType, newNextType); | ||
264 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
265 | } | ||
266 | return msgs; | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | public void setNextType(VLSTerm newNextType) | ||
275 | { | ||
276 | if (newNextType != nextType) | ||
277 | { | ||
278 | NotificationChain msgs = null; | ||
279 | if (nextType != null) | ||
280 | msgs = ((InternalEObject)nextType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE, null, msgs); | ||
281 | if (newNextType != null) | ||
282 | msgs = ((InternalEObject)newNextType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE, null, msgs); | ||
283 | msgs = basicSetNextType(newNextType, msgs); | ||
284 | if (msgs != null) msgs.dispatch(); | ||
285 | } | ||
286 | else if (eNotificationRequired()) | ||
287 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE, newNextType, newNextType)); | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | @Override | ||
296 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
297 | { | ||
298 | switch (featureID) | ||
299 | { | ||
300 | case VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG: | ||
301 | return basicSetTypeSig(null, msgs); | ||
302 | case VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO: | ||
303 | return basicSetMapsTo(null, msgs); | ||
304 | case VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE: | ||
305 | return basicSetInitType(null, msgs); | ||
306 | case VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE: | ||
307 | return basicSetNextType(null, msgs); | ||
308 | } | ||
309 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * <!-- begin-user-doc --> | ||
314 | * <!-- end-user-doc --> | ||
315 | * @generated | ||
316 | */ | ||
317 | @Override | ||
318 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
319 | { | ||
320 | switch (featureID) | ||
321 | { | ||
322 | case VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG: | ||
323 | return getTypeSig(); | ||
324 | case VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO: | ||
325 | return getMapsTo(); | ||
326 | case VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE: | ||
327 | return getInitType(); | ||
328 | case VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE: | ||
329 | return getNextType(); | ||
330 | } | ||
331 | return super.eGet(featureID, resolve, coreType); | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public void eSet(int featureID, Object newValue) | ||
341 | { | ||
342 | switch (featureID) | ||
343 | { | ||
344 | case VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG: | ||
345 | setTypeSig((VLSTypeDef)newValue); | ||
346 | return; | ||
347 | case VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO: | ||
348 | setMapsTo((VLSTerm)newValue); | ||
349 | return; | ||
350 | case VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE: | ||
351 | setInitType((VLSTerm)newValue); | ||
352 | return; | ||
353 | case VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE: | ||
354 | setNextType((VLSTerm)newValue); | ||
355 | return; | ||
356 | } | ||
357 | super.eSet(featureID, newValue); | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | @Override | ||
366 | public void eUnset(int featureID) | ||
367 | { | ||
368 | switch (featureID) | ||
369 | { | ||
370 | case VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG: | ||
371 | setTypeSig((VLSTypeDef)null); | ||
372 | return; | ||
373 | case VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO: | ||
374 | setMapsTo((VLSTerm)null); | ||
375 | return; | ||
376 | case VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE: | ||
377 | setInitType((VLSTerm)null); | ||
378 | return; | ||
379 | case VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE: | ||
380 | setNextType((VLSTerm)null); | ||
381 | return; | ||
382 | } | ||
383 | super.eUnset(featureID); | ||
384 | } | ||
385 | |||
386 | /** | ||
387 | * <!-- begin-user-doc --> | ||
388 | * <!-- end-user-doc --> | ||
389 | * @generated | ||
390 | */ | ||
391 | @Override | ||
392 | public boolean eIsSet(int featureID) | ||
393 | { | ||
394 | switch (featureID) | ||
395 | { | ||
396 | case VampireLanguagePackage.VLS_TYPE_DEF__TYPE_SIG: | ||
397 | return typeSig != null; | ||
398 | case VampireLanguagePackage.VLS_TYPE_DEF__MAPS_TO: | ||
399 | return mapsTo != null; | ||
400 | case VampireLanguagePackage.VLS_TYPE_DEF__INIT_TYPE: | ||
401 | return initType != null; | ||
402 | case VampireLanguagePackage.VLS_TYPE_DEF__NEXT_TYPE: | ||
403 | return nextType != null; | ||
404 | } | ||
405 | return super.eIsSet(featureID); | ||
406 | } | ||
407 | |||
408 | } //VLSTypeDefImpl | ||