diff options
author | Kristóf Marussy <marussy@mit.bme.hu> | 2020-05-08 18:28:19 +0200 |
---|---|---|
committer | Kristóf Marussy <marussy@mit.bme.hu> | 2020-05-08 18:28:19 +0200 |
commit | 419e76265ecbdf65e960e0624be006d31ed1e191 (patch) | |
tree | dad200fe9fd0beae7adde969206b77691a51b85a /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java | |
parent | Fix check expressions in generated VIATRA (diff) | |
download | VIATRA-Generator-419e76265ecbdf65e960e0624be006d31ed1e191.tar.gz VIATRA-Generator-419e76265ecbdf65e960e0624be006d31ed1e191.tar.zst VIATRA-Generator-419e76265ecbdf65e960e0624be006d31ed1e191.zip |
Update solver language grammar
First version, still needs TokenSource and Linker to work.
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java | 418 |
1 files changed, 0 insertions, 418 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java deleted file mode 100644 index ea9b80b2..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FieldRelationInterpretationImpl.java +++ /dev/null | |||
@@ -1,418 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>Field Relation Interpretation</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#isContainment <em>Containment</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FieldRelationInterpretationImpl#getTarget <em>Target</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class FieldRelationInterpretationImpl extends MinimalEObjectImpl.Container implements FieldRelationInterpretation | ||
38 | { | ||
39 | /** | ||
40 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isContainment() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isContainment() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getSymbol() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected ModelSymbol symbol; | ||
68 | |||
69 | /** | ||
70 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #getMultiplicity() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected MultiplicityDefinition multiplicity; | ||
78 | |||
79 | /** | ||
80 | * The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #getTarget() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected Symbol target; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | protected FieldRelationInterpretationImpl() | ||
95 | { | ||
96 | super(); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | protected EClass eStaticClass() | ||
106 | { | ||
107 | return SolverLanguagePackage.Literals.FIELD_RELATION_INTERPRETATION; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public boolean isContainment() | ||
117 | { | ||
118 | return containment; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void setContainment(boolean newContainment) | ||
128 | { | ||
129 | boolean oldContainment = containment; | ||
130 | containment = newContainment; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT, oldContainment, containment)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public ModelSymbol getSymbol() | ||
142 | { | ||
143 | return symbol; | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
152 | { | ||
153 | ModelSymbol oldSymbol = symbol; | ||
154 | symbol = newSymbol; | ||
155 | if (eNotificationRequired()) | ||
156 | { | ||
157 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
158 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
159 | } | ||
160 | return msgs; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public void setSymbol(ModelSymbol newSymbol) | ||
170 | { | ||
171 | if (newSymbol != symbol) | ||
172 | { | ||
173 | NotificationChain msgs = null; | ||
174 | if (symbol != null) | ||
175 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
176 | if (newSymbol != null) | ||
177 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
178 | msgs = basicSetSymbol(newSymbol, msgs); | ||
179 | if (msgs != null) msgs.dispatch(); | ||
180 | } | ||
181 | else if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public MultiplicityDefinition getMultiplicity() | ||
192 | { | ||
193 | return multiplicity; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | public NotificationChain basicSetMultiplicity(MultiplicityDefinition newMultiplicity, NotificationChain msgs) | ||
202 | { | ||
203 | MultiplicityDefinition oldMultiplicity = multiplicity; | ||
204 | multiplicity = newMultiplicity; | ||
205 | if (eNotificationRequired()) | ||
206 | { | ||
207 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
208 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
209 | } | ||
210 | return msgs; | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void setMultiplicity(MultiplicityDefinition newMultiplicity) | ||
220 | { | ||
221 | if (newMultiplicity != multiplicity) | ||
222 | { | ||
223 | NotificationChain msgs = null; | ||
224 | if (multiplicity != null) | ||
225 | msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, null, msgs); | ||
226 | if (newMultiplicity != null) | ||
227 | msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, null, msgs); | ||
228 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
229 | if (msgs != null) msgs.dispatch(); | ||
230 | } | ||
231 | else if (eNotificationRequired()) | ||
232 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY, newMultiplicity, newMultiplicity)); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public Symbol getTarget() | ||
242 | { | ||
243 | return target; | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | public NotificationChain basicSetTarget(Symbol newTarget, NotificationChain msgs) | ||
252 | { | ||
253 | Symbol oldTarget = target; | ||
254 | target = newTarget; | ||
255 | if (eNotificationRequired()) | ||
256 | { | ||
257 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, oldTarget, newTarget); | ||
258 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
259 | } | ||
260 | return msgs; | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public void setTarget(Symbol newTarget) | ||
270 | { | ||
271 | if (newTarget != target) | ||
272 | { | ||
273 | NotificationChain msgs = null; | ||
274 | if (target != null) | ||
275 | msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
276 | if (newTarget != null) | ||
277 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
278 | msgs = basicSetTarget(newTarget, msgs); | ||
279 | if (msgs != null) msgs.dispatch(); | ||
280 | } | ||
281 | else if (eNotificationRequired()) | ||
282 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET, newTarget, newTarget)); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
296 | return basicSetSymbol(null, msgs); | ||
297 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
298 | return basicSetMultiplicity(null, msgs); | ||
299 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
300 | return basicSetTarget(null, msgs); | ||
301 | } | ||
302 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | @Override | ||
311 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
312 | { | ||
313 | switch (featureID) | ||
314 | { | ||
315 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
316 | return isContainment(); | ||
317 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
318 | return getSymbol(); | ||
319 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
320 | return getMultiplicity(); | ||
321 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
322 | return getTarget(); | ||
323 | } | ||
324 | return super.eGet(featureID, resolve, coreType); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public void eSet(int featureID, Object newValue) | ||
334 | { | ||
335 | switch (featureID) | ||
336 | { | ||
337 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
338 | setContainment((Boolean)newValue); | ||
339 | return; | ||
340 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
341 | setSymbol((ModelSymbol)newValue); | ||
342 | return; | ||
343 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
344 | setMultiplicity((MultiplicityDefinition)newValue); | ||
345 | return; | ||
346 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
347 | setTarget((Symbol)newValue); | ||
348 | return; | ||
349 | } | ||
350 | super.eSet(featureID, newValue); | ||
351 | } | ||
352 | |||
353 | /** | ||
354 | * <!-- begin-user-doc --> | ||
355 | * <!-- end-user-doc --> | ||
356 | * @generated | ||
357 | */ | ||
358 | @Override | ||
359 | public void eUnset(int featureID) | ||
360 | { | ||
361 | switch (featureID) | ||
362 | { | ||
363 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
364 | setContainment(CONTAINMENT_EDEFAULT); | ||
365 | return; | ||
366 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
367 | setSymbol((ModelSymbol)null); | ||
368 | return; | ||
369 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
370 | setMultiplicity((MultiplicityDefinition)null); | ||
371 | return; | ||
372 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
373 | setTarget((Symbol)null); | ||
374 | return; | ||
375 | } | ||
376 | super.eUnset(featureID); | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public boolean eIsSet(int featureID) | ||
386 | { | ||
387 | switch (featureID) | ||
388 | { | ||
389 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__CONTAINMENT: | ||
390 | return containment != CONTAINMENT_EDEFAULT; | ||
391 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__SYMBOL: | ||
392 | return symbol != null; | ||
393 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__MULTIPLICITY: | ||
394 | return multiplicity != null; | ||
395 | case SolverLanguagePackage.FIELD_RELATION_INTERPRETATION__TARGET: | ||
396 | return target != null; | ||
397 | } | ||
398 | return super.eIsSet(featureID); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | @Override | ||
407 | public String toString() | ||
408 | { | ||
409 | if (eIsProxy()) return super.toString(); | ||
410 | |||
411 | StringBuilder result = new StringBuilder(super.toString()); | ||
412 | result.append(" (containment: "); | ||
413 | result.append(containment); | ||
414 | result.append(')'); | ||
415 | return result.toString(); | ||
416 | } | ||
417 | |||
418 | } //FieldRelationInterpretationImpl | ||