diff options
author | 2020-06-23 15:17:00 +0200 | |
---|---|---|
committer | 2020-06-23 15:17:00 +0200 | |
commit | 42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f (patch) | |
tree | 21d49c3a1dadc54dda399a4b8cfe8dc028563f51 /Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl | |
parent | Measurements framework fixes (diff) | |
download | VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.tar.gz VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.tar.zst VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.zip |
New configuration language parser WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl')
60 files changed, 0 insertions, 14976 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java deleted file mode 100644 index 0f0262df..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationImpl.java +++ /dev/null | |||
@@ -1,378 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Aggregation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.LocalVariables; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Aggregation</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getOp <em>Op</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getLocalVariables <em>Local Variables</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getBody <em>Body</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationImpl#getCondition <em>Condition</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class AggregationImpl extends ExpressionImpl implements Aggregation { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getOp() <em>Op</em>}' reference. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getOp() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected NamedElement op; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getLocalVariables() <em>Local Variables</em>}' containment reference. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getLocalVariables() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected LocalVariables localVariables; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getBody() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected Expression body; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getCondition() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected Expression condition; | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | protected AggregationImpl() { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() { | ||
93 | return SolverLanguagePackage.Literals.AGGREGATION; | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public NamedElement getOp() { | ||
103 | if (op != null && op.eIsProxy()) { | ||
104 | InternalEObject oldOp = (InternalEObject)op; | ||
105 | op = (NamedElement)eResolveProxy(oldOp); | ||
106 | if (op != oldOp) { | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.AGGREGATION__OP, oldOp, op)); | ||
109 | } | ||
110 | } | ||
111 | return op; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | public NamedElement basicGetOp() { | ||
120 | return op; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void setOp(NamedElement newOp) { | ||
130 | NamedElement oldOp = op; | ||
131 | op = newOp; | ||
132 | if (eNotificationRequired()) | ||
133 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__OP, oldOp, op)); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public LocalVariables getLocalVariables() { | ||
143 | return localVariables; | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | public NotificationChain basicSetLocalVariables(LocalVariables newLocalVariables, NotificationChain msgs) { | ||
152 | LocalVariables oldLocalVariables = localVariables; | ||
153 | localVariables = newLocalVariables; | ||
154 | if (eNotificationRequired()) { | ||
155 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES, oldLocalVariables, newLocalVariables); | ||
156 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
157 | } | ||
158 | return msgs; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public void setLocalVariables(LocalVariables newLocalVariables) { | ||
168 | if (newLocalVariables != localVariables) { | ||
169 | NotificationChain msgs = null; | ||
170 | if (localVariables != null) | ||
171 | msgs = ((InternalEObject)localVariables).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES, null, msgs); | ||
172 | if (newLocalVariables != null) | ||
173 | msgs = ((InternalEObject)newLocalVariables).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES, null, msgs); | ||
174 | msgs = basicSetLocalVariables(newLocalVariables, msgs); | ||
175 | if (msgs != null) msgs.dispatch(); | ||
176 | } | ||
177 | else if (eNotificationRequired()) | ||
178 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES, newLocalVariables, newLocalVariables)); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public Expression getBody() { | ||
188 | return body; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
197 | Expression oldBody = body; | ||
198 | body = newBody; | ||
199 | if (eNotificationRequired()) { | ||
200 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__BODY, oldBody, newBody); | ||
201 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
202 | } | ||
203 | return msgs; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void setBody(Expression newBody) { | ||
213 | if (newBody != body) { | ||
214 | NotificationChain msgs = null; | ||
215 | if (body != null) | ||
216 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__BODY, null, msgs); | ||
217 | if (newBody != null) | ||
218 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__BODY, null, msgs); | ||
219 | msgs = basicSetBody(newBody, msgs); | ||
220 | if (msgs != null) msgs.dispatch(); | ||
221 | } | ||
222 | else if (eNotificationRequired()) | ||
223 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__BODY, newBody, newBody)); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public Expression getCondition() { | ||
233 | return condition; | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | */ | ||
241 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) { | ||
242 | Expression oldCondition = condition; | ||
243 | condition = newCondition; | ||
244 | if (eNotificationRequired()) { | ||
245 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__CONDITION, oldCondition, newCondition); | ||
246 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
247 | } | ||
248 | return msgs; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public void setCondition(Expression newCondition) { | ||
258 | if (newCondition != condition) { | ||
259 | NotificationChain msgs = null; | ||
260 | if (condition != null) | ||
261 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__CONDITION, null, msgs); | ||
262 | if (newCondition != null) | ||
263 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.AGGREGATION__CONDITION, null, msgs); | ||
264 | msgs = basicSetCondition(newCondition, msgs); | ||
265 | if (msgs != null) msgs.dispatch(); | ||
266 | } | ||
267 | else if (eNotificationRequired()) | ||
268 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.AGGREGATION__CONDITION, newCondition, newCondition)); | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
278 | switch (featureID) { | ||
279 | case SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES: | ||
280 | return basicSetLocalVariables(null, msgs); | ||
281 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
282 | return basicSetBody(null, msgs); | ||
283 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
284 | return basicSetCondition(null, msgs); | ||
285 | } | ||
286 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * <!-- begin-user-doc --> | ||
291 | * <!-- end-user-doc --> | ||
292 | * @generated | ||
293 | */ | ||
294 | @Override | ||
295 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
296 | switch (featureID) { | ||
297 | case SolverLanguagePackage.AGGREGATION__OP: | ||
298 | if (resolve) return getOp(); | ||
299 | return basicGetOp(); | ||
300 | case SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES: | ||
301 | return getLocalVariables(); | ||
302 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
303 | return getBody(); | ||
304 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
305 | return getCondition(); | ||
306 | } | ||
307 | return super.eGet(featureID, resolve, coreType); | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public void eSet(int featureID, Object newValue) { | ||
317 | switch (featureID) { | ||
318 | case SolverLanguagePackage.AGGREGATION__OP: | ||
319 | setOp((NamedElement)newValue); | ||
320 | return; | ||
321 | case SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES: | ||
322 | setLocalVariables((LocalVariables)newValue); | ||
323 | return; | ||
324 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
325 | setBody((Expression)newValue); | ||
326 | return; | ||
327 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
328 | setCondition((Expression)newValue); | ||
329 | return; | ||
330 | } | ||
331 | super.eSet(featureID, newValue); | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public void eUnset(int featureID) { | ||
341 | switch (featureID) { | ||
342 | case SolverLanguagePackage.AGGREGATION__OP: | ||
343 | setOp((NamedElement)null); | ||
344 | return; | ||
345 | case SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES: | ||
346 | setLocalVariables((LocalVariables)null); | ||
347 | return; | ||
348 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
349 | setBody((Expression)null); | ||
350 | return; | ||
351 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
352 | setCondition((Expression)null); | ||
353 | return; | ||
354 | } | ||
355 | super.eUnset(featureID); | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | @Override | ||
364 | public boolean eIsSet(int featureID) { | ||
365 | switch (featureID) { | ||
366 | case SolverLanguagePackage.AGGREGATION__OP: | ||
367 | return op != null; | ||
368 | case SolverLanguagePackage.AGGREGATION__LOCAL_VARIABLES: | ||
369 | return localVariables != null; | ||
370 | case SolverLanguagePackage.AGGREGATION__BODY: | ||
371 | return body != null; | ||
372 | case SolverLanguagePackage.AGGREGATION__CONDITION: | ||
373 | return condition != null; | ||
374 | } | ||
375 | return super.eIsSet(featureID); | ||
376 | } | ||
377 | |||
378 | } //AggregationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java deleted file mode 100644 index afd14afa..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentImpl.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Argument</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument { | ||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * <!-- end-user-doc --> | ||
24 | * @generated | ||
25 | */ | ||
26 | protected ArgumentImpl() { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() { | ||
37 | return SolverLanguagePackage.Literals.ARGUMENT; | ||
38 | } | ||
39 | |||
40 | } //ArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java deleted file mode 100644 index fce298f1..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ArgumentListImpl.java +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Argument List</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ArgumentListImpl#getArguments <em>Arguments</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ArgumentListImpl extends MinimalEObjectImpl.Container implements ArgumentList { | ||
38 | /** | ||
39 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' containment reference list. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getArguments() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected EList<Argument> arguments; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ArgumentListImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return SolverLanguagePackage.Literals.ARGUMENT_LIST; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public EList<Argument> getArguments() { | ||
74 | if (arguments == null) { | ||
75 | arguments = new EObjectContainmentEList<Argument>(Argument.class, this, SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS); | ||
76 | } | ||
77 | return arguments; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
87 | switch (featureID) { | ||
88 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
89 | return ((InternalEList<?>)getArguments()).basicRemove(otherEnd, msgs); | ||
90 | } | ||
91 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
101 | switch (featureID) { | ||
102 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
103 | return getArguments(); | ||
104 | } | ||
105 | return super.eGet(featureID, resolve, coreType); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @SuppressWarnings("unchecked") | ||
114 | @Override | ||
115 | public void eSet(int featureID, Object newValue) { | ||
116 | switch (featureID) { | ||
117 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
118 | getArguments().clear(); | ||
119 | getArguments().addAll((Collection<? extends Argument>)newValue); | ||
120 | return; | ||
121 | } | ||
122 | super.eSet(featureID, newValue); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eUnset(int featureID) { | ||
132 | switch (featureID) { | ||
133 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
134 | getArguments().clear(); | ||
135 | return; | ||
136 | } | ||
137 | super.eUnset(featureID); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public boolean eIsSet(int featureID) { | ||
147 | switch (featureID) { | ||
148 | case SolverLanguagePackage.ARGUMENT_LIST__ARGUMENTS: | ||
149 | return arguments != null && !arguments.isEmpty(); | ||
150 | } | ||
151 | return super.eIsSet(featureID); | ||
152 | } | ||
153 | |||
154 | } //ArgumentListImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java deleted file mode 100644 index e85a40f9..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BinaryExpressionImpl.java +++ /dev/null | |||
@@ -1,317 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryExpression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Binary Expression</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getLeft <em>Left</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getOp <em>Op</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BinaryExpressionImpl#getRight <em>Right</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class BinaryExpressionImpl extends ExpressionImpl implements BinaryExpression { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getLeft() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Expression left; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getOp() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final BinaryOperator OP_EDEFAULT = BinaryOperator.EQ; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getOp() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected BinaryOperator op = OP_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getRight() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected Expression right; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | protected BinaryExpressionImpl() { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() { | ||
91 | return SolverLanguagePackage.Literals.BINARY_EXPRESSION; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Expression getLeft() { | ||
101 | return left; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public NotificationChain basicSetLeft(Expression newLeft, NotificationChain msgs) { | ||
110 | Expression oldLeft = left; | ||
111 | left = newLeft; | ||
112 | if (eNotificationRequired()) { | ||
113 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__LEFT, oldLeft, newLeft); | ||
114 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
115 | } | ||
116 | return msgs; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void setLeft(Expression newLeft) { | ||
126 | if (newLeft != left) { | ||
127 | NotificationChain msgs = null; | ||
128 | if (left != null) | ||
129 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__LEFT, null, msgs); | ||
130 | if (newLeft != null) | ||
131 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__LEFT, null, msgs); | ||
132 | msgs = basicSetLeft(newLeft, msgs); | ||
133 | if (msgs != null) msgs.dispatch(); | ||
134 | } | ||
135 | else if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__LEFT, newLeft, newLeft)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public BinaryOperator getOp() { | ||
146 | return op; | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void setOp(BinaryOperator newOp) { | ||
156 | BinaryOperator oldOp = op; | ||
157 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
158 | if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__OP, oldOp, op)); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public Expression getRight() { | ||
169 | return right; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) { | ||
178 | Expression oldRight = right; | ||
179 | right = newRight; | ||
180 | if (eNotificationRequired()) { | ||
181 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, oldRight, newRight); | ||
182 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
183 | } | ||
184 | return msgs; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public void setRight(Expression newRight) { | ||
194 | if (newRight != right) { | ||
195 | NotificationChain msgs = null; | ||
196 | if (right != null) | ||
197 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, null, msgs); | ||
198 | if (newRight != null) | ||
199 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, null, msgs); | ||
200 | msgs = basicSetRight(newRight, msgs); | ||
201 | if (msgs != null) msgs.dispatch(); | ||
202 | } | ||
203 | else if (eNotificationRequired()) | ||
204 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BINARY_EXPRESSION__RIGHT, newRight, newRight)); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
214 | switch (featureID) { | ||
215 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
216 | return basicSetLeft(null, msgs); | ||
217 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
218 | return basicSetRight(null, msgs); | ||
219 | } | ||
220 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
230 | switch (featureID) { | ||
231 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
232 | return getLeft(); | ||
233 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
234 | return getOp(); | ||
235 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
236 | return getRight(); | ||
237 | } | ||
238 | return super.eGet(featureID, resolve, coreType); | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | @Override | ||
247 | public void eSet(int featureID, Object newValue) { | ||
248 | switch (featureID) { | ||
249 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
250 | setLeft((Expression)newValue); | ||
251 | return; | ||
252 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
253 | setOp((BinaryOperator)newValue); | ||
254 | return; | ||
255 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
256 | setRight((Expression)newValue); | ||
257 | return; | ||
258 | } | ||
259 | super.eSet(featureID, newValue); | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | @Override | ||
268 | public void eUnset(int featureID) { | ||
269 | switch (featureID) { | ||
270 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
271 | setLeft((Expression)null); | ||
272 | return; | ||
273 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
274 | setOp(OP_EDEFAULT); | ||
275 | return; | ||
276 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
277 | setRight((Expression)null); | ||
278 | return; | ||
279 | } | ||
280 | super.eUnset(featureID); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public boolean eIsSet(int featureID) { | ||
290 | switch (featureID) { | ||
291 | case SolverLanguagePackage.BINARY_EXPRESSION__LEFT: | ||
292 | return left != null; | ||
293 | case SolverLanguagePackage.BINARY_EXPRESSION__OP: | ||
294 | return op != OP_EDEFAULT; | ||
295 | case SolverLanguagePackage.BINARY_EXPRESSION__RIGHT: | ||
296 | return right != null; | ||
297 | } | ||
298 | return super.eIsSet(featureID); | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | @Override | ||
307 | public String toString() { | ||
308 | if (eIsProxy()) return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (op: "); | ||
312 | result.append(op); | ||
313 | result.append(')'); | ||
314 | return result.toString(); | ||
315 | } | ||
316 | |||
317 | } //BinaryExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java deleted file mode 100644 index 9b4f0385..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedMultiplicityImpl.java +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedMultiplicity; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Bounded Multiplicity</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedMultiplicityImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedMultiplicityImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class BoundedMultiplicityImpl extends MultiplicityImpl implements BoundedMultiplicity { | ||
30 | /** | ||
31 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getLowerBound() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getLowerBound() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getUpperBound() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final int UPPER_BOUND_EDEFAULT = 0; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getUpperBound() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected BoundedMultiplicityImpl() { | ||
76 | super(); | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | protected EClass eStaticClass() { | ||
86 | return SolverLanguagePackage.Literals.BOUNDED_MULTIPLICITY; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public int getLowerBound() { | ||
96 | return lowerBound; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setLowerBound(int newLowerBound) { | ||
106 | int oldLowerBound = lowerBound; | ||
107 | lowerBound = newLowerBound; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public int getUpperBound() { | ||
119 | return upperBound; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public void setUpperBound(int newUpperBound) { | ||
129 | int oldUpperBound = upperBound; | ||
130 | upperBound = newUpperBound; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND, oldUpperBound, upperBound)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
144 | return getLowerBound(); | ||
145 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
146 | return getUpperBound(); | ||
147 | } | ||
148 | return super.eGet(featureID, resolve, coreType); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public void eSet(int featureID, Object newValue) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
160 | setLowerBound((Integer)newValue); | ||
161 | return; | ||
162 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
163 | setUpperBound((Integer)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) { | ||
176 | switch (featureID) { | ||
177 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
178 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
179 | return; | ||
180 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
181 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
182 | return; | ||
183 | } | ||
184 | super.eUnset(featureID); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public boolean eIsSet(int featureID) { | ||
194 | switch (featureID) { | ||
195 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__LOWER_BOUND: | ||
196 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
197 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY__UPPER_BOUND: | ||
198 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
199 | } | ||
200 | return super.eIsSet(featureID); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public String toString() { | ||
210 | if (eIsProxy()) return super.toString(); | ||
211 | |||
212 | StringBuilder result = new StringBuilder(super.toString()); | ||
213 | result.append(" (lowerBound: "); | ||
214 | result.append(lowerBound); | ||
215 | result.append(", upperBound: "); | ||
216 | result.append(upperBound); | ||
217 | result.append(')'); | ||
218 | return result.toString(); | ||
219 | } | ||
220 | |||
221 | } //BoundedMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java deleted file mode 100644 index 7d3a981e..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/BoundedScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Bounded Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedScopeDefinitionImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.BoundedScopeDefinitionImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class BoundedScopeDefinitionImpl extends ScopeDefinitionImpl implements BoundedScopeDefinition { | ||
30 | /** | ||
31 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getLowerBound() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getLowerBound() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getUpperBound() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final int UPPER_BOUND_EDEFAULT = 0; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getUpperBound() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected int upperBound = UPPER_BOUND_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected BoundedScopeDefinitionImpl() { | ||
76 | super(); | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | protected EClass eStaticClass() { | ||
86 | return SolverLanguagePackage.Literals.BOUNDED_SCOPE_DEFINITION; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public int getLowerBound() { | ||
96 | return lowerBound; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setLowerBound(int newLowerBound) { | ||
106 | int oldLowerBound = lowerBound; | ||
107 | lowerBound = newLowerBound; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public int getUpperBound() { | ||
119 | return upperBound; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public void setUpperBound(int newUpperBound) { | ||
129 | int oldUpperBound = upperBound; | ||
130 | upperBound = newUpperBound; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND, oldUpperBound, upperBound)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
144 | return getLowerBound(); | ||
145 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
146 | return getUpperBound(); | ||
147 | } | ||
148 | return super.eGet(featureID, resolve, coreType); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public void eSet(int featureID, Object newValue) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
160 | setLowerBound((Integer)newValue); | ||
161 | return; | ||
162 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
163 | setUpperBound((Integer)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) { | ||
176 | switch (featureID) { | ||
177 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
178 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
179 | return; | ||
180 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
181 | setUpperBound(UPPER_BOUND_EDEFAULT); | ||
182 | return; | ||
183 | } | ||
184 | super.eUnset(featureID); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public boolean eIsSet(int featureID) { | ||
194 | switch (featureID) { | ||
195 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
196 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
197 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION__UPPER_BOUND: | ||
198 | return upperBound != UPPER_BOUND_EDEFAULT; | ||
199 | } | ||
200 | return super.eIsSet(featureID); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public String toString() { | ||
210 | if (eIsProxy()) return super.toString(); | ||
211 | |||
212 | StringBuilder result = new StringBuilder(super.toString()); | ||
213 | result.append(" (lowerBound: "); | ||
214 | result.append(lowerBound); | ||
215 | result.append(", upperBound: "); | ||
216 | result.append(upperBound); | ||
217 | result.append(')'); | ||
218 | return result.toString(); | ||
219 | } | ||
220 | |||
221 | } //BoundedScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java deleted file mode 100644 index bbc2dd4c..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java +++ /dev/null | |||
@@ -1,373 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Call</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#getFunctor <em>Functor</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#isTransitiveClosure <em>Transitive Closure</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#isReflexiveTransitiveClosure <em>Reflexive Transitive Closure</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#getArgumentList <em>Argument List</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class CallImpl extends ExpressionImpl implements Call { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getFunctor() <em>Functor</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getFunctor() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Reference functor; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #isTransitiveClosure() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final boolean TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #isTransitiveClosure() <em>Transitive Closure</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #isTransitiveClosure() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected boolean transitiveClosure = TRANSITIVE_CLOSURE_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The default value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #isReflexiveTransitiveClosure() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected static final boolean REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT = false; | ||
75 | |||
76 | /** | ||
77 | * The cached value of the '{@link #isReflexiveTransitiveClosure() <em>Reflexive Transitive Closure</em>}' attribute. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #isReflexiveTransitiveClosure() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected boolean reflexiveTransitiveClosure = REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
85 | |||
86 | /** | ||
87 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @see #getArgumentList() | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | protected ArgumentList argumentList; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | protected CallImpl() { | ||
102 | super(); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | protected EClass eStaticClass() { | ||
112 | return SolverLanguagePackage.Literals.CALL; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public Reference getFunctor() { | ||
122 | return functor; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | public NotificationChain basicSetFunctor(Reference newFunctor, NotificationChain msgs) { | ||
131 | Reference oldFunctor = functor; | ||
132 | functor = newFunctor; | ||
133 | if (eNotificationRequired()) { | ||
134 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__FUNCTOR, oldFunctor, newFunctor); | ||
135 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
136 | } | ||
137 | return msgs; | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public void setFunctor(Reference newFunctor) { | ||
147 | if (newFunctor != functor) { | ||
148 | NotificationChain msgs = null; | ||
149 | if (functor != null) | ||
150 | msgs = ((InternalEObject)functor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
151 | if (newFunctor != null) | ||
152 | msgs = ((InternalEObject)newFunctor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
153 | msgs = basicSetFunctor(newFunctor, msgs); | ||
154 | if (msgs != null) msgs.dispatch(); | ||
155 | } | ||
156 | else if (eNotificationRequired()) | ||
157 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__FUNCTOR, newFunctor, newFunctor)); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public boolean isTransitiveClosure() { | ||
167 | return transitiveClosure; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public void setTransitiveClosure(boolean newTransitiveClosure) { | ||
177 | boolean oldTransitiveClosure = transitiveClosure; | ||
178 | transitiveClosure = newTransitiveClosure; | ||
179 | if (eNotificationRequired()) | ||
180 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE, oldTransitiveClosure, transitiveClosure)); | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | @Override | ||
189 | public boolean isReflexiveTransitiveClosure() { | ||
190 | return reflexiveTransitiveClosure; | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public void setReflexiveTransitiveClosure(boolean newReflexiveTransitiveClosure) { | ||
200 | boolean oldReflexiveTransitiveClosure = reflexiveTransitiveClosure; | ||
201 | reflexiveTransitiveClosure = newReflexiveTransitiveClosure; | ||
202 | if (eNotificationRequired()) | ||
203 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE, oldReflexiveTransitiveClosure, reflexiveTransitiveClosure)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public ArgumentList getArgumentList() { | ||
213 | return argumentList; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
222 | ArgumentList oldArgumentList = argumentList; | ||
223 | argumentList = newArgumentList; | ||
224 | if (eNotificationRequired()) { | ||
225 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
226 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
227 | } | ||
228 | return msgs; | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void setArgumentList(ArgumentList newArgumentList) { | ||
238 | if (newArgumentList != argumentList) { | ||
239 | NotificationChain msgs = null; | ||
240 | if (argumentList != null) | ||
241 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
242 | if (newArgumentList != null) | ||
243 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
244 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
245 | if (msgs != null) msgs.dispatch(); | ||
246 | } | ||
247 | else if (eNotificationRequired()) | ||
248 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
258 | switch (featureID) { | ||
259 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
260 | return basicSetFunctor(null, msgs); | ||
261 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
262 | return basicSetArgumentList(null, msgs); | ||
263 | } | ||
264 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
274 | switch (featureID) { | ||
275 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
276 | return getFunctor(); | ||
277 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
278 | return isTransitiveClosure(); | ||
279 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
280 | return isReflexiveTransitiveClosure(); | ||
281 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
282 | return getArgumentList(); | ||
283 | } | ||
284 | return super.eGet(featureID, resolve, coreType); | ||
285 | } | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | @Override | ||
293 | public void eSet(int featureID, Object newValue) { | ||
294 | switch (featureID) { | ||
295 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
296 | setFunctor((Reference)newValue); | ||
297 | return; | ||
298 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
299 | setTransitiveClosure((Boolean)newValue); | ||
300 | return; | ||
301 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
302 | setReflexiveTransitiveClosure((Boolean)newValue); | ||
303 | return; | ||
304 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
305 | setArgumentList((ArgumentList)newValue); | ||
306 | return; | ||
307 | } | ||
308 | super.eSet(featureID, newValue); | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | */ | ||
316 | @Override | ||
317 | public void eUnset(int featureID) { | ||
318 | switch (featureID) { | ||
319 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
320 | setFunctor((Reference)null); | ||
321 | return; | ||
322 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
323 | setTransitiveClosure(TRANSITIVE_CLOSURE_EDEFAULT); | ||
324 | return; | ||
325 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
326 | setReflexiveTransitiveClosure(REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT); | ||
327 | return; | ||
328 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
329 | setArgumentList((ArgumentList)null); | ||
330 | return; | ||
331 | } | ||
332 | super.eUnset(featureID); | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public boolean eIsSet(int featureID) { | ||
342 | switch (featureID) { | ||
343 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
344 | return functor != null; | ||
345 | case SolverLanguagePackage.CALL__TRANSITIVE_CLOSURE: | ||
346 | return transitiveClosure != TRANSITIVE_CLOSURE_EDEFAULT; | ||
347 | case SolverLanguagePackage.CALL__REFLEXIVE_TRANSITIVE_CLOSURE: | ||
348 | return reflexiveTransitiveClosure != REFLEXIVE_TRANSITIVE_CLOSURE_EDEFAULT; | ||
349 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
350 | return argumentList != null; | ||
351 | } | ||
352 | return super.eIsSet(featureID); | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public String toString() { | ||
362 | if (eIsProxy()) return super.toString(); | ||
363 | |||
364 | StringBuilder result = new StringBuilder(super.toString()); | ||
365 | result.append(" (transitiveClosure: "); | ||
366 | result.append(transitiveClosure); | ||
367 | result.append(", reflexiveTransitiveClosure: "); | ||
368 | result.append(reflexiveTransitiveClosure); | ||
369 | result.append(')'); | ||
370 | return result.toString(); | ||
371 | } | ||
372 | |||
373 | } //CallImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java deleted file mode 100644 index d6905f3b..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java +++ /dev/null | |||
@@ -1,246 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Case</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CaseImpl#getBody <em>Body</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CaseImpl#getCondition <em>Condition</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class CaseImpl extends ExpressionImpl implements Case { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getBody() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Expression body; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getCondition() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected Expression condition; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected CaseImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return SolverLanguagePackage.Literals.CASE; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public Expression getBody() { | ||
79 | return body; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
88 | Expression oldBody = body; | ||
89 | body = newBody; | ||
90 | if (eNotificationRequired()) { | ||
91 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, oldBody, newBody); | ||
92 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
93 | } | ||
94 | return msgs; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setBody(Expression newBody) { | ||
104 | if (newBody != body) { | ||
105 | NotificationChain msgs = null; | ||
106 | if (body != null) | ||
107 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
108 | if (newBody != null) | ||
109 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
110 | msgs = basicSetBody(newBody, msgs); | ||
111 | if (msgs != null) msgs.dispatch(); | ||
112 | } | ||
113 | else if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, newBody, newBody)); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Expression getCondition() { | ||
124 | return condition; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) { | ||
133 | Expression oldCondition = condition; | ||
134 | condition = newCondition; | ||
135 | if (eNotificationRequired()) { | ||
136 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, oldCondition, newCondition); | ||
137 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
138 | } | ||
139 | return msgs; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setCondition(Expression newCondition) { | ||
149 | if (newCondition != condition) { | ||
150 | NotificationChain msgs = null; | ||
151 | if (condition != null) | ||
152 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
153 | if (newCondition != null) | ||
154 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
155 | msgs = basicSetCondition(newCondition, msgs); | ||
156 | if (msgs != null) msgs.dispatch(); | ||
157 | } | ||
158 | else if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, newCondition, newCondition)); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
169 | switch (featureID) { | ||
170 | case SolverLanguagePackage.CASE__BODY: | ||
171 | return basicSetBody(null, msgs); | ||
172 | case SolverLanguagePackage.CASE__CONDITION: | ||
173 | return basicSetCondition(null, msgs); | ||
174 | } | ||
175 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
185 | switch (featureID) { | ||
186 | case SolverLanguagePackage.CASE__BODY: | ||
187 | return getBody(); | ||
188 | case SolverLanguagePackage.CASE__CONDITION: | ||
189 | return getCondition(); | ||
190 | } | ||
191 | return super.eGet(featureID, resolve, coreType); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public void eSet(int featureID, Object newValue) { | ||
201 | switch (featureID) { | ||
202 | case SolverLanguagePackage.CASE__BODY: | ||
203 | setBody((Expression)newValue); | ||
204 | return; | ||
205 | case SolverLanguagePackage.CASE__CONDITION: | ||
206 | setCondition((Expression)newValue); | ||
207 | return; | ||
208 | } | ||
209 | super.eSet(featureID, newValue); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public void eUnset(int featureID) { | ||
219 | switch (featureID) { | ||
220 | case SolverLanguagePackage.CASE__BODY: | ||
221 | setBody((Expression)null); | ||
222 | return; | ||
223 | case SolverLanguagePackage.CASE__CONDITION: | ||
224 | setCondition((Expression)null); | ||
225 | return; | ||
226 | } | ||
227 | super.eUnset(featureID); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public boolean eIsSet(int featureID) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.CASE__BODY: | ||
239 | return body != null; | ||
240 | case SolverLanguagePackage.CASE__CONDITION: | ||
241 | return condition != null; | ||
242 | } | ||
243 | return super.eIsSet(featureID); | ||
244 | } | ||
245 | |||
246 | } //CaseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CastExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CastExpressionImpl.java deleted file mode 100644 index 39e20e46..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CastExpressionImpl.java +++ /dev/null | |||
@@ -1,241 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.CastExpression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Cast Expression</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CastExpressionImpl#getBody <em>Body</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CastExpressionImpl#getType <em>Type</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class CastExpressionImpl extends ExpressionImpl implements CastExpression { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getBody() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression body; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getType() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected NamedElement type; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected CastExpressionImpl() { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() { | ||
70 | return SolverLanguagePackage.Literals.CAST_EXPRESSION; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public Expression getBody() { | ||
80 | return body; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
89 | Expression oldBody = body; | ||
90 | body = newBody; | ||
91 | if (eNotificationRequired()) { | ||
92 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CAST_EXPRESSION__BODY, oldBody, newBody); | ||
93 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
94 | } | ||
95 | return msgs; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public void setBody(Expression newBody) { | ||
105 | if (newBody != body) { | ||
106 | NotificationChain msgs = null; | ||
107 | if (body != null) | ||
108 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CAST_EXPRESSION__BODY, null, msgs); | ||
109 | if (newBody != null) | ||
110 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CAST_EXPRESSION__BODY, null, msgs); | ||
111 | msgs = basicSetBody(newBody, msgs); | ||
112 | if (msgs != null) msgs.dispatch(); | ||
113 | } | ||
114 | else if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CAST_EXPRESSION__BODY, newBody, newBody)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public NamedElement getType() { | ||
125 | if (type != null && type.eIsProxy()) { | ||
126 | InternalEObject oldType = (InternalEObject)type; | ||
127 | type = (NamedElement)eResolveProxy(oldType); | ||
128 | if (type != oldType) { | ||
129 | if (eNotificationRequired()) | ||
130 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.CAST_EXPRESSION__TYPE, oldType, type)); | ||
131 | } | ||
132 | } | ||
133 | return type; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NamedElement basicGetType() { | ||
142 | return type; | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public void setType(NamedElement newType) { | ||
152 | NamedElement oldType = type; | ||
153 | type = newType; | ||
154 | if (eNotificationRequired()) | ||
155 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CAST_EXPRESSION__TYPE, oldType, type)); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
165 | switch (featureID) { | ||
166 | case SolverLanguagePackage.CAST_EXPRESSION__BODY: | ||
167 | return basicSetBody(null, msgs); | ||
168 | } | ||
169 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
179 | switch (featureID) { | ||
180 | case SolverLanguagePackage.CAST_EXPRESSION__BODY: | ||
181 | return getBody(); | ||
182 | case SolverLanguagePackage.CAST_EXPRESSION__TYPE: | ||
183 | if (resolve) return getType(); | ||
184 | return basicGetType(); | ||
185 | } | ||
186 | return super.eGet(featureID, resolve, coreType); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public void eSet(int featureID, Object newValue) { | ||
196 | switch (featureID) { | ||
197 | case SolverLanguagePackage.CAST_EXPRESSION__BODY: | ||
198 | setBody((Expression)newValue); | ||
199 | return; | ||
200 | case SolverLanguagePackage.CAST_EXPRESSION__TYPE: | ||
201 | setType((NamedElement)newValue); | ||
202 | return; | ||
203 | } | ||
204 | super.eSet(featureID, newValue); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eUnset(int featureID) { | ||
214 | switch (featureID) { | ||
215 | case SolverLanguagePackage.CAST_EXPRESSION__BODY: | ||
216 | setBody((Expression)null); | ||
217 | return; | ||
218 | case SolverLanguagePackage.CAST_EXPRESSION__TYPE: | ||
219 | setType((NamedElement)null); | ||
220 | return; | ||
221 | } | ||
222 | super.eUnset(featureID); | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | @Override | ||
231 | public boolean eIsSet(int featureID) { | ||
232 | switch (featureID) { | ||
233 | case SolverLanguagePackage.CAST_EXPRESSION__BODY: | ||
234 | return body != null; | ||
235 | case SolverLanguagePackage.CAST_EXPRESSION__TYPE: | ||
236 | return type != null; | ||
237 | } | ||
238 | return super.eIsSet(featureID); | ||
239 | } | ||
240 | |||
241 | } //CastExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java deleted file mode 100644 index 9fe48f0b..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java +++ /dev/null | |||
@@ -1,318 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
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 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | import org.eclipse.viatra.solver.language.solverLanguage.ClassDefinition; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Class Definition</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#isAbstract <em>Abstract</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getName <em>Name</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getSuperclasses <em>Superclasses</em>}</li> | ||
38 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassDefinitionImpl#getMembers <em>Members</em>}</li> | ||
39 | * </ul> | ||
40 | * | ||
41 | * @generated | ||
42 | */ | ||
43 | public class ClassDefinitionImpl extends StatementImpl implements ClassDefinition { | ||
44 | /** | ||
45 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #isAbstract() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isAbstract() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getName() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected static final String NAME_EDEFAULT = null; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getName() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected String name = NAME_EDEFAULT; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getSuperclasses() <em>Superclasses</em>}' reference list. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getSuperclasses() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected EList<NamedElement> superclasses; | ||
93 | |||
94 | /** | ||
95 | * The cached value of the '{@link #getMembers() <em>Members</em>}' containment reference list. | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @see #getMembers() | ||
99 | * @generated | ||
100 | * @ordered | ||
101 | */ | ||
102 | protected EList<MemberDefinition> members; | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | protected ClassDefinitionImpl() { | ||
110 | super(); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | protected EClass eStaticClass() { | ||
120 | return SolverLanguagePackage.Literals.CLASS_DEFINITION; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public boolean isAbstract() { | ||
130 | return abstract_; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public void setAbstract(boolean newAbstract) { | ||
140 | boolean oldAbstract = abstract_; | ||
141 | abstract_ = newAbstract; | ||
142 | if (eNotificationRequired()) | ||
143 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT, oldAbstract, abstract_)); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public String getName() { | ||
153 | return name; | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public void setName(String newName) { | ||
163 | String oldName = name; | ||
164 | name = newName; | ||
165 | if (eNotificationRequired()) | ||
166 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__NAME, oldName, name)); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public EList<NamedElement> getSuperclasses() { | ||
176 | if (superclasses == null) { | ||
177 | superclasses = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES); | ||
178 | } | ||
179 | return superclasses; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public EList<MemberDefinition> getMembers() { | ||
189 | if (members == null) { | ||
190 | members = new EObjectContainmentEList<MemberDefinition>(MemberDefinition.class, this, SolverLanguagePackage.CLASS_DEFINITION__MEMBERS); | ||
191 | } | ||
192 | return members; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
202 | switch (featureID) { | ||
203 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
204 | return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); | ||
205 | } | ||
206 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
216 | switch (featureID) { | ||
217 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
218 | return isAbstract(); | ||
219 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
220 | return getName(); | ||
221 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
222 | return getSuperclasses(); | ||
223 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
224 | return getMembers(); | ||
225 | } | ||
226 | return super.eGet(featureID, resolve, coreType); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @SuppressWarnings("unchecked") | ||
235 | @Override | ||
236 | public void eSet(int featureID, Object newValue) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
239 | setAbstract((Boolean)newValue); | ||
240 | return; | ||
241 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
242 | setName((String)newValue); | ||
243 | return; | ||
244 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
245 | getSuperclasses().clear(); | ||
246 | getSuperclasses().addAll((Collection<? extends NamedElement>)newValue); | ||
247 | return; | ||
248 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
249 | getMembers().clear(); | ||
250 | getMembers().addAll((Collection<? extends MemberDefinition>)newValue); | ||
251 | return; | ||
252 | } | ||
253 | super.eSet(featureID, newValue); | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public void eUnset(int featureID) { | ||
263 | switch (featureID) { | ||
264 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
265 | setAbstract(ABSTRACT_EDEFAULT); | ||
266 | return; | ||
267 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
268 | setName(NAME_EDEFAULT); | ||
269 | return; | ||
270 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
271 | getSuperclasses().clear(); | ||
272 | return; | ||
273 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
274 | getMembers().clear(); | ||
275 | return; | ||
276 | } | ||
277 | super.eUnset(featureID); | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public boolean eIsSet(int featureID) { | ||
287 | switch (featureID) { | ||
288 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
289 | return abstract_ != ABSTRACT_EDEFAULT; | ||
290 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
291 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
292 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
293 | return superclasses != null && !superclasses.isEmpty(); | ||
294 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
295 | return members != null && !members.isEmpty(); | ||
296 | } | ||
297 | return super.eIsSet(featureID); | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public String toString() { | ||
307 | if (eIsProxy()) return super.toString(); | ||
308 | |||
309 | StringBuilder result = new StringBuilder(super.toString()); | ||
310 | result.append(" (abstract: "); | ||
311 | result.append(abstract_); | ||
312 | result.append(", name: "); | ||
313 | result.append(name); | ||
314 | result.append(')'); | ||
315 | return result.toString(); | ||
316 | } | ||
317 | |||
318 | } //ClassDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java deleted file mode 100644 index 37cc2e07..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ComparisonImpl.java +++ /dev/null | |||
@@ -1,317 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Comparison; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Comparison</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getLeft <em>Left</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getOp <em>Op</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ComparisonImpl#getRight <em>Right</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class ComparisonImpl extends ExpressionImpl implements Comparison { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getLeft() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Expression left; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getOp() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final BinaryOperator OP_EDEFAULT = BinaryOperator.EQ; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getOp() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected BinaryOperator op = OP_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getRight() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected Expression right; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | protected ComparisonImpl() { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() { | ||
91 | return SolverLanguagePackage.Literals.COMPARISON; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Expression getLeft() { | ||
101 | return left; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public NotificationChain basicSetLeft(Expression newLeft, NotificationChain msgs) { | ||
110 | Expression oldLeft = left; | ||
111 | left = newLeft; | ||
112 | if (eNotificationRequired()) { | ||
113 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__LEFT, oldLeft, newLeft); | ||
114 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
115 | } | ||
116 | return msgs; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void setLeft(Expression newLeft) { | ||
126 | if (newLeft != left) { | ||
127 | NotificationChain msgs = null; | ||
128 | if (left != null) | ||
129 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__LEFT, null, msgs); | ||
130 | if (newLeft != null) | ||
131 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__LEFT, null, msgs); | ||
132 | msgs = basicSetLeft(newLeft, msgs); | ||
133 | if (msgs != null) msgs.dispatch(); | ||
134 | } | ||
135 | else if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__LEFT, newLeft, newLeft)); | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public BinaryOperator getOp() { | ||
146 | return op; | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void setOp(BinaryOperator newOp) { | ||
156 | BinaryOperator oldOp = op; | ||
157 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
158 | if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__OP, oldOp, op)); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public Expression getRight() { | ||
169 | return right; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) { | ||
178 | Expression oldRight = right; | ||
179 | right = newRight; | ||
180 | if (eNotificationRequired()) { | ||
181 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__RIGHT, oldRight, newRight); | ||
182 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
183 | } | ||
184 | return msgs; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public void setRight(Expression newRight) { | ||
194 | if (newRight != right) { | ||
195 | NotificationChain msgs = null; | ||
196 | if (right != null) | ||
197 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__RIGHT, null, msgs); | ||
198 | if (newRight != null) | ||
199 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.COMPARISON__RIGHT, null, msgs); | ||
200 | msgs = basicSetRight(newRight, msgs); | ||
201 | if (msgs != null) msgs.dispatch(); | ||
202 | } | ||
203 | else if (eNotificationRequired()) | ||
204 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.COMPARISON__RIGHT, newRight, newRight)); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
214 | switch (featureID) { | ||
215 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
216 | return basicSetLeft(null, msgs); | ||
217 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
218 | return basicSetRight(null, msgs); | ||
219 | } | ||
220 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
230 | switch (featureID) { | ||
231 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
232 | return getLeft(); | ||
233 | case SolverLanguagePackage.COMPARISON__OP: | ||
234 | return getOp(); | ||
235 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
236 | return getRight(); | ||
237 | } | ||
238 | return super.eGet(featureID, resolve, coreType); | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | @Override | ||
247 | public void eSet(int featureID, Object newValue) { | ||
248 | switch (featureID) { | ||
249 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
250 | setLeft((Expression)newValue); | ||
251 | return; | ||
252 | case SolverLanguagePackage.COMPARISON__OP: | ||
253 | setOp((BinaryOperator)newValue); | ||
254 | return; | ||
255 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
256 | setRight((Expression)newValue); | ||
257 | return; | ||
258 | } | ||
259 | super.eSet(featureID, newValue); | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | @Override | ||
268 | public void eUnset(int featureID) { | ||
269 | switch (featureID) { | ||
270 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
271 | setLeft((Expression)null); | ||
272 | return; | ||
273 | case SolverLanguagePackage.COMPARISON__OP: | ||
274 | setOp(OP_EDEFAULT); | ||
275 | return; | ||
276 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
277 | setRight((Expression)null); | ||
278 | return; | ||
279 | } | ||
280 | super.eUnset(featureID); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public boolean eIsSet(int featureID) { | ||
290 | switch (featureID) { | ||
291 | case SolverLanguagePackage.COMPARISON__LEFT: | ||
292 | return left != null; | ||
293 | case SolverLanguagePackage.COMPARISON__OP: | ||
294 | return op != OP_EDEFAULT; | ||
295 | case SolverLanguagePackage.COMPARISON__RIGHT: | ||
296 | return right != null; | ||
297 | } | ||
298 | return super.eIsSet(featureID); | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | @Override | ||
307 | public String toString() { | ||
308 | if (eIsProxy()) return super.toString(); | ||
309 | |||
310 | StringBuilder result = new StringBuilder(super.toString()); | ||
311 | result.append(" (op: "); | ||
312 | result.append(op); | ||
313 | result.append(')'); | ||
314 | return result.toString(); | ||
315 | } | ||
316 | |||
317 | } //ComparisonImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java deleted file mode 100644 index cc689c0d..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ConjunctionImpl.java +++ /dev/null | |||
@@ -1,152 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Conjunction; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Conjunction</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ConjunctionImpl#getChildren <em>Children</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class ConjunctionImpl extends ExpressionImpl implements Conjunction { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getChildren() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EList<Expression> children; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | protected ConjunctionImpl() { | ||
52 | super(); | ||
53 | } | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | @Override | ||
61 | protected EClass eStaticClass() { | ||
62 | return SolverLanguagePackage.Literals.CONJUNCTION; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | public EList<Expression> getChildren() { | ||
72 | if (children == null) { | ||
73 | children = new EObjectContainmentEList<Expression>(Expression.class, this, SolverLanguagePackage.CONJUNCTION__CHILDREN); | ||
74 | } | ||
75 | return children; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
85 | switch (featureID) { | ||
86 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
87 | return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs); | ||
88 | } | ||
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
101 | return getChildren(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @SuppressWarnings("unchecked") | ||
112 | @Override | ||
113 | public void eSet(int featureID, Object newValue) { | ||
114 | switch (featureID) { | ||
115 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
116 | getChildren().clear(); | ||
117 | getChildren().addAll((Collection<? extends Expression>)newValue); | ||
118 | return; | ||
119 | } | ||
120 | super.eSet(featureID, newValue); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eUnset(int featureID) { | ||
130 | switch (featureID) { | ||
131 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
132 | getChildren().clear(); | ||
133 | return; | ||
134 | } | ||
135 | super.eUnset(featureID); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public boolean eIsSet(int featureID) { | ||
145 | switch (featureID) { | ||
146 | case SolverLanguagePackage.CONJUNCTION__CHILDREN: | ||
147 | return children != null && !children.isEmpty(); | ||
148 | } | ||
149 | return super.eIsSet(featureID); | ||
150 | } | ||
151 | |||
152 | } //ConjunctionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java deleted file mode 100644 index f1ad7bea..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DefaultDefinitionImpl.java +++ /dev/null | |||
@@ -1,247 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Default Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DefaultDefinitionImpl#getHead <em>Head</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DefaultDefinitionImpl#getRange <em>Range</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class DefaultDefinitionImpl extends StatementImpl implements DefaultDefinition { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getHead() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Call head; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRange() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression range; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected DefaultDefinitionImpl() { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() { | ||
70 | return SolverLanguagePackage.Literals.DEFAULT_DEFINITION; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public Call getHead() { | ||
80 | return head; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public NotificationChain basicSetHead(Call newHead, NotificationChain msgs) { | ||
89 | Call oldHead = head; | ||
90 | head = newHead; | ||
91 | if (eNotificationRequired()) { | ||
92 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, oldHead, newHead); | ||
93 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
94 | } | ||
95 | return msgs; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public void setHead(Call newHead) { | ||
105 | if (newHead != head) { | ||
106 | NotificationChain msgs = null; | ||
107 | if (head != null) | ||
108 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, null, msgs); | ||
109 | if (newHead != null) | ||
110 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, null, msgs); | ||
111 | msgs = basicSetHead(newHead, msgs); | ||
112 | if (msgs != null) msgs.dispatch(); | ||
113 | } | ||
114 | else if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__HEAD, newHead, newHead)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public Expression getRange() { | ||
125 | return range; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public NotificationChain basicSetRange(Expression newRange, NotificationChain msgs) { | ||
134 | Expression oldRange = range; | ||
135 | range = newRange; | ||
136 | if (eNotificationRequired()) { | ||
137 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, oldRange, newRange); | ||
138 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
139 | } | ||
140 | return msgs; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setRange(Expression newRange) { | ||
150 | if (newRange != range) { | ||
151 | NotificationChain msgs = null; | ||
152 | if (range != null) | ||
153 | msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, null, msgs); | ||
154 | if (newRange != null) | ||
155 | msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, null, msgs); | ||
156 | msgs = basicSetRange(newRange, msgs); | ||
157 | if (msgs != null) msgs.dispatch(); | ||
158 | } | ||
159 | else if (eNotificationRequired()) | ||
160 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.DEFAULT_DEFINITION__RANGE, newRange, newRange)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
170 | switch (featureID) { | ||
171 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
172 | return basicSetHead(null, msgs); | ||
173 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
174 | return basicSetRange(null, msgs); | ||
175 | } | ||
176 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
186 | switch (featureID) { | ||
187 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
188 | return getHead(); | ||
189 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
190 | return getRange(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) { | ||
202 | switch (featureID) { | ||
203 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
204 | setHead((Call)newValue); | ||
205 | return; | ||
206 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
207 | setRange((Expression)newValue); | ||
208 | return; | ||
209 | } | ||
210 | super.eSet(featureID, newValue); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void eUnset(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
222 | setHead((Call)null); | ||
223 | return; | ||
224 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
225 | setRange((Expression)null); | ||
226 | return; | ||
227 | } | ||
228 | super.eUnset(featureID); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public boolean eIsSet(int featureID) { | ||
238 | switch (featureID) { | ||
239 | case SolverLanguagePackage.DEFAULT_DEFINITION__HEAD: | ||
240 | return head != null; | ||
241 | case SolverLanguagePackage.DEFAULT_DEFINITION__RANGE: | ||
242 | return range != null; | ||
243 | } | ||
244 | return super.eIsSet(featureID); | ||
245 | } | ||
246 | |||
247 | } //DefaultDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java deleted file mode 100644 index 47dd7bcc..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/DisjunctionImpl.java +++ /dev/null | |||
@@ -1,152 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Disjunction; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Disjunction</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.DisjunctionImpl#getChildren <em>Children</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class DisjunctionImpl extends ExpressionImpl implements Disjunction { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getChildren() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EList<Expression> children; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | protected DisjunctionImpl() { | ||
52 | super(); | ||
53 | } | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | @Override | ||
61 | protected EClass eStaticClass() { | ||
62 | return SolverLanguagePackage.Literals.DISJUNCTION; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | public EList<Expression> getChildren() { | ||
72 | if (children == null) { | ||
73 | children = new EObjectContainmentEList<Expression>(Expression.class, this, SolverLanguagePackage.DISJUNCTION__CHILDREN); | ||
74 | } | ||
75 | return children; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
85 | switch (featureID) { | ||
86 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
87 | return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs); | ||
88 | } | ||
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
101 | return getChildren(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @SuppressWarnings("unchecked") | ||
112 | @Override | ||
113 | public void eSet(int featureID, Object newValue) { | ||
114 | switch (featureID) { | ||
115 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
116 | getChildren().clear(); | ||
117 | getChildren().addAll((Collection<? extends Expression>)newValue); | ||
118 | return; | ||
119 | } | ||
120 | super.eSet(featureID, newValue); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eUnset(int featureID) { | ||
130 | switch (featureID) { | ||
131 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
132 | getChildren().clear(); | ||
133 | return; | ||
134 | } | ||
135 | super.eUnset(featureID); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public boolean eIsSet(int featureID) { | ||
145 | switch (featureID) { | ||
146 | case SolverLanguagePackage.DISJUNCTION__CHILDREN: | ||
147 | return children != null && !children.isEmpty(); | ||
148 | } | ||
149 | return super.eIsSet(featureID); | ||
150 | } | ||
151 | |||
152 | } //DisjunctionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java deleted file mode 100644 index 26717519..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/EmptyIntervalLiteralImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.EmptyIntervalLiteral; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Empty Interval Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EmptyIntervalLiteralImpl extends LiteralImpl implements EmptyIntervalLiteral { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected EmptyIntervalLiteralImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.EMPTY_INTERVAL_LITERAL; | ||
36 | } | ||
37 | |||
38 | } //EmptyIntervalLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java deleted file mode 100644 index fdeeae5e..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactMultiplicityImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ExactMultiplicity; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Exact Multiplicity</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExactMultiplicityImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ExactMultiplicityImpl extends MultiplicityImpl implements ExactMultiplicity { | ||
29 | /** | ||
30 | * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getMultiplicity() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int MULTIPLICITY_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getMultiplicity() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int multiplicity = MULTIPLICITY_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected ExactMultiplicityImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SolverLanguagePackage.Literals.EXACT_MULTIPLICITY; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public int getMultiplicity() { | ||
75 | return multiplicity; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setMultiplicity(int newMultiplicity) { | ||
85 | int oldMultiplicity = multiplicity; | ||
86 | multiplicity = newMultiplicity; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY, oldMultiplicity, multiplicity)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
100 | return getMultiplicity(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
114 | setMultiplicity((Integer)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
129 | setMultiplicity(MULTIPLICITY_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.EXACT_MULTIPLICITY__MULTIPLICITY: | ||
144 | return multiplicity != MULTIPLICITY_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (multiplicity: "); | ||
160 | result.append(multiplicity); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //ExactMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java deleted file mode 100644 index d5a375b0..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExactScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.ExactScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Exact Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExactScopeDefinitionImpl#getExactScope <em>Exact Scope</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class ExactScopeDefinitionImpl extends ScopeDefinitionImpl implements ExactScopeDefinition { | ||
29 | /** | ||
30 | * The default value of the '{@link #getExactScope() <em>Exact Scope</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getExactScope() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int EXACT_SCOPE_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getExactScope() <em>Exact Scope</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getExactScope() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int exactScope = EXACT_SCOPE_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected ExactScopeDefinitionImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SolverLanguagePackage.Literals.EXACT_SCOPE_DEFINITION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public int getExactScope() { | ||
75 | return exactScope; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setExactScope(int newExactScope) { | ||
85 | int oldExactScope = exactScope; | ||
86 | exactScope = newExactScope; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE, oldExactScope, exactScope)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
100 | return getExactScope(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
114 | setExactScope((Integer)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
129 | setExactScope(EXACT_SCOPE_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION__EXACT_SCOPE: | ||
144 | return exactScope != EXACT_SCOPE_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (exactScope: "); | ||
160 | result.append(exactScope); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //ExactScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java deleted file mode 100644 index 798b4b68..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionArgumentImpl.java +++ /dev/null | |||
@@ -1,178 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExpressionArgument; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Expression Argument</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExpressionArgumentImpl#getBody <em>Body</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ExpressionArgumentImpl extends ArgumentImpl implements ExpressionArgument { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getBody() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected Expression body; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ExpressionArgumentImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | protected EClass eStaticClass() { | ||
58 | return SolverLanguagePackage.Literals.EXPRESSION_ARGUMENT; | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | public Expression getBody() { | ||
68 | return body; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
77 | Expression oldBody = body; | ||
78 | body = newBody; | ||
79 | if (eNotificationRequired()) { | ||
80 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, oldBody, newBody); | ||
81 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
82 | } | ||
83 | return msgs; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public void setBody(Expression newBody) { | ||
93 | if (newBody != body) { | ||
94 | NotificationChain msgs = null; | ||
95 | if (body != null) | ||
96 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, null, msgs); | ||
97 | if (newBody != null) | ||
98 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, null, msgs); | ||
99 | msgs = basicSetBody(newBody, msgs); | ||
100 | if (msgs != null) msgs.dispatch(); | ||
101 | } | ||
102 | else if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY, newBody, newBody)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
113 | switch (featureID) { | ||
114 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
115 | return basicSetBody(null, msgs); | ||
116 | } | ||
117 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
129 | return getBody(); | ||
130 | } | ||
131 | return super.eGet(featureID, resolve, coreType); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eSet(int featureID, Object newValue) { | ||
141 | switch (featureID) { | ||
142 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
143 | setBody((Expression)newValue); | ||
144 | return; | ||
145 | } | ||
146 | super.eSet(featureID, newValue); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public void eUnset(int featureID) { | ||
156 | switch (featureID) { | ||
157 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
158 | setBody((Expression)null); | ||
159 | return; | ||
160 | } | ||
161 | super.eUnset(featureID); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public boolean eIsSet(int featureID) { | ||
171 | switch (featureID) { | ||
172 | case SolverLanguagePackage.EXPRESSION_ARGUMENT__BODY: | ||
173 | return body != null; | ||
174 | } | ||
175 | return super.eIsSet(featureID); | ||
176 | } | ||
177 | |||
178 | } //ExpressionArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java deleted file mode 100644 index 5b1c5969..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExpressionImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Expression</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public abstract class ExpressionImpl extends StatementImpl implements Expression { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected ExpressionImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.EXPRESSION; | ||
36 | } | ||
37 | |||
38 | } //ExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java deleted file mode 100644 index 2b4efc07..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java +++ /dev/null | |||
@@ -1,291 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.ExternAggregatorDefinition; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Extern Aggregator Definition</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getType <em>Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getName <em>Name</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getInputType <em>Input Type</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class ExternAggregatorDefinitionImpl extends StatementImpl implements ExternAggregatorDefinition { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getType() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected NamedElement type; | ||
42 | |||
43 | /** | ||
44 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final String NAME_EDEFAULT = null; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getName() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected String name = NAME_EDEFAULT; | ||
62 | |||
63 | /** | ||
64 | * The cached value of the '{@link #getInputType() <em>Input Type</em>}' reference. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getInputType() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected NamedElement inputType; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | protected ExternAggregatorDefinitionImpl() { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() { | ||
89 | return SolverLanguagePackage.Literals.EXTERN_AGGREGATOR_DEFINITION; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public NamedElement getType() { | ||
99 | if (type != null && type.eIsProxy()) { | ||
100 | InternalEObject oldType = (InternalEObject)type; | ||
101 | type = (NamedElement)eResolveProxy(oldType); | ||
102 | if (type != oldType) { | ||
103 | if (eNotificationRequired()) | ||
104 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE, oldType, type)); | ||
105 | } | ||
106 | } | ||
107 | return type; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public NamedElement basicGetType() { | ||
116 | return type; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void setType(NamedElement newType) { | ||
126 | NamedElement oldType = type; | ||
127 | type = newType; | ||
128 | if (eNotificationRequired()) | ||
129 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE, oldType, type)); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public String getName() { | ||
139 | return name; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setName(String newName) { | ||
149 | String oldName = name; | ||
150 | name = newName; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME, oldName, name)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public NamedElement getInputType() { | ||
162 | if (inputType != null && inputType.eIsProxy()) { | ||
163 | InternalEObject oldInputType = (InternalEObject)inputType; | ||
164 | inputType = (NamedElement)eResolveProxy(oldInputType); | ||
165 | if (inputType != oldInputType) { | ||
166 | if (eNotificationRequired()) | ||
167 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE, oldInputType, inputType)); | ||
168 | } | ||
169 | } | ||
170 | return inputType; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | public NamedElement basicGetInputType() { | ||
179 | return inputType; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void setInputType(NamedElement newInputType) { | ||
189 | NamedElement oldInputType = inputType; | ||
190 | inputType = newInputType; | ||
191 | if (eNotificationRequired()) | ||
192 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE, oldInputType, inputType)); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
202 | switch (featureID) { | ||
203 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
204 | if (resolve) return getType(); | ||
205 | return basicGetType(); | ||
206 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
207 | return getName(); | ||
208 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
209 | if (resolve) return getInputType(); | ||
210 | return basicGetInputType(); | ||
211 | } | ||
212 | return super.eGet(featureID, resolve, coreType); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eSet(int featureID, Object newValue) { | ||
222 | switch (featureID) { | ||
223 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
224 | setType((NamedElement)newValue); | ||
225 | return; | ||
226 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
227 | setName((String)newValue); | ||
228 | return; | ||
229 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
230 | setInputType((NamedElement)newValue); | ||
231 | return; | ||
232 | } | ||
233 | super.eSet(featureID, newValue); | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | */ | ||
241 | @Override | ||
242 | public void eUnset(int featureID) { | ||
243 | switch (featureID) { | ||
244 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
245 | setType((NamedElement)null); | ||
246 | return; | ||
247 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
248 | setName(NAME_EDEFAULT); | ||
249 | return; | ||
250 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
251 | setInputType((NamedElement)null); | ||
252 | return; | ||
253 | } | ||
254 | super.eUnset(featureID); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public boolean eIsSet(int featureID) { | ||
264 | switch (featureID) { | ||
265 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
266 | return type != null; | ||
267 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
268 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
269 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
270 | return inputType != null; | ||
271 | } | ||
272 | return super.eIsSet(featureID); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public String toString() { | ||
282 | if (eIsProxy()) return super.toString(); | ||
283 | |||
284 | StringBuilder result = new StringBuilder(super.toString()); | ||
285 | result.append(" (name: "); | ||
286 | result.append(name); | ||
287 | result.append(')'); | ||
288 | return result.toString(); | ||
289 | } | ||
290 | |||
291 | } //ExternAggregatorDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternDatatypeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternDatatypeDefinitionImpl.java deleted file mode 100644 index d186fb95..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternDatatypeDefinitionImpl.java +++ /dev/null | |||
@@ -1,208 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.ExternDatatypeDefinition; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Extern Datatype Definition</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternDatatypeDefinitionImpl#getName <em>Name</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternDatatypeDefinitionImpl#getSupertypes <em>Supertypes</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class ExternDatatypeDefinitionImpl extends StatementImpl implements ExternDatatypeDefinition { | ||
37 | /** | ||
38 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getName() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected static final String NAME_EDEFAULT = null; | ||
46 | |||
47 | /** | ||
48 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected String name = NAME_EDEFAULT; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getSupertypes() <em>Supertypes</em>}' reference list. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getSupertypes() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected EList<NamedElement> supertypes; | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | protected ExternDatatypeDefinitionImpl() { | ||
73 | super(); | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | protected EClass eStaticClass() { | ||
83 | return SolverLanguagePackage.Literals.EXTERN_DATATYPE_DEFINITION; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public String getName() { | ||
93 | return name; | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public void setName(String newName) { | ||
103 | String oldName = name; | ||
104 | name = newName; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__NAME, oldName, name)); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public EList<NamedElement> getSupertypes() { | ||
116 | if (supertypes == null) { | ||
117 | supertypes = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__SUPERTYPES); | ||
118 | } | ||
119 | return supertypes; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
129 | switch (featureID) { | ||
130 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__NAME: | ||
131 | return getName(); | ||
132 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__SUPERTYPES: | ||
133 | return getSupertypes(); | ||
134 | } | ||
135 | return super.eGet(featureID, resolve, coreType); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @SuppressWarnings("unchecked") | ||
144 | @Override | ||
145 | public void eSet(int featureID, Object newValue) { | ||
146 | switch (featureID) { | ||
147 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__NAME: | ||
148 | setName((String)newValue); | ||
149 | return; | ||
150 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__SUPERTYPES: | ||
151 | getSupertypes().clear(); | ||
152 | getSupertypes().addAll((Collection<? extends NamedElement>)newValue); | ||
153 | return; | ||
154 | } | ||
155 | super.eSet(featureID, newValue); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void eUnset(int featureID) { | ||
165 | switch (featureID) { | ||
166 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__NAME: | ||
167 | setName(NAME_EDEFAULT); | ||
168 | return; | ||
169 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__SUPERTYPES: | ||
170 | getSupertypes().clear(); | ||
171 | return; | ||
172 | } | ||
173 | super.eUnset(featureID); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public boolean eIsSet(int featureID) { | ||
183 | switch (featureID) { | ||
184 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__NAME: | ||
185 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
186 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION__SUPERTYPES: | ||
187 | return supertypes != null && !supertypes.isEmpty(); | ||
188 | } | ||
189 | return super.eIsSet(featureID); | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public String toString() { | ||
199 | if (eIsProxy()) return super.toString(); | ||
200 | |||
201 | StringBuilder result = new StringBuilder(super.toString()); | ||
202 | result.append(" (name: "); | ||
203 | result.append(name); | ||
204 | result.append(')'); | ||
205 | return result.toString(); | ||
206 | } | ||
207 | |||
208 | } //ExternDatatypeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java deleted file mode 100644 index 97c76273..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternMetricDefinitionImpl.java +++ /dev/null | |||
@@ -1,311 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExternMetricDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Extern Metric Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternMetricDefinitionImpl#getType <em>Type</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternMetricDefinitionImpl#getName <em>Name</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternMetricDefinitionImpl#getArgumentList <em>Argument List</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class ExternMetricDefinitionImpl extends StatementImpl implements ExternMetricDefinition { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getType() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected NamedElement type; | ||
44 | |||
45 | /** | ||
46 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getName() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final String NAME_EDEFAULT = null; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getName() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected String name = NAME_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getArgumentList() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected ArgumentList argumentList; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | protected ExternMetricDefinitionImpl() { | ||
81 | super(); | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | protected EClass eStaticClass() { | ||
91 | return SolverLanguagePackage.Literals.EXTERN_METRIC_DEFINITION; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public NamedElement getType() { | ||
101 | if (type != null && type.eIsProxy()) { | ||
102 | InternalEObject oldType = (InternalEObject)type; | ||
103 | type = (NamedElement)eResolveProxy(oldType); | ||
104 | if (type != oldType) { | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE, oldType, type)); | ||
107 | } | ||
108 | } | ||
109 | return type; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | public NamedElement basicGetType() { | ||
118 | return type; | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void setType(NamedElement newType) { | ||
128 | NamedElement oldType = type; | ||
129 | type = newType; | ||
130 | if (eNotificationRequired()) | ||
131 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE, oldType, type)); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public String getName() { | ||
141 | return name; | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public void setName(String newName) { | ||
151 | String oldName = name; | ||
152 | name = newName; | ||
153 | if (eNotificationRequired()) | ||
154 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__NAME, oldName, name)); | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public ArgumentList getArgumentList() { | ||
164 | return argumentList; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
173 | ArgumentList oldArgumentList = argumentList; | ||
174 | argumentList = newArgumentList; | ||
175 | if (eNotificationRequired()) { | ||
176 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
177 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
178 | } | ||
179 | return msgs; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void setArgumentList(ArgumentList newArgumentList) { | ||
189 | if (newArgumentList != argumentList) { | ||
190 | NotificationChain msgs = null; | ||
191 | if (argumentList != null) | ||
192 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
193 | if (newArgumentList != null) | ||
194 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
195 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
196 | if (msgs != null) msgs.dispatch(); | ||
197 | } | ||
198 | else if (eNotificationRequired()) | ||
199 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
209 | switch (featureID) { | ||
210 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST: | ||
211 | return basicSetArgumentList(null, msgs); | ||
212 | } | ||
213 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
223 | switch (featureID) { | ||
224 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
225 | if (resolve) return getType(); | ||
226 | return basicGetType(); | ||
227 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__NAME: | ||
228 | return getName(); | ||
229 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST: | ||
230 | return getArgumentList(); | ||
231 | } | ||
232 | return super.eGet(featureID, resolve, coreType); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public void eSet(int featureID, Object newValue) { | ||
242 | switch (featureID) { | ||
243 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
244 | setType((NamedElement)newValue); | ||
245 | return; | ||
246 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__NAME: | ||
247 | setName((String)newValue); | ||
248 | return; | ||
249 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST: | ||
250 | setArgumentList((ArgumentList)newValue); | ||
251 | return; | ||
252 | } | ||
253 | super.eSet(featureID, newValue); | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public void eUnset(int featureID) { | ||
263 | switch (featureID) { | ||
264 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
265 | setType((NamedElement)null); | ||
266 | return; | ||
267 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__NAME: | ||
268 | setName(NAME_EDEFAULT); | ||
269 | return; | ||
270 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST: | ||
271 | setArgumentList((ArgumentList)null); | ||
272 | return; | ||
273 | } | ||
274 | super.eUnset(featureID); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public boolean eIsSet(int featureID) { | ||
284 | switch (featureID) { | ||
285 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__TYPE: | ||
286 | return type != null; | ||
287 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__NAME: | ||
288 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
289 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION__ARGUMENT_LIST: | ||
290 | return argumentList != null; | ||
291 | } | ||
292 | return super.eIsSet(featureID); | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public String toString() { | ||
302 | if (eIsProxy()) return super.toString(); | ||
303 | |||
304 | StringBuilder result = new StringBuilder(super.toString()); | ||
305 | result.append(" (name: "); | ||
306 | result.append(name); | ||
307 | result.append(')'); | ||
308 | return result.toString(); | ||
309 | } | ||
310 | |||
311 | } //ExternMetricDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java deleted file mode 100644 index e59fa4e3..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternPredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,248 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ExternPredicateDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Extern Predicate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternPredicateDefinitionImpl#getName <em>Name</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternPredicateDefinitionImpl#getArgumentList <em>Argument List</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class ExternPredicateDefinitionImpl extends StatementImpl implements ExternPredicateDefinition { | ||
33 | /** | ||
34 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getName() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected static final String NAME_EDEFAULT = null; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected String name = NAME_EDEFAULT; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getArgumentList() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected ArgumentList argumentList; | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | protected ExternPredicateDefinitionImpl() { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() { | ||
79 | return SolverLanguagePackage.Literals.EXTERN_PREDICATE_DEFINITION; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public String getName() { | ||
89 | return name; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public void setName(String newName) { | ||
99 | String oldName = name; | ||
100 | name = newName; | ||
101 | if (eNotificationRequired()) | ||
102 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME, oldName, name)); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public ArgumentList getArgumentList() { | ||
112 | return argumentList; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
121 | ArgumentList oldArgumentList = argumentList; | ||
122 | argumentList = newArgumentList; | ||
123 | if (eNotificationRequired()) { | ||
124 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
125 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
126 | } | ||
127 | return msgs; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void setArgumentList(ArgumentList newArgumentList) { | ||
137 | if (newArgumentList != argumentList) { | ||
138 | NotificationChain msgs = null; | ||
139 | if (argumentList != null) | ||
140 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
141 | if (newArgumentList != null) | ||
142 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
143 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
144 | if (msgs != null) msgs.dispatch(); | ||
145 | } | ||
146 | else if (eNotificationRequired()) | ||
147 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
157 | switch (featureID) { | ||
158 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
159 | return basicSetArgumentList(null, msgs); | ||
160 | } | ||
161 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
171 | switch (featureID) { | ||
172 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
173 | return getName(); | ||
174 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
175 | return getArgumentList(); | ||
176 | } | ||
177 | return super.eGet(featureID, resolve, coreType); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public void eSet(int featureID, Object newValue) { | ||
187 | switch (featureID) { | ||
188 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
189 | setName((String)newValue); | ||
190 | return; | ||
191 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
192 | setArgumentList((ArgumentList)newValue); | ||
193 | return; | ||
194 | } | ||
195 | super.eSet(featureID, newValue); | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void eUnset(int featureID) { | ||
205 | switch (featureID) { | ||
206 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
207 | setName(NAME_EDEFAULT); | ||
208 | return; | ||
209 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
210 | setArgumentList((ArgumentList)null); | ||
211 | return; | ||
212 | } | ||
213 | super.eUnset(featureID); | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public boolean eIsSet(int featureID) { | ||
223 | switch (featureID) { | ||
224 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__NAME: | ||
225 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
226 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST: | ||
227 | return argumentList != null; | ||
228 | } | ||
229 | return super.eIsSet(featureID); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public String toString() { | ||
239 | if (eIsProxy()) return super.toString(); | ||
240 | |||
241 | StringBuilder result = new StringBuilder(super.toString()); | ||
242 | result.append(" (name: "); | ||
243 | result.append(name); | ||
244 | result.append(')'); | ||
245 | return result.toString(); | ||
246 | } | ||
247 | |||
248 | } //ExternPredicateDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FunctorImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FunctorImpl.java deleted file mode 100644 index 73bbc04f..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/FunctorImpl.java +++ /dev/null | |||
@@ -1,134 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.util.EList; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Functor; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Functor</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.FunctorImpl#getParameters <em>Parameters</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public abstract class FunctorImpl extends NamedElementImpl implements Functor { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' reference list. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getParameters() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected EList<Variable> parameters; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected FunctorImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | protected EClass eStaticClass() { | ||
58 | return SolverLanguagePackage.Literals.FUNCTOR; | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | public EList<Variable> getParameters() { | ||
68 | if (parameters == null) { | ||
69 | parameters = new EObjectResolvingEList<Variable>(Variable.class, this, SolverLanguagePackage.FUNCTOR__PARAMETERS); | ||
70 | } | ||
71 | return parameters; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | @Override | ||
80 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
81 | switch (featureID) { | ||
82 | case SolverLanguagePackage.FUNCTOR__PARAMETERS: | ||
83 | return getParameters(); | ||
84 | } | ||
85 | return super.eGet(featureID, resolve, coreType); | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | @SuppressWarnings("unchecked") | ||
94 | @Override | ||
95 | public void eSet(int featureID, Object newValue) { | ||
96 | switch (featureID) { | ||
97 | case SolverLanguagePackage.FUNCTOR__PARAMETERS: | ||
98 | getParameters().clear(); | ||
99 | getParameters().addAll((Collection<? extends Variable>)newValue); | ||
100 | return; | ||
101 | } | ||
102 | super.eSet(featureID, newValue); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eUnset(int featureID) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.FUNCTOR__PARAMETERS: | ||
114 | getParameters().clear(); | ||
115 | return; | ||
116 | } | ||
117 | super.eUnset(featureID); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public boolean eIsSet(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.FUNCTOR__PARAMETERS: | ||
129 | return parameters != null && !parameters.isEmpty(); | ||
130 | } | ||
131 | return super.eIsSet(featureID); | ||
132 | } | ||
133 | |||
134 | } //FunctorImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java deleted file mode 100644 index 3c6bb17a..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IfElseImpl.java +++ /dev/null | |||
@@ -1,314 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.IfElse; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>If Else</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getThen <em>Then</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getElse <em>Else</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IfElseImpl#getCondition <em>Condition</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class IfElseImpl extends ExpressionImpl implements IfElse { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getThen() <em>Then</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getThen() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression then; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getElse() <em>Else</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getElse() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression else_; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getCondition() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected Expression condition; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected IfElseImpl() { | ||
70 | super(); | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | protected EClass eStaticClass() { | ||
80 | return SolverLanguagePackage.Literals.IF_ELSE; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public Expression getThen() { | ||
90 | return then; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public NotificationChain basicSetThen(Expression newThen, NotificationChain msgs) { | ||
99 | Expression oldThen = then; | ||
100 | then = newThen; | ||
101 | if (eNotificationRequired()) { | ||
102 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__THEN, oldThen, newThen); | ||
103 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
104 | } | ||
105 | return msgs; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public void setThen(Expression newThen) { | ||
115 | if (newThen != then) { | ||
116 | NotificationChain msgs = null; | ||
117 | if (then != null) | ||
118 | msgs = ((InternalEObject)then).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__THEN, null, msgs); | ||
119 | if (newThen != null) | ||
120 | msgs = ((InternalEObject)newThen).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__THEN, null, msgs); | ||
121 | msgs = basicSetThen(newThen, msgs); | ||
122 | if (msgs != null) msgs.dispatch(); | ||
123 | } | ||
124 | else if (eNotificationRequired()) | ||
125 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__THEN, newThen, newThen)); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Expression getElse() { | ||
135 | return else_; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | public NotificationChain basicSetElse(Expression newElse, NotificationChain msgs) { | ||
144 | Expression oldElse = else_; | ||
145 | else_ = newElse; | ||
146 | if (eNotificationRequired()) { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__ELSE, oldElse, newElse); | ||
148 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
149 | } | ||
150 | return msgs; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setElse(Expression newElse) { | ||
160 | if (newElse != else_) { | ||
161 | NotificationChain msgs = null; | ||
162 | if (else_ != null) | ||
163 | msgs = ((InternalEObject)else_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__ELSE, null, msgs); | ||
164 | if (newElse != null) | ||
165 | msgs = ((InternalEObject)newElse).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__ELSE, null, msgs); | ||
166 | msgs = basicSetElse(newElse, msgs); | ||
167 | if (msgs != null) msgs.dispatch(); | ||
168 | } | ||
169 | else if (eNotificationRequired()) | ||
170 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__ELSE, newElse, newElse)); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public Expression getCondition() { | ||
180 | return condition; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) { | ||
189 | Expression oldCondition = condition; | ||
190 | condition = newCondition; | ||
191 | if (eNotificationRequired()) { | ||
192 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__CONDITION, oldCondition, newCondition); | ||
193 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
194 | } | ||
195 | return msgs; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void setCondition(Expression newCondition) { | ||
205 | if (newCondition != condition) { | ||
206 | NotificationChain msgs = null; | ||
207 | if (condition != null) | ||
208 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__CONDITION, null, msgs); | ||
209 | if (newCondition != null) | ||
210 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.IF_ELSE__CONDITION, null, msgs); | ||
211 | msgs = basicSetCondition(newCondition, msgs); | ||
212 | if (msgs != null) msgs.dispatch(); | ||
213 | } | ||
214 | else if (eNotificationRequired()) | ||
215 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.IF_ELSE__CONDITION, newCondition, newCondition)); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | @Override | ||
224 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
225 | switch (featureID) { | ||
226 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
227 | return basicSetThen(null, msgs); | ||
228 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
229 | return basicSetElse(null, msgs); | ||
230 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
231 | return basicSetCondition(null, msgs); | ||
232 | } | ||
233 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | */ | ||
241 | @Override | ||
242 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
243 | switch (featureID) { | ||
244 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
245 | return getThen(); | ||
246 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
247 | return getElse(); | ||
248 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
249 | return getCondition(); | ||
250 | } | ||
251 | return super.eGet(featureID, resolve, coreType); | ||
252 | } | ||
253 | |||
254 | /** | ||
255 | * <!-- begin-user-doc --> | ||
256 | * <!-- end-user-doc --> | ||
257 | * @generated | ||
258 | */ | ||
259 | @Override | ||
260 | public void eSet(int featureID, Object newValue) { | ||
261 | switch (featureID) { | ||
262 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
263 | setThen((Expression)newValue); | ||
264 | return; | ||
265 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
266 | setElse((Expression)newValue); | ||
267 | return; | ||
268 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
269 | setCondition((Expression)newValue); | ||
270 | return; | ||
271 | } | ||
272 | super.eSet(featureID, newValue); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public void eUnset(int featureID) { | ||
282 | switch (featureID) { | ||
283 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
284 | setThen((Expression)null); | ||
285 | return; | ||
286 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
287 | setElse((Expression)null); | ||
288 | return; | ||
289 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
290 | setCondition((Expression)null); | ||
291 | return; | ||
292 | } | ||
293 | super.eUnset(featureID); | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | */ | ||
301 | @Override | ||
302 | public boolean eIsSet(int featureID) { | ||
303 | switch (featureID) { | ||
304 | case SolverLanguagePackage.IF_ELSE__THEN: | ||
305 | return then != null; | ||
306 | case SolverLanguagePackage.IF_ELSE__ELSE: | ||
307 | return else_ != null; | ||
308 | case SolverLanguagePackage.IF_ELSE__CONDITION: | ||
309 | return condition != null; | ||
310 | } | ||
311 | return super.eIsSet(featureID); | ||
312 | } | ||
313 | |||
314 | } //IfElseImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java deleted file mode 100644 index 348f51df..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InfinityLiteralImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.InfinityLiteral; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Infinity Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class InfinityLiteralImpl extends LiteralImpl implements InfinityLiteral { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected InfinityLiteralImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.INFINITY_LITERAL; | ||
36 | } | ||
37 | |||
38 | } //InfinityLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java deleted file mode 100644 index fab8335a..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/InterpretationImpl.java +++ /dev/null | |||
@@ -1,246 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Interpretation; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Interpretation</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.InterpretationImpl#getBody <em>Body</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.InterpretationImpl#getRange <em>Range</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class InterpretationImpl extends StatementImpl implements Interpretation { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getBody() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Expression body; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getRange() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected Expression range; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected InterpretationImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return SolverLanguagePackage.Literals.INTERPRETATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public Expression getBody() { | ||
79 | return body; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
88 | Expression oldBody = body; | ||
89 | body = newBody; | ||
90 | if (eNotificationRequired()) { | ||
91 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERPRETATION__BODY, oldBody, newBody); | ||
92 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
93 | } | ||
94 | return msgs; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setBody(Expression newBody) { | ||
104 | if (newBody != body) { | ||
105 | NotificationChain msgs = null; | ||
106 | if (body != null) | ||
107 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERPRETATION__BODY, null, msgs); | ||
108 | if (newBody != null) | ||
109 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERPRETATION__BODY, null, msgs); | ||
110 | msgs = basicSetBody(newBody, msgs); | ||
111 | if (msgs != null) msgs.dispatch(); | ||
112 | } | ||
113 | else if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERPRETATION__BODY, newBody, newBody)); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Expression getRange() { | ||
124 | return range; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | public NotificationChain basicSetRange(Expression newRange, NotificationChain msgs) { | ||
133 | Expression oldRange = range; | ||
134 | range = newRange; | ||
135 | if (eNotificationRequired()) { | ||
136 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERPRETATION__RANGE, oldRange, newRange); | ||
137 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
138 | } | ||
139 | return msgs; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setRange(Expression newRange) { | ||
149 | if (newRange != range) { | ||
150 | NotificationChain msgs = null; | ||
151 | if (range != null) | ||
152 | msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERPRETATION__RANGE, null, msgs); | ||
153 | if (newRange != null) | ||
154 | msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERPRETATION__RANGE, null, msgs); | ||
155 | msgs = basicSetRange(newRange, msgs); | ||
156 | if (msgs != null) msgs.dispatch(); | ||
157 | } | ||
158 | else if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERPRETATION__RANGE, newRange, newRange)); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
169 | switch (featureID) { | ||
170 | case SolverLanguagePackage.INTERPRETATION__BODY: | ||
171 | return basicSetBody(null, msgs); | ||
172 | case SolverLanguagePackage.INTERPRETATION__RANGE: | ||
173 | return basicSetRange(null, msgs); | ||
174 | } | ||
175 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
185 | switch (featureID) { | ||
186 | case SolverLanguagePackage.INTERPRETATION__BODY: | ||
187 | return getBody(); | ||
188 | case SolverLanguagePackage.INTERPRETATION__RANGE: | ||
189 | return getRange(); | ||
190 | } | ||
191 | return super.eGet(featureID, resolve, coreType); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public void eSet(int featureID, Object newValue) { | ||
201 | switch (featureID) { | ||
202 | case SolverLanguagePackage.INTERPRETATION__BODY: | ||
203 | setBody((Expression)newValue); | ||
204 | return; | ||
205 | case SolverLanguagePackage.INTERPRETATION__RANGE: | ||
206 | setRange((Expression)newValue); | ||
207 | return; | ||
208 | } | ||
209 | super.eSet(featureID, newValue); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public void eUnset(int featureID) { | ||
219 | switch (featureID) { | ||
220 | case SolverLanguagePackage.INTERPRETATION__BODY: | ||
221 | setBody((Expression)null); | ||
222 | return; | ||
223 | case SolverLanguagePackage.INTERPRETATION__RANGE: | ||
224 | setRange((Expression)null); | ||
225 | return; | ||
226 | } | ||
227 | super.eUnset(featureID); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public boolean eIsSet(int featureID) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.INTERPRETATION__BODY: | ||
239 | return body != null; | ||
240 | case SolverLanguagePackage.INTERPRETATION__RANGE: | ||
241 | return range != null; | ||
242 | } | ||
243 | return super.eIsSet(featureID); | ||
244 | } | ||
245 | |||
246 | } //InterpretationImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java deleted file mode 100644 index a04dae76..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/IntervalImpl.java +++ /dev/null | |||
@@ -1,246 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Interval; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Interval</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.IntervalImpl#getUpperBound <em>Upper Bound</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class IntervalImpl extends ExpressionImpl implements Interval { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getLowerBound() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Expression lowerBound; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getUpperBound() <em>Upper Bound</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getUpperBound() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected Expression upperBound; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected IntervalImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return SolverLanguagePackage.Literals.INTERVAL; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public Expression getLowerBound() { | ||
79 | return lowerBound; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public NotificationChain basicSetLowerBound(Expression newLowerBound, NotificationChain msgs) { | ||
88 | Expression oldLowerBound = lowerBound; | ||
89 | lowerBound = newLowerBound; | ||
90 | if (eNotificationRequired()) { | ||
91 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, oldLowerBound, newLowerBound); | ||
92 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
93 | } | ||
94 | return msgs; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public void setLowerBound(Expression newLowerBound) { | ||
104 | if (newLowerBound != lowerBound) { | ||
105 | NotificationChain msgs = null; | ||
106 | if (lowerBound != null) | ||
107 | msgs = ((InternalEObject)lowerBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
108 | if (newLowerBound != null) | ||
109 | msgs = ((InternalEObject)newLowerBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__LOWER_BOUND, null, msgs); | ||
110 | msgs = basicSetLowerBound(newLowerBound, msgs); | ||
111 | if (msgs != null) msgs.dispatch(); | ||
112 | } | ||
113 | else if (eNotificationRequired()) | ||
114 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__LOWER_BOUND, newLowerBound, newLowerBound)); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public Expression getUpperBound() { | ||
124 | return upperBound; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | public NotificationChain basicSetUpperBound(Expression newUpperBound, NotificationChain msgs) { | ||
133 | Expression oldUpperBound = upperBound; | ||
134 | upperBound = newUpperBound; | ||
135 | if (eNotificationRequired()) { | ||
136 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, oldUpperBound, newUpperBound); | ||
137 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
138 | } | ||
139 | return msgs; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setUpperBound(Expression newUpperBound) { | ||
149 | if (newUpperBound != upperBound) { | ||
150 | NotificationChain msgs = null; | ||
151 | if (upperBound != null) | ||
152 | msgs = ((InternalEObject)upperBound).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
153 | if (newUpperBound != null) | ||
154 | msgs = ((InternalEObject)newUpperBound).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.INTERVAL__UPPER_BOUND, null, msgs); | ||
155 | msgs = basicSetUpperBound(newUpperBound, msgs); | ||
156 | if (msgs != null) msgs.dispatch(); | ||
157 | } | ||
158 | else if (eNotificationRequired()) | ||
159 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.INTERVAL__UPPER_BOUND, newUpperBound, newUpperBound)); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
169 | switch (featureID) { | ||
170 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
171 | return basicSetLowerBound(null, msgs); | ||
172 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
173 | return basicSetUpperBound(null, msgs); | ||
174 | } | ||
175 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
185 | switch (featureID) { | ||
186 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
187 | return getLowerBound(); | ||
188 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
189 | return getUpperBound(); | ||
190 | } | ||
191 | return super.eGet(featureID, resolve, coreType); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public void eSet(int featureID, Object newValue) { | ||
201 | switch (featureID) { | ||
202 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
203 | setLowerBound((Expression)newValue); | ||
204 | return; | ||
205 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
206 | setUpperBound((Expression)newValue); | ||
207 | return; | ||
208 | } | ||
209 | super.eSet(featureID, newValue); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public void eUnset(int featureID) { | ||
219 | switch (featureID) { | ||
220 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
221 | setLowerBound((Expression)null); | ||
222 | return; | ||
223 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
224 | setUpperBound((Expression)null); | ||
225 | return; | ||
226 | } | ||
227 | super.eUnset(featureID); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public boolean eIsSet(int featureID) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.INTERVAL__LOWER_BOUND: | ||
239 | return lowerBound != null; | ||
240 | case SolverLanguagePackage.INTERVAL__UPPER_BOUND: | ||
241 | return upperBound != null; | ||
242 | } | ||
243 | return super.eIsSet(featureID); | ||
244 | } | ||
245 | |||
246 | } //IntervalImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetBindingImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetBindingImpl.java deleted file mode 100644 index 9788c44d..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetBindingImpl.java +++ /dev/null | |||
@@ -1,248 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.LetBinding; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Let Binding</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LetBindingImpl#getVariable <em>Variable</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LetBindingImpl#getValue <em>Value</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class LetBindingImpl extends MinimalEObjectImpl.Container implements LetBinding { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getVariable() <em>Variable</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getVariable() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected NamedElement variable; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getValue() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression value; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected LetBindingImpl() { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() { | ||
71 | return SolverLanguagePackage.Literals.LET_BINDING; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | @Override | ||
80 | public NamedElement getVariable() { | ||
81 | return variable; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public NotificationChain basicSetVariable(NamedElement newVariable, NotificationChain msgs) { | ||
90 | NamedElement oldVariable = variable; | ||
91 | variable = newVariable; | ||
92 | if (eNotificationRequired()) { | ||
93 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET_BINDING__VARIABLE, oldVariable, newVariable); | ||
94 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
95 | } | ||
96 | return msgs; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setVariable(NamedElement newVariable) { | ||
106 | if (newVariable != variable) { | ||
107 | NotificationChain msgs = null; | ||
108 | if (variable != null) | ||
109 | msgs = ((InternalEObject)variable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET_BINDING__VARIABLE, null, msgs); | ||
110 | if (newVariable != null) | ||
111 | msgs = ((InternalEObject)newVariable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET_BINDING__VARIABLE, null, msgs); | ||
112 | msgs = basicSetVariable(newVariable, msgs); | ||
113 | if (msgs != null) msgs.dispatch(); | ||
114 | } | ||
115 | else if (eNotificationRequired()) | ||
116 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET_BINDING__VARIABLE, newVariable, newVariable)); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Expression getValue() { | ||
126 | return value; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | public NotificationChain basicSetValue(Expression newValue, NotificationChain msgs) { | ||
135 | Expression oldValue = value; | ||
136 | value = newValue; | ||
137 | if (eNotificationRequired()) { | ||
138 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET_BINDING__VALUE, oldValue, newValue); | ||
139 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
140 | } | ||
141 | return msgs; | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public void setValue(Expression newValue) { | ||
151 | if (newValue != value) { | ||
152 | NotificationChain msgs = null; | ||
153 | if (value != null) | ||
154 | msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET_BINDING__VALUE, null, msgs); | ||
155 | if (newValue != null) | ||
156 | msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET_BINDING__VALUE, null, msgs); | ||
157 | msgs = basicSetValue(newValue, msgs); | ||
158 | if (msgs != null) msgs.dispatch(); | ||
159 | } | ||
160 | else if (eNotificationRequired()) | ||
161 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET_BINDING__VALUE, newValue, newValue)); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
171 | switch (featureID) { | ||
172 | case SolverLanguagePackage.LET_BINDING__VARIABLE: | ||
173 | return basicSetVariable(null, msgs); | ||
174 | case SolverLanguagePackage.LET_BINDING__VALUE: | ||
175 | return basicSetValue(null, msgs); | ||
176 | } | ||
177 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
187 | switch (featureID) { | ||
188 | case SolverLanguagePackage.LET_BINDING__VARIABLE: | ||
189 | return getVariable(); | ||
190 | case SolverLanguagePackage.LET_BINDING__VALUE: | ||
191 | return getValue(); | ||
192 | } | ||
193 | return super.eGet(featureID, resolve, coreType); | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | @Override | ||
202 | public void eSet(int featureID, Object newValue) { | ||
203 | switch (featureID) { | ||
204 | case SolverLanguagePackage.LET_BINDING__VARIABLE: | ||
205 | setVariable((NamedElement)newValue); | ||
206 | return; | ||
207 | case SolverLanguagePackage.LET_BINDING__VALUE: | ||
208 | setValue((Expression)newValue); | ||
209 | return; | ||
210 | } | ||
211 | super.eSet(featureID, newValue); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public void eUnset(int featureID) { | ||
221 | switch (featureID) { | ||
222 | case SolverLanguagePackage.LET_BINDING__VARIABLE: | ||
223 | setVariable((NamedElement)null); | ||
224 | return; | ||
225 | case SolverLanguagePackage.LET_BINDING__VALUE: | ||
226 | setValue((Expression)null); | ||
227 | return; | ||
228 | } | ||
229 | super.eUnset(featureID); | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | @Override | ||
238 | public boolean eIsSet(int featureID) { | ||
239 | switch (featureID) { | ||
240 | case SolverLanguagePackage.LET_BINDING__VARIABLE: | ||
241 | return variable != null; | ||
242 | case SolverLanguagePackage.LET_BINDING__VALUE: | ||
243 | return value != null; | ||
244 | } | ||
245 | return super.eIsSet(featureID); | ||
246 | } | ||
247 | |||
248 | } //LetBindingImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetImpl.java deleted file mode 100644 index 841c74c7..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LetImpl.java +++ /dev/null | |||
@@ -1,224 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
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 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.Let; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.LetBinding; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Let</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LetImpl#getBindings <em>Bindings</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LetImpl#getBody <em>Body</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class LetImpl extends ExpressionImpl implements Let { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getBindings() <em>Bindings</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getBindings() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<LetBinding> bindings; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getBody() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected Expression body; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected LetImpl() { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() { | ||
77 | return SolverLanguagePackage.Literals.LET; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public EList<LetBinding> getBindings() { | ||
87 | if (bindings == null) { | ||
88 | bindings = new EObjectContainmentEList<LetBinding>(LetBinding.class, this, SolverLanguagePackage.LET__BINDINGS); | ||
89 | } | ||
90 | return bindings; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public Expression getBody() { | ||
100 | return body; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
109 | Expression oldBody = body; | ||
110 | body = newBody; | ||
111 | if (eNotificationRequired()) { | ||
112 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET__BODY, oldBody, newBody); | ||
113 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
114 | } | ||
115 | return msgs; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public void setBody(Expression newBody) { | ||
125 | if (newBody != body) { | ||
126 | NotificationChain msgs = null; | ||
127 | if (body != null) | ||
128 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET__BODY, null, msgs); | ||
129 | if (newBody != null) | ||
130 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.LET__BODY, null, msgs); | ||
131 | msgs = basicSetBody(newBody, msgs); | ||
132 | if (msgs != null) msgs.dispatch(); | ||
133 | } | ||
134 | else if (eNotificationRequired()) | ||
135 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LET__BODY, newBody, newBody)); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
145 | switch (featureID) { | ||
146 | case SolverLanguagePackage.LET__BINDINGS: | ||
147 | return ((InternalEList<?>)getBindings()).basicRemove(otherEnd, msgs); | ||
148 | case SolverLanguagePackage.LET__BODY: | ||
149 | return basicSetBody(null, msgs); | ||
150 | } | ||
151 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
161 | switch (featureID) { | ||
162 | case SolverLanguagePackage.LET__BINDINGS: | ||
163 | return getBindings(); | ||
164 | case SolverLanguagePackage.LET__BODY: | ||
165 | return getBody(); | ||
166 | } | ||
167 | return super.eGet(featureID, resolve, coreType); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @SuppressWarnings("unchecked") | ||
176 | @Override | ||
177 | public void eSet(int featureID, Object newValue) { | ||
178 | switch (featureID) { | ||
179 | case SolverLanguagePackage.LET__BINDINGS: | ||
180 | getBindings().clear(); | ||
181 | getBindings().addAll((Collection<? extends LetBinding>)newValue); | ||
182 | return; | ||
183 | case SolverLanguagePackage.LET__BODY: | ||
184 | setBody((Expression)newValue); | ||
185 | return; | ||
186 | } | ||
187 | super.eSet(featureID, newValue); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public void eUnset(int featureID) { | ||
197 | switch (featureID) { | ||
198 | case SolverLanguagePackage.LET__BINDINGS: | ||
199 | getBindings().clear(); | ||
200 | return; | ||
201 | case SolverLanguagePackage.LET__BODY: | ||
202 | setBody((Expression)null); | ||
203 | return; | ||
204 | } | ||
205 | super.eUnset(featureID); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public boolean eIsSet(int featureID) { | ||
215 | switch (featureID) { | ||
216 | case SolverLanguagePackage.LET__BINDINGS: | ||
217 | return bindings != null && !bindings.isEmpty(); | ||
218 | case SolverLanguagePackage.LET__BODY: | ||
219 | return body != null; | ||
220 | } | ||
221 | return super.eIsSet(featureID); | ||
222 | } | ||
223 | |||
224 | } //LetImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java deleted file mode 100644 index 671fa305..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LiteralImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Literal</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class LiteralImpl extends ExpressionImpl implements Literal { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected LiteralImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.LITERAL; | ||
36 | } | ||
37 | |||
38 | } //LiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LocalVariablesImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LocalVariablesImpl.java deleted file mode 100644 index e34a61c6..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LocalVariablesImpl.java +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.LocalVariables; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Local Variables</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LocalVariablesImpl#getVariables <em>Variables</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class LocalVariablesImpl extends MinimalEObjectImpl.Container implements LocalVariables { | ||
38 | /** | ||
39 | * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getVariables() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected EList<NamedElement> variables; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected LocalVariablesImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return SolverLanguagePackage.Literals.LOCAL_VARIABLES; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public EList<NamedElement> getVariables() { | ||
74 | if (variables == null) { | ||
75 | variables = new EObjectContainmentEList<NamedElement>(NamedElement.class, this, SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES); | ||
76 | } | ||
77 | return variables; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
87 | switch (featureID) { | ||
88 | case SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES: | ||
89 | return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs); | ||
90 | } | ||
91 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
101 | switch (featureID) { | ||
102 | case SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES: | ||
103 | return getVariables(); | ||
104 | } | ||
105 | return super.eGet(featureID, resolve, coreType); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @SuppressWarnings("unchecked") | ||
114 | @Override | ||
115 | public void eSet(int featureID, Object newValue) { | ||
116 | switch (featureID) { | ||
117 | case SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES: | ||
118 | getVariables().clear(); | ||
119 | getVariables().addAll((Collection<? extends NamedElement>)newValue); | ||
120 | return; | ||
121 | } | ||
122 | super.eSet(featureID, newValue); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eUnset(int featureID) { | ||
132 | switch (featureID) { | ||
133 | case SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES: | ||
134 | getVariables().clear(); | ||
135 | return; | ||
136 | } | ||
137 | super.eUnset(featureID); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public boolean eIsSet(int featureID) { | ||
147 | switch (featureID) { | ||
148 | case SolverLanguagePackage.LOCAL_VARIABLES__VARIABLES: | ||
149 | return variables != null && !variables.isEmpty(); | ||
150 | } | ||
151 | return super.eIsSet(featureID); | ||
152 | } | ||
153 | |||
154 | } //LocalVariablesImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java deleted file mode 100644 index 602edee1..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LogicLiteralImpl.java +++ /dev/null | |||
@@ -1,166 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.LogicLiteral; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.LogicValue; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Logic Literal</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LogicLiteralImpl#getValue <em>Value</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class LogicLiteralImpl extends LiteralImpl implements LogicLiteral { | ||
30 | /** | ||
31 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getValue() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final LogicValue VALUE_EDEFAULT = LogicValue.TRUE; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getValue() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected LogicValue value = VALUE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected LogicLiteralImpl() { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() { | ||
66 | return SolverLanguagePackage.Literals.LOGIC_LITERAL; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | @Override | ||
75 | public LogicValue getValue() { | ||
76 | return value; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public void setValue(LogicValue newValue) { | ||
86 | LogicValue oldValue = value; | ||
87 | value = newValue == null ? VALUE_EDEFAULT : newValue; | ||
88 | if (eNotificationRequired()) | ||
89 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LOGIC_LITERAL__VALUE, oldValue, value)); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
101 | return getValue(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public void eSet(int featureID, Object newValue) { | ||
113 | switch (featureID) { | ||
114 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
115 | setValue((LogicValue)newValue); | ||
116 | return; | ||
117 | } | ||
118 | super.eSet(featureID, newValue); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void eUnset(int featureID) { | ||
128 | switch (featureID) { | ||
129 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
130 | setValue(VALUE_EDEFAULT); | ||
131 | return; | ||
132 | } | ||
133 | super.eUnset(featureID); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public boolean eIsSet(int featureID) { | ||
143 | switch (featureID) { | ||
144 | case SolverLanguagePackage.LOGIC_LITERAL__VALUE: | ||
145 | return value != VALUE_EDEFAULT; | ||
146 | } | ||
147 | return super.eIsSet(featureID); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public String toString() { | ||
157 | if (eIsProxy()) return super.toString(); | ||
158 | |||
159 | StringBuilder result = new StringBuilder(super.toString()); | ||
160 | result.append(" (value: "); | ||
161 | result.append(value); | ||
162 | result.append(')'); | ||
163 | return result.toString(); | ||
164 | } | ||
165 | |||
166 | } //LogicLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java deleted file mode 100644 index 0e33864d..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/LowerBoundedScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.LowerBoundedScopeDefinition; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Lower Bounded Scope Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.LowerBoundedScopeDefinitionImpl#getLowerBound <em>Lower Bound</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class LowerBoundedScopeDefinitionImpl extends ScopeDefinitionImpl implements LowerBoundedScopeDefinition { | ||
29 | /** | ||
30 | * The default value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getLowerBound() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final int LOWER_BOUND_EDEFAULT = 0; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getLowerBound() <em>Lower Bound</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getLowerBound() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected int lowerBound = LOWER_BOUND_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected LowerBoundedScopeDefinitionImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SolverLanguagePackage.Literals.LOWER_BOUNDED_SCOPE_DEFINITION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public int getLowerBound() { | ||
75 | return lowerBound; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setLowerBound(int newLowerBound) { | ||
85 | int oldLowerBound = lowerBound; | ||
86 | lowerBound = newLowerBound; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND, oldLowerBound, lowerBound)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
100 | return getLowerBound(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
114 | setLowerBound((Integer)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
129 | setLowerBound(LOWER_BOUND_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND: | ||
144 | return lowerBound != LOWER_BOUND_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (lowerBound: "); | ||
160 | result.append(lowerBound); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //LowerBoundedScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java deleted file mode 100644 index 20a59027..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ManyMultiplicityImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.ManyMultiplicity; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Many Multiplicity</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class ManyMultiplicityImpl extends MultiplicityImpl implements ManyMultiplicity { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected ManyMultiplicityImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.MANY_MULTIPLICITY; | ||
36 | } | ||
37 | |||
38 | } //ManyMultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java deleted file mode 100644 index f632faa4..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java +++ /dev/null | |||
@@ -1,430 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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.MemberDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Member Definition</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#isContainment <em>Containment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getType <em>Type</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getName <em>Name</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getOpposite <em>Opposite</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class MemberDefinitionImpl extends MinimalEObjectImpl.Container implements MemberDefinition { | ||
38 | /** | ||
39 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #isContainment() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
47 | |||
48 | /** | ||
49 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #isContainment() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
57 | |||
58 | /** | ||
59 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getType() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected NamedElement type; | ||
67 | |||
68 | /** | ||
69 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getMultiplicity() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected Multiplicity multiplicity; | ||
77 | |||
78 | /** | ||
79 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @see #getName() | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | protected static final String NAME_EDEFAULT = null; | ||
87 | |||
88 | /** | ||
89 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @see #getName() | ||
93 | * @generated | ||
94 | * @ordered | ||
95 | */ | ||
96 | protected String name = NAME_EDEFAULT; | ||
97 | |||
98 | /** | ||
99 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @see #getOpposite() | ||
103 | * @generated | ||
104 | * @ordered | ||
105 | */ | ||
106 | protected NamedElement opposite; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | protected MemberDefinitionImpl() { | ||
114 | super(); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | protected EClass eStaticClass() { | ||
124 | return SolverLanguagePackage.Literals.MEMBER_DEFINITION; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public boolean isContainment() { | ||
134 | return containment; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public void setContainment(boolean newContainment) { | ||
144 | boolean oldContainment = containment; | ||
145 | containment = newContainment; | ||
146 | if (eNotificationRequired()) | ||
147 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT, oldContainment, containment)); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public NamedElement getType() { | ||
157 | if (type != null && type.eIsProxy()) { | ||
158 | InternalEObject oldType = (InternalEObject)type; | ||
159 | type = (NamedElement)eResolveProxy(oldType); | ||
160 | if (type != oldType) { | ||
161 | if (eNotificationRequired()) | ||
162 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
163 | } | ||
164 | } | ||
165 | return type; | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | public NamedElement basicGetType() { | ||
174 | return type; | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | @Override | ||
183 | public void setType(NamedElement newType) { | ||
184 | NamedElement oldType = type; | ||
185 | type = newType; | ||
186 | if (eNotificationRequired()) | ||
187 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public Multiplicity getMultiplicity() { | ||
197 | return multiplicity; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) { | ||
206 | Multiplicity oldMultiplicity = multiplicity; | ||
207 | multiplicity = newMultiplicity; | ||
208 | if (eNotificationRequired()) { | ||
209 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
210 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
211 | } | ||
212 | return msgs; | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void setMultiplicity(Multiplicity newMultiplicity) { | ||
222 | if (newMultiplicity != multiplicity) { | ||
223 | NotificationChain msgs = null; | ||
224 | if (multiplicity != null) | ||
225 | msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, null, msgs); | ||
226 | if (newMultiplicity != null) | ||
227 | msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__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.MEMBER_DEFINITION__MULTIPLICITY, newMultiplicity, newMultiplicity)); | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public String getName() { | ||
242 | return name; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public void setName(String newName) { | ||
252 | String oldName = name; | ||
253 | name = newName; | ||
254 | if (eNotificationRequired()) | ||
255 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__NAME, oldName, name)); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public NamedElement getOpposite() { | ||
265 | if (opposite != null && opposite.eIsProxy()) { | ||
266 | InternalEObject oldOpposite = (InternalEObject)opposite; | ||
267 | opposite = (NamedElement)eResolveProxy(oldOpposite); | ||
268 | if (opposite != oldOpposite) { | ||
269 | if (eNotificationRequired()) | ||
270 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
271 | } | ||
272 | } | ||
273 | return opposite; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | public NamedElement basicGetOpposite() { | ||
282 | return opposite; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public void setOpposite(NamedElement newOpposite) { | ||
292 | NamedElement oldOpposite = opposite; | ||
293 | opposite = newOpposite; | ||
294 | if (eNotificationRequired()) | ||
295 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | @Override | ||
304 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
305 | switch (featureID) { | ||
306 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
307 | return basicSetMultiplicity(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 | switch (featureID) { | ||
320 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
321 | return isContainment(); | ||
322 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
323 | if (resolve) return getType(); | ||
324 | return basicGetType(); | ||
325 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
326 | return getMultiplicity(); | ||
327 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
328 | return getName(); | ||
329 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
330 | if (resolve) return getOpposite(); | ||
331 | return basicGetOpposite(); | ||
332 | } | ||
333 | return super.eGet(featureID, resolve, coreType); | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | */ | ||
341 | @Override | ||
342 | public void eSet(int featureID, Object newValue) { | ||
343 | switch (featureID) { | ||
344 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
345 | setContainment((Boolean)newValue); | ||
346 | return; | ||
347 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
348 | setType((NamedElement)newValue); | ||
349 | return; | ||
350 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
351 | setMultiplicity((Multiplicity)newValue); | ||
352 | return; | ||
353 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
354 | setName((String)newValue); | ||
355 | return; | ||
356 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
357 | setOpposite((NamedElement)newValue); | ||
358 | return; | ||
359 | } | ||
360 | super.eSet(featureID, newValue); | ||
361 | } | ||
362 | |||
363 | /** | ||
364 | * <!-- begin-user-doc --> | ||
365 | * <!-- end-user-doc --> | ||
366 | * @generated | ||
367 | */ | ||
368 | @Override | ||
369 | public void eUnset(int featureID) { | ||
370 | switch (featureID) { | ||
371 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
372 | setContainment(CONTAINMENT_EDEFAULT); | ||
373 | return; | ||
374 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
375 | setType((NamedElement)null); | ||
376 | return; | ||
377 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
378 | setMultiplicity((Multiplicity)null); | ||
379 | return; | ||
380 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
381 | setName(NAME_EDEFAULT); | ||
382 | return; | ||
383 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
384 | setOpposite((NamedElement)null); | ||
385 | return; | ||
386 | } | ||
387 | super.eUnset(featureID); | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public boolean eIsSet(int featureID) { | ||
397 | switch (featureID) { | ||
398 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
399 | return containment != CONTAINMENT_EDEFAULT; | ||
400 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
401 | return type != null; | ||
402 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
403 | return multiplicity != null; | ||
404 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
405 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
406 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
407 | return opposite != null; | ||
408 | } | ||
409 | return super.eIsSet(featureID); | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public String toString() { | ||
419 | if (eIsProxy()) return super.toString(); | ||
420 | |||
421 | StringBuilder result = new StringBuilder(super.toString()); | ||
422 | result.append(" (containment: "); | ||
423 | result.append(containment); | ||
424 | result.append(", name: "); | ||
425 | result.append(name); | ||
426 | result.append(')'); | ||
427 | return result.toString(); | ||
428 | } | ||
429 | |||
430 | } //MemberDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java deleted file mode 100644 index d441b8c1..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricDefinitionImpl.java +++ /dev/null | |||
@@ -1,309 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.MetricDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Metric Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getHead <em>Head</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getBody <em>Body</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricDefinitionImpl#getType <em>Type</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class MetricDefinitionImpl extends StatementImpl implements MetricDefinition { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getHead() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Expression head; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getBody() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression body; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getType() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected NamedElement type; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | protected MetricDefinitionImpl() { | ||
71 | super(); | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | @Override | ||
80 | protected EClass eStaticClass() { | ||
81 | return SolverLanguagePackage.Literals.METRIC_DEFINITION; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public Expression getHead() { | ||
91 | return head; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public NotificationChain basicSetHead(Expression newHead, NotificationChain msgs) { | ||
100 | Expression oldHead = head; | ||
101 | head = newHead; | ||
102 | if (eNotificationRequired()) { | ||
103 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__HEAD, oldHead, newHead); | ||
104 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
105 | } | ||
106 | return msgs; | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public void setHead(Expression newHead) { | ||
116 | if (newHead != head) { | ||
117 | NotificationChain msgs = null; | ||
118 | if (head != null) | ||
119 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__HEAD, null, msgs); | ||
120 | if (newHead != null) | ||
121 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__HEAD, null, msgs); | ||
122 | msgs = basicSetHead(newHead, msgs); | ||
123 | if (msgs != null) msgs.dispatch(); | ||
124 | } | ||
125 | else if (eNotificationRequired()) | ||
126 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__HEAD, newHead, newHead)); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public Expression getBody() { | ||
136 | return body; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
145 | Expression oldBody = body; | ||
146 | body = newBody; | ||
147 | if (eNotificationRequired()) { | ||
148 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__BODY, oldBody, newBody); | ||
149 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
150 | } | ||
151 | return msgs; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | @Override | ||
160 | public void setBody(Expression newBody) { | ||
161 | if (newBody != body) { | ||
162 | NotificationChain msgs = null; | ||
163 | if (body != null) | ||
164 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__BODY, null, msgs); | ||
165 | if (newBody != null) | ||
166 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.METRIC_DEFINITION__BODY, null, msgs); | ||
167 | msgs = basicSetBody(newBody, msgs); | ||
168 | if (msgs != null) msgs.dispatch(); | ||
169 | } | ||
170 | else if (eNotificationRequired()) | ||
171 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__BODY, newBody, newBody)); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public NamedElement getType() { | ||
181 | if (type != null && type.eIsProxy()) { | ||
182 | InternalEObject oldType = (InternalEObject)type; | ||
183 | type = (NamedElement)eResolveProxy(oldType); | ||
184 | if (type != oldType) { | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.METRIC_DEFINITION__TYPE, oldType, type)); | ||
187 | } | ||
188 | } | ||
189 | return type; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | public NamedElement basicGetType() { | ||
198 | return type; | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | @Override | ||
207 | public void setType(NamedElement newType) { | ||
208 | NamedElement oldType = type; | ||
209 | type = newType; | ||
210 | if (eNotificationRequired()) | ||
211 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC_DEFINITION__TYPE, oldType, type)); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
221 | switch (featureID) { | ||
222 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
223 | return basicSetHead(null, msgs); | ||
224 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
225 | return basicSetBody(null, msgs); | ||
226 | } | ||
227 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
237 | switch (featureID) { | ||
238 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
239 | return getHead(); | ||
240 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
241 | return getBody(); | ||
242 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
243 | if (resolve) return getType(); | ||
244 | return basicGetType(); | ||
245 | } | ||
246 | return super.eGet(featureID, resolve, coreType); | ||
247 | } | ||
248 | |||
249 | /** | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | */ | ||
254 | @Override | ||
255 | public void eSet(int featureID, Object newValue) { | ||
256 | switch (featureID) { | ||
257 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
258 | setHead((Expression)newValue); | ||
259 | return; | ||
260 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
261 | setBody((Expression)newValue); | ||
262 | return; | ||
263 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
264 | setType((NamedElement)newValue); | ||
265 | return; | ||
266 | } | ||
267 | super.eSet(featureID, newValue); | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | @Override | ||
276 | public void eUnset(int featureID) { | ||
277 | switch (featureID) { | ||
278 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
279 | setHead((Expression)null); | ||
280 | return; | ||
281 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
282 | setBody((Expression)null); | ||
283 | return; | ||
284 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
285 | setType((NamedElement)null); | ||
286 | return; | ||
287 | } | ||
288 | super.eUnset(featureID); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public boolean eIsSet(int featureID) { | ||
298 | switch (featureID) { | ||
299 | case SolverLanguagePackage.METRIC_DEFINITION__HEAD: | ||
300 | return head != null; | ||
301 | case SolverLanguagePackage.METRIC_DEFINITION__BODY: | ||
302 | return body != null; | ||
303 | case SolverLanguagePackage.METRIC_DEFINITION__TYPE: | ||
304 | return type != null; | ||
305 | } | ||
306 | return super.eIsSet(featureID); | ||
307 | } | ||
308 | |||
309 | } //MetricDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricImpl.java deleted file mode 100644 index 41fbe6de..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MetricImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.Metric; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Metric</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MetricImpl#getReturnType <em>Return Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class MetricImpl extends FunctorImpl implements Metric { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getReturnType() <em>Return Type</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getReturnType() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected NamedElement returnType; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected MetricImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SolverLanguagePackage.Literals.METRIC; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public NamedElement getReturnType() { | ||
67 | if (returnType != null && returnType.eIsProxy()) { | ||
68 | InternalEObject oldReturnType = (InternalEObject)returnType; | ||
69 | returnType = (NamedElement)eResolveProxy(oldReturnType); | ||
70 | if (returnType != oldReturnType) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.METRIC__RETURN_TYPE, oldReturnType, returnType)); | ||
73 | } | ||
74 | } | ||
75 | return returnType; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public NamedElement basicGetReturnType() { | ||
84 | return returnType; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setReturnType(NamedElement newReturnType) { | ||
94 | NamedElement oldReturnType = returnType; | ||
95 | returnType = newReturnType; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.METRIC__RETURN_TYPE, oldReturnType, returnType)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SolverLanguagePackage.METRIC__RETURN_TYPE: | ||
109 | if (resolve) return getReturnType(); | ||
110 | return basicGetReturnType(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SolverLanguagePackage.METRIC__RETURN_TYPE: | ||
124 | setReturnType((NamedElement)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SolverLanguagePackage.METRIC__RETURN_TYPE: | ||
139 | setReturnType((NamedElement)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SolverLanguagePackage.METRIC__RETURN_TYPE: | ||
154 | return returnType != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //MetricImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java deleted file mode 100644 index e29fe9f6..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MultiplicityImpl.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Multiplicity</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class MultiplicityImpl extends MinimalEObjectImpl.Container implements Multiplicity { | ||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * <!-- end-user-doc --> | ||
24 | * @generated | ||
25 | */ | ||
26 | protected MultiplicityImpl() { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() { | ||
37 | return SolverLanguagePackage.Literals.MULTIPLICITY; | ||
38 | } | ||
39 | |||
40 | } //MultiplicityImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java deleted file mode 100644 index a6b102ac..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NamedElementImpl.java +++ /dev/null | |||
@@ -1,166 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Named Element</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NamedElementImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class NamedElementImpl extends MinimalEObjectImpl.Container implements NamedElement { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected NamedElementImpl() { | ||
56 | super(); | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | @Override | ||
65 | protected EClass eStaticClass() { | ||
66 | return SolverLanguagePackage.Literals.NAMED_ELEMENT; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @generated | ||
73 | */ | ||
74 | @Override | ||
75 | public String getName() { | ||
76 | return name; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public void setName(String newName) { | ||
86 | String oldName = name; | ||
87 | name = newName; | ||
88 | if (eNotificationRequired()) | ||
89 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NAMED_ELEMENT__NAME, oldName, name)); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
101 | return getName(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public void eSet(int featureID, Object newValue) { | ||
113 | switch (featureID) { | ||
114 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
115 | setName((String)newValue); | ||
116 | return; | ||
117 | } | ||
118 | super.eSet(featureID, newValue); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public void eUnset(int featureID) { | ||
128 | switch (featureID) { | ||
129 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
130 | setName(NAME_EDEFAULT); | ||
131 | return; | ||
132 | } | ||
133 | super.eUnset(featureID); | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public boolean eIsSet(int featureID) { | ||
143 | switch (featureID) { | ||
144 | case SolverLanguagePackage.NAMED_ELEMENT__NAME: | ||
145 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
146 | } | ||
147 | return super.eIsSet(featureID); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public String toString() { | ||
157 | if (eIsProxy()) return super.toString(); | ||
158 | |||
159 | StringBuilder result = new StringBuilder(super.toString()); | ||
160 | result.append(" (name: "); | ||
161 | result.append(name); | ||
162 | result.append(')'); | ||
163 | return result.toString(); | ||
164 | } | ||
165 | |||
166 | } //NamedElementImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NodeImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NodeImpl.java deleted file mode 100644 index a4fcf51f..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NodeImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.Node; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Node</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NodeImpl#isWithId <em>With Id</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class NodeImpl extends NamedElementImpl implements Node { | ||
29 | /** | ||
30 | * The default value of the '{@link #isWithId() <em>With Id</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #isWithId() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final boolean WITH_ID_EDEFAULT = false; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #isWithId() <em>With Id</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isWithId() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected boolean withId = WITH_ID_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected NodeImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SolverLanguagePackage.Literals.NODE; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public boolean isWithId() { | ||
75 | return withId; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setWithId(boolean newWithId) { | ||
85 | boolean oldWithId = withId; | ||
86 | withId = newWithId; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NODE__WITH_ID, oldWithId, withId)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SolverLanguagePackage.NODE__WITH_ID: | ||
100 | return isWithId(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.NODE__WITH_ID: | ||
114 | setWithId((Boolean)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.NODE__WITH_ID: | ||
129 | setWithId(WITH_ID_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.NODE__WITH_ID: | ||
144 | return withId != WITH_ID_EDEFAULT; | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (withId: "); | ||
160 | result.append(withId); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //NodeImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java deleted file mode 100644 index ffd4294d..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/NumericLiteralImpl.java +++ /dev/null | |||
@@ -1,167 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.math.BigDecimal; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.NumericLiteral; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Numeric Literal</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.NumericLiteralImpl#getValue <em>Value</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class NumericLiteralImpl extends LiteralImpl implements NumericLiteral { | ||
31 | /** | ||
32 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getValue() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final BigDecimal VALUE_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getValue() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected BigDecimal value = VALUE_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected NumericLiteralImpl() { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() { | ||
67 | return SolverLanguagePackage.Literals.NUMERIC_LITERAL; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | public BigDecimal getValue() { | ||
77 | return value; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public void setValue(BigDecimal newValue) { | ||
87 | BigDecimal oldValue = value; | ||
88 | value = newValue; | ||
89 | if (eNotificationRequired()) | ||
90 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.NUMERIC_LITERAL__VALUE, oldValue, value)); | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
100 | switch (featureID) { | ||
101 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
102 | return getValue(); | ||
103 | } | ||
104 | return super.eGet(featureID, resolve, coreType); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public void eSet(int featureID, Object newValue) { | ||
114 | switch (featureID) { | ||
115 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
116 | setValue((BigDecimal)newValue); | ||
117 | return; | ||
118 | } | ||
119 | super.eSet(featureID, newValue); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public void eUnset(int featureID) { | ||
129 | switch (featureID) { | ||
130 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
131 | setValue(VALUE_EDEFAULT); | ||
132 | return; | ||
133 | } | ||
134 | super.eUnset(featureID); | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public boolean eIsSet(int featureID) { | ||
144 | switch (featureID) { | ||
145 | case SolverLanguagePackage.NUMERIC_LITERAL__VALUE: | ||
146 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
147 | } | ||
148 | return super.eIsSet(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public String toString() { | ||
158 | if (eIsProxy()) return super.toString(); | ||
159 | |||
160 | StringBuilder result = new StringBuilder(super.toString()); | ||
161 | result.append(" (value: "); | ||
162 | result.append(value); | ||
163 | result.append(')'); | ||
164 | return result.toString(); | ||
165 | } | ||
166 | |||
167 | } //NumericLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java deleted file mode 100644 index 7d0e4c50..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ObjectiveDefinitionImpl.java +++ /dev/null | |||
@@ -1,249 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveKind; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Objective Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ObjectiveDefinitionImpl#getKind <em>Kind</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ObjectiveDefinitionImpl#getObjective <em>Objective</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class ObjectiveDefinitionImpl extends StatementImpl implements ObjectiveDefinition { | ||
34 | /** | ||
35 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getKind() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected static final ObjectiveKind KIND_EDEFAULT = ObjectiveKind.MINIMIZE; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getKind() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ObjectiveKind kind = KIND_EDEFAULT; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getObjective() <em>Objective</em>}' containment reference. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getObjective() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected Expression objective; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected ObjectiveDefinitionImpl() { | ||
70 | super(); | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | protected EClass eStaticClass() { | ||
80 | return SolverLanguagePackage.Literals.OBJECTIVE_DEFINITION; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public ObjectiveKind getKind() { | ||
90 | return kind; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public void setKind(ObjectiveKind newKind) { | ||
100 | ObjectiveKind oldKind = kind; | ||
101 | kind = newKind == null ? KIND_EDEFAULT : newKind; | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND, oldKind, kind)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public Expression getObjective() { | ||
113 | return objective; | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | public NotificationChain basicSetObjective(Expression newObjective, NotificationChain msgs) { | ||
122 | Expression oldObjective = objective; | ||
123 | objective = newObjective; | ||
124 | if (eNotificationRequired()) { | ||
125 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, oldObjective, newObjective); | ||
126 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
127 | } | ||
128 | return msgs; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void setObjective(Expression newObjective) { | ||
138 | if (newObjective != objective) { | ||
139 | NotificationChain msgs = null; | ||
140 | if (objective != null) | ||
141 | msgs = ((InternalEObject)objective).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, null, msgs); | ||
142 | if (newObjective != null) | ||
143 | msgs = ((InternalEObject)newObjective).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, null, msgs); | ||
144 | msgs = basicSetObjective(newObjective, msgs); | ||
145 | if (msgs != null) msgs.dispatch(); | ||
146 | } | ||
147 | else if (eNotificationRequired()) | ||
148 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE, newObjective, newObjective)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
160 | return basicSetObjective(null, msgs); | ||
161 | } | ||
162 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
172 | switch (featureID) { | ||
173 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
174 | return getKind(); | ||
175 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
176 | return getObjective(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public void eSet(int featureID, Object newValue) { | ||
188 | switch (featureID) { | ||
189 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
190 | setKind((ObjectiveKind)newValue); | ||
191 | return; | ||
192 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
193 | setObjective((Expression)newValue); | ||
194 | return; | ||
195 | } | ||
196 | super.eSet(featureID, newValue); | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public void eUnset(int featureID) { | ||
206 | switch (featureID) { | ||
207 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
208 | setKind(KIND_EDEFAULT); | ||
209 | return; | ||
210 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
211 | setObjective((Expression)null); | ||
212 | return; | ||
213 | } | ||
214 | super.eUnset(featureID); | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public boolean eIsSet(int featureID) { | ||
224 | switch (featureID) { | ||
225 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__KIND: | ||
226 | return kind != KIND_EDEFAULT; | ||
227 | case SolverLanguagePackage.OBJECTIVE_DEFINITION__OBJECTIVE: | ||
228 | return objective != null; | ||
229 | } | ||
230 | return super.eIsSet(featureID); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public String toString() { | ||
240 | if (eIsProxy()) return super.toString(); | ||
241 | |||
242 | StringBuilder result = new StringBuilder(super.toString()); | ||
243 | result.append(" (kind: "); | ||
244 | result.append(kind); | ||
245 | result.append(')'); | ||
246 | return result.toString(); | ||
247 | } | ||
248 | |||
249 | } //ObjectiveDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java deleted file mode 100644 index 251a27d9..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateDefinitionImpl.java +++ /dev/null | |||
@@ -1,372 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Predicate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#getHead <em>Head</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#getBody <em>Body</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#isFunctional <em>Functional</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateDefinitionImpl#isError <em>Error</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class PredicateDefinitionImpl extends StatementImpl implements PredicateDefinition { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getHead() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Expression head; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getBody() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected Expression body; | ||
54 | |||
55 | /** | ||
56 | * The default value of the '{@link #isFunctional() <em>Functional</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isFunctional() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected static final boolean FUNCTIONAL_EDEFAULT = false; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #isFunctional() <em>Functional</em>}' attribute. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #isFunctional() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected boolean functional = FUNCTIONAL_EDEFAULT; | ||
74 | |||
75 | /** | ||
76 | * The default value of the '{@link #isError() <em>Error</em>}' attribute. | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @see #isError() | ||
80 | * @generated | ||
81 | * @ordered | ||
82 | */ | ||
83 | protected static final boolean ERROR_EDEFAULT = false; | ||
84 | |||
85 | /** | ||
86 | * The cached value of the '{@link #isError() <em>Error</em>}' attribute. | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @see #isError() | ||
90 | * @generated | ||
91 | * @ordered | ||
92 | */ | ||
93 | protected boolean error = ERROR_EDEFAULT; | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | protected PredicateDefinitionImpl() { | ||
101 | super(); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | protected EClass eStaticClass() { | ||
111 | return SolverLanguagePackage.Literals.PREDICATE_DEFINITION; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public Expression getHead() { | ||
121 | return head; | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public NotificationChain basicSetHead(Expression newHead, NotificationChain msgs) { | ||
130 | Expression oldHead = head; | ||
131 | head = newHead; | ||
132 | if (eNotificationRequired()) { | ||
133 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, oldHead, newHead); | ||
134 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
135 | } | ||
136 | return msgs; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public void setHead(Expression newHead) { | ||
146 | if (newHead != head) { | ||
147 | NotificationChain msgs = null; | ||
148 | if (head != null) | ||
149 | msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, null, msgs); | ||
150 | if (newHead != null) | ||
151 | msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, null, msgs); | ||
152 | msgs = basicSetHead(newHead, msgs); | ||
153 | if (msgs != null) msgs.dispatch(); | ||
154 | } | ||
155 | else if (eNotificationRequired()) | ||
156 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__HEAD, newHead, newHead)); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public Expression getBody() { | ||
166 | return body; | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
175 | Expression oldBody = body; | ||
176 | body = newBody; | ||
177 | if (eNotificationRequired()) { | ||
178 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__BODY, oldBody, newBody); | ||
179 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
180 | } | ||
181 | return msgs; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public void setBody(Expression newBody) { | ||
191 | if (newBody != body) { | ||
192 | NotificationChain msgs = null; | ||
193 | if (body != null) | ||
194 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__BODY, null, msgs); | ||
195 | if (newBody != null) | ||
196 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE_DEFINITION__BODY, null, msgs); | ||
197 | msgs = basicSetBody(newBody, msgs); | ||
198 | if (msgs != null) msgs.dispatch(); | ||
199 | } | ||
200 | else if (eNotificationRequired()) | ||
201 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__BODY, newBody, newBody)); | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public boolean isFunctional() { | ||
211 | return functional; | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @generated | ||
218 | */ | ||
219 | @Override | ||
220 | public void setFunctional(boolean newFunctional) { | ||
221 | boolean oldFunctional = functional; | ||
222 | functional = newFunctional; | ||
223 | if (eNotificationRequired()) | ||
224 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL, oldFunctional, functional)); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public boolean isError() { | ||
234 | return error; | ||
235 | } | ||
236 | |||
237 | /** | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | */ | ||
242 | @Override | ||
243 | public void setError(boolean newError) { | ||
244 | boolean oldError = error; | ||
245 | error = newError; | ||
246 | if (eNotificationRequired()) | ||
247 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE_DEFINITION__ERROR, oldError, error)); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
257 | switch (featureID) { | ||
258 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
259 | return basicSetHead(null, msgs); | ||
260 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
261 | return basicSetBody(null, msgs); | ||
262 | } | ||
263 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * <!-- begin-user-doc --> | ||
268 | * <!-- end-user-doc --> | ||
269 | * @generated | ||
270 | */ | ||
271 | @Override | ||
272 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
273 | switch (featureID) { | ||
274 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
275 | return getHead(); | ||
276 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
277 | return getBody(); | ||
278 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
279 | return isFunctional(); | ||
280 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
281 | return isError(); | ||
282 | } | ||
283 | return super.eGet(featureID, resolve, coreType); | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public void eSet(int featureID, Object newValue) { | ||
293 | switch (featureID) { | ||
294 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
295 | setHead((Expression)newValue); | ||
296 | return; | ||
297 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
298 | setBody((Expression)newValue); | ||
299 | return; | ||
300 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
301 | setFunctional((Boolean)newValue); | ||
302 | return; | ||
303 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
304 | setError((Boolean)newValue); | ||
305 | return; | ||
306 | } | ||
307 | super.eSet(featureID, newValue); | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public void eUnset(int featureID) { | ||
317 | switch (featureID) { | ||
318 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
319 | setHead((Expression)null); | ||
320 | return; | ||
321 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
322 | setBody((Expression)null); | ||
323 | return; | ||
324 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
325 | setFunctional(FUNCTIONAL_EDEFAULT); | ||
326 | return; | ||
327 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
328 | setError(ERROR_EDEFAULT); | ||
329 | return; | ||
330 | } | ||
331 | super.eUnset(featureID); | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public boolean eIsSet(int featureID) { | ||
341 | switch (featureID) { | ||
342 | case SolverLanguagePackage.PREDICATE_DEFINITION__HEAD: | ||
343 | return head != null; | ||
344 | case SolverLanguagePackage.PREDICATE_DEFINITION__BODY: | ||
345 | return body != null; | ||
346 | case SolverLanguagePackage.PREDICATE_DEFINITION__FUNCTIONAL: | ||
347 | return functional != FUNCTIONAL_EDEFAULT; | ||
348 | case SolverLanguagePackage.PREDICATE_DEFINITION__ERROR: | ||
349 | return error != ERROR_EDEFAULT; | ||
350 | } | ||
351 | return super.eIsSet(featureID); | ||
352 | } | ||
353 | |||
354 | /** | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | */ | ||
359 | @Override | ||
360 | public String toString() { | ||
361 | if (eIsProxy()) return super.toString(); | ||
362 | |||
363 | StringBuilder result = new StringBuilder(super.toString()); | ||
364 | result.append(" (functional: "); | ||
365 | result.append(functional); | ||
366 | result.append(", error: "); | ||
367 | result.append(error); | ||
368 | result.append(')'); | ||
369 | return result.toString(); | ||
370 | } | ||
371 | |||
372 | } //PredicateDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java deleted file mode 100644 index 626b6419..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Predicate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class PredicateImpl extends FunctorImpl implements Predicate { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected PredicateImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.PREDICATE; | ||
36 | } | ||
37 | |||
38 | } //PredicateImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java deleted file mode 100644 index 0a4ad5ce..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ProblemImpl.java +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
16 | |||
17 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
18 | import org.eclipse.emf.ecore.util.InternalEList; | ||
19 | |||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Problem</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ProblemImpl#getStatements <em>Statements</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class ProblemImpl extends MinimalEObjectImpl.Container implements Problem { | ||
38 | /** | ||
39 | * The cached value of the '{@link #getStatements() <em>Statements</em>}' containment reference list. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getStatements() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected EList<Statement> statements; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected ProblemImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return SolverLanguagePackage.Literals.PROBLEM; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | public EList<Statement> getStatements() { | ||
74 | if (statements == null) { | ||
75 | statements = new EObjectContainmentEList<Statement>(Statement.class, this, SolverLanguagePackage.PROBLEM__STATEMENTS); | ||
76 | } | ||
77 | return statements; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | @Override | ||
86 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
87 | switch (featureID) { | ||
88 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
89 | return ((InternalEList<?>)getStatements()).basicRemove(otherEnd, msgs); | ||
90 | } | ||
91 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
101 | switch (featureID) { | ||
102 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
103 | return getStatements(); | ||
104 | } | ||
105 | return super.eGet(featureID, resolve, coreType); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @SuppressWarnings("unchecked") | ||
114 | @Override | ||
115 | public void eSet(int featureID, Object newValue) { | ||
116 | switch (featureID) { | ||
117 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
118 | getStatements().clear(); | ||
119 | getStatements().addAll((Collection<? extends Statement>)newValue); | ||
120 | return; | ||
121 | } | ||
122 | super.eSet(featureID, newValue); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eUnset(int featureID) { | ||
132 | switch (featureID) { | ||
133 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
134 | getStatements().clear(); | ||
135 | return; | ||
136 | } | ||
137 | super.eUnset(featureID); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public boolean eIsSet(int featureID) { | ||
147 | switch (featureID) { | ||
148 | case SolverLanguagePackage.PROBLEM__STATEMENTS: | ||
149 | return statements != null && !statements.isEmpty(); | ||
150 | } | ||
151 | return super.eIsSet(featureID); | ||
152 | } | ||
153 | |||
154 | } //ProblemImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/QuantifiedExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/QuantifiedExpressionImpl.java deleted file mode 100644 index a1eecebd..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/QuantifiedExpressionImpl.java +++ /dev/null | |||
@@ -1,318 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.LocalVariables; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.QuantifiedExpression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.Quantifier; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Quantified Expression</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.QuantifiedExpressionImpl#getLocalVariables <em>Local Variables</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.QuantifiedExpressionImpl#getBody <em>Body</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.QuantifiedExpressionImpl#getQuantifier <em>Quantifier</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class QuantifiedExpressionImpl extends ExpressionImpl implements QuantifiedExpression { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getLocalVariables() <em>Local Variables</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getLocalVariables() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected LocalVariables localVariables; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getBody() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected Expression body; | ||
55 | |||
56 | /** | ||
57 | * The default value of the '{@link #getQuantifier() <em>Quantifier</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getQuantifier() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected static final Quantifier QUANTIFIER_EDEFAULT = Quantifier.EXISTS; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getQuantifier() <em>Quantifier</em>}' attribute. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getQuantifier() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected Quantifier quantifier = QUANTIFIER_EDEFAULT; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected QuantifiedExpressionImpl() { | ||
82 | super(); | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | @Override | ||
91 | protected EClass eStaticClass() { | ||
92 | return SolverLanguagePackage.Literals.QUANTIFIED_EXPRESSION; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public LocalVariables getLocalVariables() { | ||
102 | return localVariables; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | public NotificationChain basicSetLocalVariables(LocalVariables newLocalVariables, NotificationChain msgs) { | ||
111 | LocalVariables oldLocalVariables = localVariables; | ||
112 | localVariables = newLocalVariables; | ||
113 | if (eNotificationRequired()) { | ||
114 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES, oldLocalVariables, newLocalVariables); | ||
115 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
116 | } | ||
117 | return msgs; | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void setLocalVariables(LocalVariables newLocalVariables) { | ||
127 | if (newLocalVariables != localVariables) { | ||
128 | NotificationChain msgs = null; | ||
129 | if (localVariables != null) | ||
130 | msgs = ((InternalEObject)localVariables).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES, null, msgs); | ||
131 | if (newLocalVariables != null) | ||
132 | msgs = ((InternalEObject)newLocalVariables).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES, null, msgs); | ||
133 | msgs = basicSetLocalVariables(newLocalVariables, msgs); | ||
134 | if (msgs != null) msgs.dispatch(); | ||
135 | } | ||
136 | else if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES, newLocalVariables, newLocalVariables)); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public Expression getBody() { | ||
147 | return body; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
156 | Expression oldBody = body; | ||
157 | body = newBody; | ||
158 | if (eNotificationRequired()) { | ||
159 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY, oldBody, newBody); | ||
160 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
161 | } | ||
162 | return msgs; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public void setBody(Expression newBody) { | ||
172 | if (newBody != body) { | ||
173 | NotificationChain msgs = null; | ||
174 | if (body != null) | ||
175 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY, null, msgs); | ||
176 | if (newBody != null) | ||
177 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY, null, msgs); | ||
178 | msgs = basicSetBody(newBody, msgs); | ||
179 | if (msgs != null) msgs.dispatch(); | ||
180 | } | ||
181 | else if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY, newBody, newBody)); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public Quantifier getQuantifier() { | ||
192 | return quantifier; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void setQuantifier(Quantifier newQuantifier) { | ||
202 | Quantifier oldQuantifier = quantifier; | ||
203 | quantifier = newQuantifier == null ? QUANTIFIER_EDEFAULT : newQuantifier; | ||
204 | if (eNotificationRequired()) | ||
205 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.QUANTIFIED_EXPRESSION__QUANTIFIER, oldQuantifier, quantifier)); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
215 | switch (featureID) { | ||
216 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES: | ||
217 | return basicSetLocalVariables(null, msgs); | ||
218 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY: | ||
219 | return basicSetBody(null, msgs); | ||
220 | } | ||
221 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
222 | } | ||
223 | |||
224 | /** | ||
225 | * <!-- begin-user-doc --> | ||
226 | * <!-- end-user-doc --> | ||
227 | * @generated | ||
228 | */ | ||
229 | @Override | ||
230 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
231 | switch (featureID) { | ||
232 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES: | ||
233 | return getLocalVariables(); | ||
234 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY: | ||
235 | return getBody(); | ||
236 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__QUANTIFIER: | ||
237 | return getQuantifier(); | ||
238 | } | ||
239 | return super.eGet(featureID, resolve, coreType); | ||
240 | } | ||
241 | |||
242 | /** | ||
243 | * <!-- begin-user-doc --> | ||
244 | * <!-- end-user-doc --> | ||
245 | * @generated | ||
246 | */ | ||
247 | @Override | ||
248 | public void eSet(int featureID, Object newValue) { | ||
249 | switch (featureID) { | ||
250 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES: | ||
251 | setLocalVariables((LocalVariables)newValue); | ||
252 | return; | ||
253 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY: | ||
254 | setBody((Expression)newValue); | ||
255 | return; | ||
256 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__QUANTIFIER: | ||
257 | setQuantifier((Quantifier)newValue); | ||
258 | return; | ||
259 | } | ||
260 | super.eSet(featureID, newValue); | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public void eUnset(int featureID) { | ||
270 | switch (featureID) { | ||
271 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES: | ||
272 | setLocalVariables((LocalVariables)null); | ||
273 | return; | ||
274 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY: | ||
275 | setBody((Expression)null); | ||
276 | return; | ||
277 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__QUANTIFIER: | ||
278 | setQuantifier(QUANTIFIER_EDEFAULT); | ||
279 | return; | ||
280 | } | ||
281 | super.eUnset(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public boolean eIsSet(int featureID) { | ||
291 | switch (featureID) { | ||
292 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__LOCAL_VARIABLES: | ||
293 | return localVariables != null; | ||
294 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__BODY: | ||
295 | return body != null; | ||
296 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION__QUANTIFIER: | ||
297 | return quantifier != QUANTIFIER_EDEFAULT; | ||
298 | } | ||
299 | return super.eIsSet(featureID); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public String toString() { | ||
309 | if (eIsProxy()) return super.toString(); | ||
310 | |||
311 | StringBuilder result = new StringBuilder(super.toString()); | ||
312 | result.append(" (quantifier: "); | ||
313 | result.append(quantifier); | ||
314 | result.append(')'); | ||
315 | return result.toString(); | ||
316 | } | ||
317 | |||
318 | } //QuantifiedExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java deleted file mode 100644 index 0be1aac7..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ReferenceImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Reference</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ReferenceImpl#getReferred <em>Referred</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ReferenceImpl extends ExpressionImpl implements Reference { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getReferred() <em>Referred</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getReferred() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected NamedElement referred; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected ReferenceImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SolverLanguagePackage.Literals.REFERENCE; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public NamedElement getReferred() { | ||
67 | if (referred != null && referred.eIsProxy()) { | ||
68 | InternalEObject oldReferred = (InternalEObject)referred; | ||
69 | referred = (NamedElement)eResolveProxy(oldReferred); | ||
70 | if (referred != oldReferred) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.REFERENCE__REFERRED, oldReferred, referred)); | ||
73 | } | ||
74 | } | ||
75 | return referred; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public NamedElement basicGetReferred() { | ||
84 | return referred; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setReferred(NamedElement newReferred) { | ||
94 | NamedElement oldReferred = referred; | ||
95 | referred = newReferred; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.REFERENCE__REFERRED, oldReferred, referred)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
109 | if (resolve) return getReferred(); | ||
110 | return basicGetReferred(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
124 | setReferred((NamedElement)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
139 | setReferred((NamedElement)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SolverLanguagePackage.REFERENCE__REFERRED: | ||
154 | return referred != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //ReferenceImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java deleted file mode 100644 index a4cf94a7..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ScopeDefinitionImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ScopeDefinition; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Scope Definition</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ScopeDefinitionImpl#getType <em>Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ScopeDefinitionImpl extends StatementImpl implements ScopeDefinition { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getType() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected NamedElement type; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected ScopeDefinitionImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SolverLanguagePackage.Literals.SCOPE_DEFINITION; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public NamedElement getType() { | ||
67 | if (type != null && type.eIsProxy()) { | ||
68 | InternalEObject oldType = (InternalEObject)type; | ||
69 | type = (NamedElement)eResolveProxy(oldType); | ||
70 | if (type != oldType) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.SCOPE_DEFINITION__TYPE, oldType, type)); | ||
73 | } | ||
74 | } | ||
75 | return type; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public NamedElement basicGetType() { | ||
84 | return type; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setType(NamedElement newType) { | ||
94 | NamedElement oldType = type; | ||
95 | type = newType; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.SCOPE_DEFINITION__TYPE, oldType, type)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
109 | if (resolve) return getType(); | ||
110 | return basicGetType(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
124 | setType((NamedElement)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
139 | setType((NamedElement)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SolverLanguagePackage.SCOPE_DEFINITION__TYPE: | ||
154 | return type != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //ScopeDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java deleted file mode 100644 index 5787175b..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java +++ /dev/null | |||
@@ -1,905 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | import org.eclipse.emf.ecore.EDataType; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.*; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model <b>Factory</b>. | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | public class SolverLanguageFactoryImpl extends EFactoryImpl implements SolverLanguageFactory { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static SolverLanguageFactory init() { | ||
31 | try { | ||
32 | SolverLanguageFactory theSolverLanguageFactory = (SolverLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(SolverLanguagePackage.eNS_URI); | ||
33 | if (theSolverLanguageFactory != null) { | ||
34 | return theSolverLanguageFactory; | ||
35 | } | ||
36 | } | ||
37 | catch (Exception exception) { | ||
38 | EcorePlugin.INSTANCE.log(exception); | ||
39 | } | ||
40 | return new SolverLanguageFactoryImpl(); | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Creates an instance of the factory. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | public SolverLanguageFactoryImpl() { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | public EObject create(EClass eClass) { | ||
60 | switch (eClass.getClassifierID()) { | ||
61 | case SolverLanguagePackage.PROBLEM: return createProblem(); | ||
62 | case SolverLanguagePackage.STATEMENT: return createStatement(); | ||
63 | case SolverLanguagePackage.PREDICATE_DEFINITION: return createPredicateDefinition(); | ||
64 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION: return createUnnamedErrorPrediateDefinition(); | ||
65 | case SolverLanguagePackage.DEFAULT_DEFINITION: return createDefaultDefinition(); | ||
66 | case SolverLanguagePackage.METRIC_DEFINITION: return createMetricDefinition(); | ||
67 | case SolverLanguagePackage.EXTERN_PREDICATE_DEFINITION: return createExternPredicateDefinition(); | ||
68 | case SolverLanguagePackage.EXTERN_METRIC_DEFINITION: return createExternMetricDefinition(); | ||
69 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION: return createExternAggregatorDefinition(); | ||
70 | case SolverLanguagePackage.EXTERN_DATATYPE_DEFINITION: return createExternDatatypeDefinition(); | ||
71 | case SolverLanguagePackage.NAMED_ELEMENT: return createNamedElement(); | ||
72 | case SolverLanguagePackage.IF_ELSE: return createIfElse(); | ||
73 | case SolverLanguagePackage.LET: return createLet(); | ||
74 | case SolverLanguagePackage.LET_BINDING: return createLetBinding(); | ||
75 | case SolverLanguagePackage.CASE: return createCase(); | ||
76 | case SolverLanguagePackage.LOCAL_VARIABLES: return createLocalVariables(); | ||
77 | case SolverLanguagePackage.QUANTIFIED_EXPRESSION: return createQuantifiedExpression(); | ||
78 | case SolverLanguagePackage.AGGREGATION: return createAggregation(); | ||
79 | case SolverLanguagePackage.CALL: return createCall(); | ||
80 | case SolverLanguagePackage.ARGUMENT_LIST: return createArgumentList(); | ||
81 | case SolverLanguagePackage.ARGUMENT: return createArgument(); | ||
82 | case SolverLanguagePackage.EXPRESSION_ARGUMENT: return createExpressionArgument(); | ||
83 | case SolverLanguagePackage.STAR_ARGUMENT: return createStarArgument(); | ||
84 | case SolverLanguagePackage.TYPED_ARGUMENT: return createTypedArgument(); | ||
85 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT: return createTypedStarArgument(); | ||
86 | case SolverLanguagePackage.REFERENCE: return createReference(); | ||
87 | case SolverLanguagePackage.INTERVAL: return createInterval(); | ||
88 | case SolverLanguagePackage.LITERAL: return createLiteral(); | ||
89 | case SolverLanguagePackage.LOGIC_LITERAL: return createLogicLiteral(); | ||
90 | case SolverLanguagePackage.NUMERIC_LITERAL: return createNumericLiteral(); | ||
91 | case SolverLanguagePackage.INFINITY_LITERAL: return createInfinityLiteral(); | ||
92 | case SolverLanguagePackage.EMPTY_INTERVAL_LITERAL: return createEmptyIntervalLiteral(); | ||
93 | case SolverLanguagePackage.STRING_LITERAL: return createStringLiteral(); | ||
94 | case SolverLanguagePackage.CLASS_DEFINITION: return createClassDefinition(); | ||
95 | case SolverLanguagePackage.MEMBER_DEFINITION: return createMemberDefinition(); | ||
96 | case SolverLanguagePackage.MULTIPLICITY: return createMultiplicity(); | ||
97 | case SolverLanguagePackage.MANY_MULTIPLICITY: return createManyMultiplicity(); | ||
98 | case SolverLanguagePackage.EXACT_MULTIPLICITY: return createExactMultiplicity(); | ||
99 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY: return createBoundedMultiplicity(); | ||
100 | case SolverLanguagePackage.SCOPE_DEFINITION: return createScopeDefinition(); | ||
101 | case SolverLanguagePackage.EXACT_SCOPE_DEFINITION: return createExactScopeDefinition(); | ||
102 | case SolverLanguagePackage.BOUNDED_SCOPE_DEFINITION: return createBoundedScopeDefinition(); | ||
103 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE_DEFINITION: return createLowerBoundedScopeDefinition(); | ||
104 | case SolverLanguagePackage.OBJECTIVE_DEFINITION: return createObjectiveDefinition(); | ||
105 | case SolverLanguagePackage.INTERPRETATION: return createInterpretation(); | ||
106 | case SolverLanguagePackage.VARIABLE: return createVariable(); | ||
107 | case SolverLanguagePackage.DISJUNCTION: return createDisjunction(); | ||
108 | case SolverLanguagePackage.SWITCH: return createSwitch(); | ||
109 | case SolverLanguagePackage.CONJUNCTION: return createConjunction(); | ||
110 | case SolverLanguagePackage.COMPARISON: return createComparison(); | ||
111 | case SolverLanguagePackage.BINARY_EXPRESSION: return createBinaryExpression(); | ||
112 | case SolverLanguagePackage.CAST_EXPRESSION: return createCastExpression(); | ||
113 | case SolverLanguagePackage.UNARY_EXPRESSION: return createUnaryExpression(); | ||
114 | case SolverLanguagePackage.NODE: return createNode(); | ||
115 | case SolverLanguagePackage.PREDICATE: return createPredicate(); | ||
116 | case SolverLanguagePackage.METRIC: return createMetric(); | ||
117 | default: | ||
118 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
119 | } | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
129 | switch (eDataType.getClassifierID()) { | ||
130 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
131 | return createBinaryOperatorFromString(eDataType, initialValue); | ||
132 | case SolverLanguagePackage.UNARY_OP: | ||
133 | return createUnaryOpFromString(eDataType, initialValue); | ||
134 | case SolverLanguagePackage.LOGIC_VALUE: | ||
135 | return createLogicValueFromString(eDataType, initialValue); | ||
136 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
137 | return createObjectiveKindFromString(eDataType, initialValue); | ||
138 | case SolverLanguagePackage.QUANTIFIER: | ||
139 | return createQuantifierFromString(eDataType, initialValue); | ||
140 | default: | ||
141 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
142 | } | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
152 | switch (eDataType.getClassifierID()) { | ||
153 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
154 | return convertBinaryOperatorToString(eDataType, instanceValue); | ||
155 | case SolverLanguagePackage.UNARY_OP: | ||
156 | return convertUnaryOpToString(eDataType, instanceValue); | ||
157 | case SolverLanguagePackage.LOGIC_VALUE: | ||
158 | return convertLogicValueToString(eDataType, instanceValue); | ||
159 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
160 | return convertObjectiveKindToString(eDataType, instanceValue); | ||
161 | case SolverLanguagePackage.QUANTIFIER: | ||
162 | return convertQuantifierToString(eDataType, instanceValue); | ||
163 | default: | ||
164 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
165 | } | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public Problem createProblem() { | ||
175 | ProblemImpl problem = new ProblemImpl(); | ||
176 | return problem; | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public Statement createStatement() { | ||
186 | StatementImpl statement = new StatementImpl(); | ||
187 | return statement; | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public PredicateDefinition createPredicateDefinition() { | ||
197 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
198 | return predicateDefinition; | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | @Override | ||
207 | public UnnamedErrorPrediateDefinition createUnnamedErrorPrediateDefinition() { | ||
208 | UnnamedErrorPrediateDefinitionImpl unnamedErrorPrediateDefinition = new UnnamedErrorPrediateDefinitionImpl(); | ||
209 | return unnamedErrorPrediateDefinition; | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public DefaultDefinition createDefaultDefinition() { | ||
219 | DefaultDefinitionImpl defaultDefinition = new DefaultDefinitionImpl(); | ||
220 | return defaultDefinition; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public MetricDefinition createMetricDefinition() { | ||
230 | MetricDefinitionImpl metricDefinition = new MetricDefinitionImpl(); | ||
231 | return metricDefinition; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public ExternPredicateDefinition createExternPredicateDefinition() { | ||
241 | ExternPredicateDefinitionImpl externPredicateDefinition = new ExternPredicateDefinitionImpl(); | ||
242 | return externPredicateDefinition; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | @Override | ||
251 | public ExternMetricDefinition createExternMetricDefinition() { | ||
252 | ExternMetricDefinitionImpl externMetricDefinition = new ExternMetricDefinitionImpl(); | ||
253 | return externMetricDefinition; | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public ExternAggregatorDefinition createExternAggregatorDefinition() { | ||
263 | ExternAggregatorDefinitionImpl externAggregatorDefinition = new ExternAggregatorDefinitionImpl(); | ||
264 | return externAggregatorDefinition; | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | @Override | ||
273 | public ExternDatatypeDefinition createExternDatatypeDefinition() { | ||
274 | ExternDatatypeDefinitionImpl externDatatypeDefinition = new ExternDatatypeDefinitionImpl(); | ||
275 | return externDatatypeDefinition; | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | @Override | ||
284 | public NamedElement createNamedElement() { | ||
285 | NamedElementImpl namedElement = new NamedElementImpl(); | ||
286 | return namedElement; | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * <!-- begin-user-doc --> | ||
291 | * <!-- end-user-doc --> | ||
292 | * @generated | ||
293 | */ | ||
294 | @Override | ||
295 | public IfElse createIfElse() { | ||
296 | IfElseImpl ifElse = new IfElseImpl(); | ||
297 | return ifElse; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * <!-- begin-user-doc --> | ||
302 | * <!-- end-user-doc --> | ||
303 | * @generated | ||
304 | */ | ||
305 | @Override | ||
306 | public Let createLet() { | ||
307 | LetImpl let = new LetImpl(); | ||
308 | return let; | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | */ | ||
316 | @Override | ||
317 | public LetBinding createLetBinding() { | ||
318 | LetBindingImpl letBinding = new LetBindingImpl(); | ||
319 | return letBinding; | ||
320 | } | ||
321 | |||
322 | /** | ||
323 | * <!-- begin-user-doc --> | ||
324 | * <!-- end-user-doc --> | ||
325 | * @generated | ||
326 | */ | ||
327 | @Override | ||
328 | public Case createCase() { | ||
329 | CaseImpl case_ = new CaseImpl(); | ||
330 | return case_; | ||
331 | } | ||
332 | |||
333 | /** | ||
334 | * <!-- begin-user-doc --> | ||
335 | * <!-- end-user-doc --> | ||
336 | * @generated | ||
337 | */ | ||
338 | @Override | ||
339 | public LocalVariables createLocalVariables() { | ||
340 | LocalVariablesImpl localVariables = new LocalVariablesImpl(); | ||
341 | return localVariables; | ||
342 | } | ||
343 | |||
344 | /** | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @generated | ||
348 | */ | ||
349 | @Override | ||
350 | public QuantifiedExpression createQuantifiedExpression() { | ||
351 | QuantifiedExpressionImpl quantifiedExpression = new QuantifiedExpressionImpl(); | ||
352 | return quantifiedExpression; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public Aggregation createAggregation() { | ||
362 | AggregationImpl aggregation = new AggregationImpl(); | ||
363 | return aggregation; | ||
364 | } | ||
365 | |||
366 | /** | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @generated | ||
370 | */ | ||
371 | @Override | ||
372 | public Call createCall() { | ||
373 | CallImpl call = new CallImpl(); | ||
374 | return call; | ||
375 | } | ||
376 | |||
377 | /** | ||
378 | * <!-- begin-user-doc --> | ||
379 | * <!-- end-user-doc --> | ||
380 | * @generated | ||
381 | */ | ||
382 | @Override | ||
383 | public ArgumentList createArgumentList() { | ||
384 | ArgumentListImpl argumentList = new ArgumentListImpl(); | ||
385 | return argumentList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
393 | @Override | ||
394 | public Argument createArgument() { | ||
395 | ArgumentImpl argument = new ArgumentImpl(); | ||
396 | return argument; | ||
397 | } | ||
398 | |||
399 | /** | ||
400 | * <!-- begin-user-doc --> | ||
401 | * <!-- end-user-doc --> | ||
402 | * @generated | ||
403 | */ | ||
404 | @Override | ||
405 | public ExpressionArgument createExpressionArgument() { | ||
406 | ExpressionArgumentImpl expressionArgument = new ExpressionArgumentImpl(); | ||
407 | return expressionArgument; | ||
408 | } | ||
409 | |||
410 | /** | ||
411 | * <!-- begin-user-doc --> | ||
412 | * <!-- end-user-doc --> | ||
413 | * @generated | ||
414 | */ | ||
415 | @Override | ||
416 | public StarArgument createStarArgument() { | ||
417 | StarArgumentImpl starArgument = new StarArgumentImpl(); | ||
418 | return starArgument; | ||
419 | } | ||
420 | |||
421 | /** | ||
422 | * <!-- begin-user-doc --> | ||
423 | * <!-- end-user-doc --> | ||
424 | * @generated | ||
425 | */ | ||
426 | @Override | ||
427 | public TypedArgument createTypedArgument() { | ||
428 | TypedArgumentImpl typedArgument = new TypedArgumentImpl(); | ||
429 | return typedArgument; | ||
430 | } | ||
431 | |||
432 | /** | ||
433 | * <!-- begin-user-doc --> | ||
434 | * <!-- end-user-doc --> | ||
435 | * @generated | ||
436 | */ | ||
437 | @Override | ||
438 | public TypedStarArgument createTypedStarArgument() { | ||
439 | TypedStarArgumentImpl typedStarArgument = new TypedStarArgumentImpl(); | ||
440 | return typedStarArgument; | ||
441 | } | ||
442 | |||
443 | /** | ||
444 | * <!-- begin-user-doc --> | ||
445 | * <!-- end-user-doc --> | ||
446 | * @generated | ||
447 | */ | ||
448 | @Override | ||
449 | public Reference createReference() { | ||
450 | ReferenceImpl reference = new ReferenceImpl(); | ||
451 | return reference; | ||
452 | } | ||
453 | |||
454 | /** | ||
455 | * <!-- begin-user-doc --> | ||
456 | * <!-- end-user-doc --> | ||
457 | * @generated | ||
458 | */ | ||
459 | @Override | ||
460 | public Interval createInterval() { | ||
461 | IntervalImpl interval = new IntervalImpl(); | ||
462 | return interval; | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
471 | public Literal createLiteral() { | ||
472 | LiteralImpl literal = new LiteralImpl(); | ||
473 | return literal; | ||
474 | } | ||
475 | |||
476 | /** | ||
477 | * <!-- begin-user-doc --> | ||
478 | * <!-- end-user-doc --> | ||
479 | * @generated | ||
480 | */ | ||
481 | @Override | ||
482 | public LogicLiteral createLogicLiteral() { | ||
483 | LogicLiteralImpl logicLiteral = new LogicLiteralImpl(); | ||
484 | return logicLiteral; | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | */ | ||
492 | @Override | ||
493 | public NumericLiteral createNumericLiteral() { | ||
494 | NumericLiteralImpl numericLiteral = new NumericLiteralImpl(); | ||
495 | return numericLiteral; | ||
496 | } | ||
497 | |||
498 | /** | ||
499 | * <!-- begin-user-doc --> | ||
500 | * <!-- end-user-doc --> | ||
501 | * @generated | ||
502 | */ | ||
503 | @Override | ||
504 | public InfinityLiteral createInfinityLiteral() { | ||
505 | InfinityLiteralImpl infinityLiteral = new InfinityLiteralImpl(); | ||
506 | return infinityLiteral; | ||
507 | } | ||
508 | |||
509 | /** | ||
510 | * <!-- begin-user-doc --> | ||
511 | * <!-- end-user-doc --> | ||
512 | * @generated | ||
513 | */ | ||
514 | @Override | ||
515 | public EmptyIntervalLiteral createEmptyIntervalLiteral() { | ||
516 | EmptyIntervalLiteralImpl emptyIntervalLiteral = new EmptyIntervalLiteralImpl(); | ||
517 | return emptyIntervalLiteral; | ||
518 | } | ||
519 | |||
520 | /** | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | */ | ||
525 | @Override | ||
526 | public StringLiteral createStringLiteral() { | ||
527 | StringLiteralImpl stringLiteral = new StringLiteralImpl(); | ||
528 | return stringLiteral; | ||
529 | } | ||
530 | |||
531 | /** | ||
532 | * <!-- begin-user-doc --> | ||
533 | * <!-- end-user-doc --> | ||
534 | * @generated | ||
535 | */ | ||
536 | @Override | ||
537 | public ClassDefinition createClassDefinition() { | ||
538 | ClassDefinitionImpl classDefinition = new ClassDefinitionImpl(); | ||
539 | return classDefinition; | ||
540 | } | ||
541 | |||
542 | /** | ||
543 | * <!-- begin-user-doc --> | ||
544 | * <!-- end-user-doc --> | ||
545 | * @generated | ||
546 | */ | ||
547 | @Override | ||
548 | public MemberDefinition createMemberDefinition() { | ||
549 | MemberDefinitionImpl memberDefinition = new MemberDefinitionImpl(); | ||
550 | return memberDefinition; | ||
551 | } | ||
552 | |||
553 | /** | ||
554 | * <!-- begin-user-doc --> | ||
555 | * <!-- end-user-doc --> | ||
556 | * @generated | ||
557 | */ | ||
558 | @Override | ||
559 | public Multiplicity createMultiplicity() { | ||
560 | MultiplicityImpl multiplicity = new MultiplicityImpl(); | ||
561 | return multiplicity; | ||
562 | } | ||
563 | |||
564 | /** | ||
565 | * <!-- begin-user-doc --> | ||
566 | * <!-- end-user-doc --> | ||
567 | * @generated | ||
568 | */ | ||
569 | @Override | ||
570 | public ManyMultiplicity createManyMultiplicity() { | ||
571 | ManyMultiplicityImpl manyMultiplicity = new ManyMultiplicityImpl(); | ||
572 | return manyMultiplicity; | ||
573 | } | ||
574 | |||
575 | /** | ||
576 | * <!-- begin-user-doc --> | ||
577 | * <!-- end-user-doc --> | ||
578 | * @generated | ||
579 | */ | ||
580 | @Override | ||
581 | public ExactMultiplicity createExactMultiplicity() { | ||
582 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
583 | return exactMultiplicity; | ||
584 | } | ||
585 | |||
586 | /** | ||
587 | * <!-- begin-user-doc --> | ||
588 | * <!-- end-user-doc --> | ||
589 | * @generated | ||
590 | */ | ||
591 | @Override | ||
592 | public BoundedMultiplicity createBoundedMultiplicity() { | ||
593 | BoundedMultiplicityImpl boundedMultiplicity = new BoundedMultiplicityImpl(); | ||
594 | return boundedMultiplicity; | ||
595 | } | ||
596 | |||
597 | /** | ||
598 | * <!-- begin-user-doc --> | ||
599 | * <!-- end-user-doc --> | ||
600 | * @generated | ||
601 | */ | ||
602 | @Override | ||
603 | public ScopeDefinition createScopeDefinition() { | ||
604 | ScopeDefinitionImpl scopeDefinition = new ScopeDefinitionImpl(); | ||
605 | return scopeDefinition; | ||
606 | } | ||
607 | |||
608 | /** | ||
609 | * <!-- begin-user-doc --> | ||
610 | * <!-- end-user-doc --> | ||
611 | * @generated | ||
612 | */ | ||
613 | @Override | ||
614 | public ExactScopeDefinition createExactScopeDefinition() { | ||
615 | ExactScopeDefinitionImpl exactScopeDefinition = new ExactScopeDefinitionImpl(); | ||
616 | return exactScopeDefinition; | ||
617 | } | ||
618 | |||
619 | /** | ||
620 | * <!-- begin-user-doc --> | ||
621 | * <!-- end-user-doc --> | ||
622 | * @generated | ||
623 | */ | ||
624 | @Override | ||
625 | public BoundedScopeDefinition createBoundedScopeDefinition() { | ||
626 | BoundedScopeDefinitionImpl boundedScopeDefinition = new BoundedScopeDefinitionImpl(); | ||
627 | return boundedScopeDefinition; | ||
628 | } | ||
629 | |||
630 | /** | ||
631 | * <!-- begin-user-doc --> | ||
632 | * <!-- end-user-doc --> | ||
633 | * @generated | ||
634 | */ | ||
635 | @Override | ||
636 | public LowerBoundedScopeDefinition createLowerBoundedScopeDefinition() { | ||
637 | LowerBoundedScopeDefinitionImpl lowerBoundedScopeDefinition = new LowerBoundedScopeDefinitionImpl(); | ||
638 | return lowerBoundedScopeDefinition; | ||
639 | } | ||
640 | |||
641 | /** | ||
642 | * <!-- begin-user-doc --> | ||
643 | * <!-- end-user-doc --> | ||
644 | * @generated | ||
645 | */ | ||
646 | @Override | ||
647 | public ObjectiveDefinition createObjectiveDefinition() { | ||
648 | ObjectiveDefinitionImpl objectiveDefinition = new ObjectiveDefinitionImpl(); | ||
649 | return objectiveDefinition; | ||
650 | } | ||
651 | |||
652 | /** | ||
653 | * <!-- begin-user-doc --> | ||
654 | * <!-- end-user-doc --> | ||
655 | * @generated | ||
656 | */ | ||
657 | @Override | ||
658 | public Interpretation createInterpretation() { | ||
659 | InterpretationImpl interpretation = new InterpretationImpl(); | ||
660 | return interpretation; | ||
661 | } | ||
662 | |||
663 | /** | ||
664 | * <!-- begin-user-doc --> | ||
665 | * <!-- end-user-doc --> | ||
666 | * @generated | ||
667 | */ | ||
668 | @Override | ||
669 | public Variable createVariable() { | ||
670 | VariableImpl variable = new VariableImpl(); | ||
671 | return variable; | ||
672 | } | ||
673 | |||
674 | /** | ||
675 | * <!-- begin-user-doc --> | ||
676 | * <!-- end-user-doc --> | ||
677 | * @generated | ||
678 | */ | ||
679 | @Override | ||
680 | public Disjunction createDisjunction() { | ||
681 | DisjunctionImpl disjunction = new DisjunctionImpl(); | ||
682 | return disjunction; | ||
683 | } | ||
684 | |||
685 | /** | ||
686 | * <!-- begin-user-doc --> | ||
687 | * <!-- end-user-doc --> | ||
688 | * @generated | ||
689 | */ | ||
690 | @Override | ||
691 | public Switch createSwitch() { | ||
692 | SwitchImpl switch_ = new SwitchImpl(); | ||
693 | return switch_; | ||
694 | } | ||
695 | |||
696 | /** | ||
697 | * <!-- begin-user-doc --> | ||
698 | * <!-- end-user-doc --> | ||
699 | * @generated | ||
700 | */ | ||
701 | @Override | ||
702 | public Conjunction createConjunction() { | ||
703 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
704 | return conjunction; | ||
705 | } | ||
706 | |||
707 | /** | ||
708 | * <!-- begin-user-doc --> | ||
709 | * <!-- end-user-doc --> | ||
710 | * @generated | ||
711 | */ | ||
712 | @Override | ||
713 | public Comparison createComparison() { | ||
714 | ComparisonImpl comparison = new ComparisonImpl(); | ||
715 | return comparison; | ||
716 | } | ||
717 | |||
718 | /** | ||
719 | * <!-- begin-user-doc --> | ||
720 | * <!-- end-user-doc --> | ||
721 | * @generated | ||
722 | */ | ||
723 | @Override | ||
724 | public BinaryExpression createBinaryExpression() { | ||
725 | BinaryExpressionImpl binaryExpression = new BinaryExpressionImpl(); | ||
726 | return binaryExpression; | ||
727 | } | ||
728 | |||
729 | /** | ||
730 | * <!-- begin-user-doc --> | ||
731 | * <!-- end-user-doc --> | ||
732 | * @generated | ||
733 | */ | ||
734 | @Override | ||
735 | public CastExpression createCastExpression() { | ||
736 | CastExpressionImpl castExpression = new CastExpressionImpl(); | ||
737 | return castExpression; | ||
738 | } | ||
739 | |||
740 | /** | ||
741 | * <!-- begin-user-doc --> | ||
742 | * <!-- end-user-doc --> | ||
743 | * @generated | ||
744 | */ | ||
745 | @Override | ||
746 | public UnaryExpression createUnaryExpression() { | ||
747 | UnaryExpressionImpl unaryExpression = new UnaryExpressionImpl(); | ||
748 | return unaryExpression; | ||
749 | } | ||
750 | |||
751 | /** | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @generated | ||
755 | */ | ||
756 | @Override | ||
757 | public Node createNode() { | ||
758 | NodeImpl node = new NodeImpl(); | ||
759 | return node; | ||
760 | } | ||
761 | |||
762 | /** | ||
763 | * <!-- begin-user-doc --> | ||
764 | * <!-- end-user-doc --> | ||
765 | * @generated | ||
766 | */ | ||
767 | @Override | ||
768 | public Predicate createPredicate() { | ||
769 | PredicateImpl predicate = new PredicateImpl(); | ||
770 | return predicate; | ||
771 | } | ||
772 | |||
773 | /** | ||
774 | * <!-- begin-user-doc --> | ||
775 | * <!-- end-user-doc --> | ||
776 | * @generated | ||
777 | */ | ||
778 | @Override | ||
779 | public Metric createMetric() { | ||
780 | MetricImpl metric = new MetricImpl(); | ||
781 | return metric; | ||
782 | } | ||
783 | |||
784 | /** | ||
785 | * <!-- begin-user-doc --> | ||
786 | * <!-- end-user-doc --> | ||
787 | * @generated | ||
788 | */ | ||
789 | public BinaryOperator createBinaryOperatorFromString(EDataType eDataType, String initialValue) { | ||
790 | BinaryOperator result = BinaryOperator.get(initialValue); | ||
791 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
792 | return result; | ||
793 | } | ||
794 | |||
795 | /** | ||
796 | * <!-- begin-user-doc --> | ||
797 | * <!-- end-user-doc --> | ||
798 | * @generated | ||
799 | */ | ||
800 | public String convertBinaryOperatorToString(EDataType eDataType, Object instanceValue) { | ||
801 | return instanceValue == null ? null : instanceValue.toString(); | ||
802 | } | ||
803 | |||
804 | /** | ||
805 | * <!-- begin-user-doc --> | ||
806 | * <!-- end-user-doc --> | ||
807 | * @generated | ||
808 | */ | ||
809 | public UnaryOp createUnaryOpFromString(EDataType eDataType, String initialValue) { | ||
810 | UnaryOp result = UnaryOp.get(initialValue); | ||
811 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
812 | return result; | ||
813 | } | ||
814 | |||
815 | /** | ||
816 | * <!-- begin-user-doc --> | ||
817 | * <!-- end-user-doc --> | ||
818 | * @generated | ||
819 | */ | ||
820 | public String convertUnaryOpToString(EDataType eDataType, Object instanceValue) { | ||
821 | return instanceValue == null ? null : instanceValue.toString(); | ||
822 | } | ||
823 | |||
824 | /** | ||
825 | * <!-- begin-user-doc --> | ||
826 | * <!-- end-user-doc --> | ||
827 | * @generated | ||
828 | */ | ||
829 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { | ||
830 | LogicValue result = LogicValue.get(initialValue); | ||
831 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
832 | return result; | ||
833 | } | ||
834 | |||
835 | /** | ||
836 | * <!-- begin-user-doc --> | ||
837 | * <!-- end-user-doc --> | ||
838 | * @generated | ||
839 | */ | ||
840 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { | ||
841 | return instanceValue == null ? null : instanceValue.toString(); | ||
842 | } | ||
843 | |||
844 | /** | ||
845 | * <!-- begin-user-doc --> | ||
846 | * <!-- end-user-doc --> | ||
847 | * @generated | ||
848 | */ | ||
849 | public ObjectiveKind createObjectiveKindFromString(EDataType eDataType, String initialValue) { | ||
850 | ObjectiveKind result = ObjectiveKind.get(initialValue); | ||
851 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
852 | return result; | ||
853 | } | ||
854 | |||
855 | /** | ||
856 | * <!-- begin-user-doc --> | ||
857 | * <!-- end-user-doc --> | ||
858 | * @generated | ||
859 | */ | ||
860 | public String convertObjectiveKindToString(EDataType eDataType, Object instanceValue) { | ||
861 | return instanceValue == null ? null : instanceValue.toString(); | ||
862 | } | ||
863 | |||
864 | /** | ||
865 | * <!-- begin-user-doc --> | ||
866 | * <!-- end-user-doc --> | ||
867 | * @generated | ||
868 | */ | ||
869 | public Quantifier createQuantifierFromString(EDataType eDataType, String initialValue) { | ||
870 | Quantifier result = Quantifier.get(initialValue); | ||
871 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
872 | return result; | ||
873 | } | ||
874 | |||
875 | /** | ||
876 | * <!-- begin-user-doc --> | ||
877 | * <!-- end-user-doc --> | ||
878 | * @generated | ||
879 | */ | ||
880 | public String convertQuantifierToString(EDataType eDataType, Object instanceValue) { | ||
881 | return instanceValue == null ? null : instanceValue.toString(); | ||
882 | } | ||
883 | |||
884 | /** | ||
885 | * <!-- begin-user-doc --> | ||
886 | * <!-- end-user-doc --> | ||
887 | * @generated | ||
888 | */ | ||
889 | @Override | ||
890 | public SolverLanguagePackage getSolverLanguagePackage() { | ||
891 | return (SolverLanguagePackage)getEPackage(); | ||
892 | } | ||
893 | |||
894 | /** | ||
895 | * <!-- begin-user-doc --> | ||
896 | * <!-- end-user-doc --> | ||
897 | * @deprecated | ||
898 | * @generated | ||
899 | */ | ||
900 | @Deprecated | ||
901 | public static SolverLanguagePackage getPackage() { | ||
902 | return SolverLanguagePackage.eINSTANCE; | ||
903 | } | ||
904 | |||
905 | } //SolverLanguageFactoryImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java deleted file mode 100644 index e8834386..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguagePackageImpl.java +++ /dev/null | |||
@@ -1,2726 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EAttribute; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EEnum; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | import org.eclipse.emf.ecore.EReference; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Aggregation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Argument; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryExpression; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.BinaryOperator; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedMultiplicity; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.BoundedScopeDefinition; | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.CastExpression; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.ClassDefinition; | ||
25 | import org.eclipse.viatra.solver.language.solverLanguage.Comparison; | ||
26 | import org.eclipse.viatra.solver.language.solverLanguage.Conjunction; | ||
27 | import org.eclipse.viatra.solver.language.solverLanguage.DefaultDefinition; | ||
28 | import org.eclipse.viatra.solver.language.solverLanguage.Disjunction; | ||
29 | import org.eclipse.viatra.solver.language.solverLanguage.EmptyIntervalLiteral; | ||
30 | import org.eclipse.viatra.solver.language.solverLanguage.ExactMultiplicity; | ||
31 | import org.eclipse.viatra.solver.language.solverLanguage.ExactScopeDefinition; | ||
32 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
33 | import org.eclipse.viatra.solver.language.solverLanguage.ExpressionArgument; | ||
34 | import org.eclipse.viatra.solver.language.solverLanguage.ExternAggregatorDefinition; | ||
35 | import org.eclipse.viatra.solver.language.solverLanguage.ExternDatatypeDefinition; | ||
36 | import org.eclipse.viatra.solver.language.solverLanguage.ExternMetricDefinition; | ||
37 | import org.eclipse.viatra.solver.language.solverLanguage.ExternPredicateDefinition; | ||
38 | import org.eclipse.viatra.solver.language.solverLanguage.Functor; | ||
39 | import org.eclipse.viatra.solver.language.solverLanguage.IfElse; | ||
40 | import org.eclipse.viatra.solver.language.solverLanguage.InfinityLiteral; | ||
41 | import org.eclipse.viatra.solver.language.solverLanguage.Interpretation; | ||
42 | import org.eclipse.viatra.solver.language.solverLanguage.Interval; | ||
43 | import org.eclipse.viatra.solver.language.solverLanguage.Let; | ||
44 | import org.eclipse.viatra.solver.language.solverLanguage.LetBinding; | ||
45 | import org.eclipse.viatra.solver.language.solverLanguage.Literal; | ||
46 | import org.eclipse.viatra.solver.language.solverLanguage.LocalVariables; | ||
47 | import org.eclipse.viatra.solver.language.solverLanguage.LogicLiteral; | ||
48 | import org.eclipse.viatra.solver.language.solverLanguage.LogicValue; | ||
49 | import org.eclipse.viatra.solver.language.solverLanguage.LowerBoundedScopeDefinition; | ||
50 | import org.eclipse.viatra.solver.language.solverLanguage.ManyMultiplicity; | ||
51 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
52 | import org.eclipse.viatra.solver.language.solverLanguage.Metric; | ||
53 | import org.eclipse.viatra.solver.language.solverLanguage.MetricDefinition; | ||
54 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
55 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
56 | import org.eclipse.viatra.solver.language.solverLanguage.Node; | ||
57 | import org.eclipse.viatra.solver.language.solverLanguage.NumericLiteral; | ||
58 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveDefinition; | ||
59 | import org.eclipse.viatra.solver.language.solverLanguage.ObjectiveKind; | ||
60 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | ||
61 | import org.eclipse.viatra.solver.language.solverLanguage.PredicateDefinition; | ||
62 | import org.eclipse.viatra.solver.language.solverLanguage.Problem; | ||
63 | import org.eclipse.viatra.solver.language.solverLanguage.QuantifiedExpression; | ||
64 | import org.eclipse.viatra.solver.language.solverLanguage.Quantifier; | ||
65 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
66 | import org.eclipse.viatra.solver.language.solverLanguage.ScopeDefinition; | ||
67 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguageFactory; | ||
68 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
69 | import org.eclipse.viatra.solver.language.solverLanguage.StarArgument; | ||
70 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
71 | import org.eclipse.viatra.solver.language.solverLanguage.StringLiteral; | ||
72 | import org.eclipse.viatra.solver.language.solverLanguage.Switch; | ||
73 | import org.eclipse.viatra.solver.language.solverLanguage.TypedArgument; | ||
74 | import org.eclipse.viatra.solver.language.solverLanguage.TypedStarArgument; | ||
75 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryExpression; | ||
76 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryOp; | ||
77 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedErrorPrediateDefinition; | ||
78 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * An implementation of the model <b>Package</b>. | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public class SolverLanguagePackageImpl extends EPackageImpl implements SolverLanguagePackage { | ||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | private EClass problemEClass = null; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | private EClass statementEClass = null; | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | private EClass predicateDefinitionEClass = null; | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | private EClass unnamedErrorPrediateDefinitionEClass = null; | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | private EClass defaultDefinitionEClass = null; | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | private EClass metricDefinitionEClass = null; | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | private EClass externPredicateDefinitionEClass = null; | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | private EClass externMetricDefinitionEClass = null; | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | private EClass externAggregatorDefinitionEClass = null; | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | private EClass externDatatypeDefinitionEClass = null; | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | private EClass namedElementEClass = null; | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | private EClass expressionEClass = null; | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | private EClass ifElseEClass = null; | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | private EClass letEClass = null; | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | private EClass letBindingEClass = null; | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | private EClass caseEClass = null; | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | private EClass localVariablesEClass = null; | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | private EClass quantifiedExpressionEClass = null; | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | private EClass aggregationEClass = null; | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | private EClass callEClass = null; | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | private EClass argumentListEClass = null; | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | private EClass argumentEClass = null; | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | private EClass expressionArgumentEClass = null; | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | private EClass starArgumentEClass = null; | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | private EClass typedArgumentEClass = null; | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | private EClass typedStarArgumentEClass = null; | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | private EClass referenceEClass = null; | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | private EClass intervalEClass = null; | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | private EClass literalEClass = null; | ||
289 | |||
290 | /** | ||
291 | * <!-- begin-user-doc --> | ||
292 | * <!-- end-user-doc --> | ||
293 | * @generated | ||
294 | */ | ||
295 | private EClass logicLiteralEClass = null; | ||
296 | |||
297 | /** | ||
298 | * <!-- begin-user-doc --> | ||
299 | * <!-- end-user-doc --> | ||
300 | * @generated | ||
301 | */ | ||
302 | private EClass numericLiteralEClass = null; | ||
303 | |||
304 | /** | ||
305 | * <!-- begin-user-doc --> | ||
306 | * <!-- end-user-doc --> | ||
307 | * @generated | ||
308 | */ | ||
309 | private EClass infinityLiteralEClass = null; | ||
310 | |||
311 | /** | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | */ | ||
316 | private EClass emptyIntervalLiteralEClass = null; | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | private EClass stringLiteralEClass = null; | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | private EClass classDefinitionEClass = null; | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | private EClass memberDefinitionEClass = null; | ||
338 | |||
339 | /** | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | */ | ||
344 | private EClass multiplicityEClass = null; | ||
345 | |||
346 | /** | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | */ | ||
351 | private EClass manyMultiplicityEClass = null; | ||
352 | |||
353 | /** | ||
354 | * <!-- begin-user-doc --> | ||
355 | * <!-- end-user-doc --> | ||
356 | * @generated | ||
357 | */ | ||
358 | private EClass exactMultiplicityEClass = null; | ||
359 | |||
360 | /** | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | */ | ||
365 | private EClass boundedMultiplicityEClass = null; | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | private EClass scopeDefinitionEClass = null; | ||
373 | |||
374 | /** | ||
375 | * <!-- begin-user-doc --> | ||
376 | * <!-- end-user-doc --> | ||
377 | * @generated | ||
378 | */ | ||
379 | private EClass exactScopeDefinitionEClass = null; | ||
380 | |||
381 | /** | ||
382 | * <!-- begin-user-doc --> | ||
383 | * <!-- end-user-doc --> | ||
384 | * @generated | ||
385 | */ | ||
386 | private EClass boundedScopeDefinitionEClass = null; | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
393 | private EClass lowerBoundedScopeDefinitionEClass = null; | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | private EClass objectiveDefinitionEClass = null; | ||
401 | |||
402 | /** | ||
403 | * <!-- begin-user-doc --> | ||
404 | * <!-- end-user-doc --> | ||
405 | * @generated | ||
406 | */ | ||
407 | private EClass interpretationEClass = null; | ||
408 | |||
409 | /** | ||
410 | * <!-- begin-user-doc --> | ||
411 | * <!-- end-user-doc --> | ||
412 | * @generated | ||
413 | */ | ||
414 | private EClass variableEClass = null; | ||
415 | |||
416 | /** | ||
417 | * <!-- begin-user-doc --> | ||
418 | * <!-- end-user-doc --> | ||
419 | * @generated | ||
420 | */ | ||
421 | private EClass disjunctionEClass = null; | ||
422 | |||
423 | /** | ||
424 | * <!-- begin-user-doc --> | ||
425 | * <!-- end-user-doc --> | ||
426 | * @generated | ||
427 | */ | ||
428 | private EClass switchEClass = null; | ||
429 | |||
430 | /** | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | */ | ||
435 | private EClass conjunctionEClass = null; | ||
436 | |||
437 | /** | ||
438 | * <!-- begin-user-doc --> | ||
439 | * <!-- end-user-doc --> | ||
440 | * @generated | ||
441 | */ | ||
442 | private EClass comparisonEClass = null; | ||
443 | |||
444 | /** | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | private EClass binaryExpressionEClass = null; | ||
450 | |||
451 | /** | ||
452 | * <!-- begin-user-doc --> | ||
453 | * <!-- end-user-doc --> | ||
454 | * @generated | ||
455 | */ | ||
456 | private EClass castExpressionEClass = null; | ||
457 | |||
458 | /** | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | */ | ||
463 | private EClass unaryExpressionEClass = null; | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | private EClass nodeEClass = null; | ||
471 | |||
472 | /** | ||
473 | * <!-- begin-user-doc --> | ||
474 | * <!-- end-user-doc --> | ||
475 | * @generated | ||
476 | */ | ||
477 | private EClass functorEClass = null; | ||
478 | |||
479 | /** | ||
480 | * <!-- begin-user-doc --> | ||
481 | * <!-- end-user-doc --> | ||
482 | * @generated | ||
483 | */ | ||
484 | private EClass predicateEClass = null; | ||
485 | |||
486 | /** | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @generated | ||
490 | */ | ||
491 | private EClass metricEClass = null; | ||
492 | |||
493 | /** | ||
494 | * <!-- begin-user-doc --> | ||
495 | * <!-- end-user-doc --> | ||
496 | * @generated | ||
497 | */ | ||
498 | private EEnum binaryOperatorEEnum = null; | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | private EEnum unaryOpEEnum = null; | ||
506 | |||
507 | /** | ||
508 | * <!-- begin-user-doc --> | ||
509 | * <!-- end-user-doc --> | ||
510 | * @generated | ||
511 | */ | ||
512 | private EEnum logicValueEEnum = null; | ||
513 | |||
514 | /** | ||
515 | * <!-- begin-user-doc --> | ||
516 | * <!-- end-user-doc --> | ||
517 | * @generated | ||
518 | */ | ||
519 | private EEnum objectiveKindEEnum = null; | ||
520 | |||
521 | /** | ||
522 | * <!-- begin-user-doc --> | ||
523 | * <!-- end-user-doc --> | ||
524 | * @generated | ||
525 | */ | ||
526 | private EEnum quantifierEEnum = null; | ||
527 | |||
528 | /** | ||
529 | * Creates an instance of the model <b>Package</b>, registered with | ||
530 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
531 | * package URI value. | ||
532 | * <p>Note: the correct way to create the package is via the static | ||
533 | * factory method {@link #init init()}, which also performs | ||
534 | * initialization of the package, or returns the registered package, | ||
535 | * if one already exists. | ||
536 | * <!-- begin-user-doc --> | ||
537 | * <!-- end-user-doc --> | ||
538 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
539 | * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#eNS_URI | ||
540 | * @see #init() | ||
541 | * @generated | ||
542 | */ | ||
543 | private SolverLanguagePackageImpl() { | ||
544 | super(eNS_URI, SolverLanguageFactory.eINSTANCE); | ||
545 | } | ||
546 | |||
547 | /** | ||
548 | * <!-- begin-user-doc --> | ||
549 | * <!-- end-user-doc --> | ||
550 | * @generated | ||
551 | */ | ||
552 | private static boolean isInited = false; | ||
553 | |||
554 | /** | ||
555 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
556 | * | ||
557 | * <p>This method is used to initialize {@link SolverLanguagePackage#eINSTANCE} when that field is accessed. | ||
558 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
559 | * <!-- begin-user-doc --> | ||
560 | * <!-- end-user-doc --> | ||
561 | * @see #eNS_URI | ||
562 | * @see #createPackageContents() | ||
563 | * @see #initializePackageContents() | ||
564 | * @generated | ||
565 | */ | ||
566 | public static SolverLanguagePackage init() { | ||
567 | if (isInited) return (SolverLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(SolverLanguagePackage.eNS_URI); | ||
568 | |||
569 | // Obtain or create and register package | ||
570 | Object registeredSolverLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
571 | SolverLanguagePackageImpl theSolverLanguagePackage = registeredSolverLanguagePackage instanceof SolverLanguagePackageImpl ? (SolverLanguagePackageImpl)registeredSolverLanguagePackage : new SolverLanguagePackageImpl(); | ||
572 | |||
573 | isInited = true; | ||
574 | |||
575 | // Create package meta-data objects | ||
576 | theSolverLanguagePackage.createPackageContents(); | ||
577 | |||
578 | // Initialize created meta-data | ||
579 | theSolverLanguagePackage.initializePackageContents(); | ||
580 | |||
581 | // Mark meta-data to indicate it can't be changed | ||
582 | theSolverLanguagePackage.freeze(); | ||
583 | |||
584 | // Update the registry and return the package | ||
585 | EPackage.Registry.INSTANCE.put(SolverLanguagePackage.eNS_URI, theSolverLanguagePackage); | ||
586 | return theSolverLanguagePackage; | ||
587 | } | ||
588 | |||
589 | /** | ||
590 | * <!-- begin-user-doc --> | ||
591 | * <!-- end-user-doc --> | ||
592 | * @generated | ||
593 | */ | ||
594 | @Override | ||
595 | public EClass getProblem() { | ||
596 | return problemEClass; | ||
597 | } | ||
598 | |||
599 | /** | ||
600 | * <!-- begin-user-doc --> | ||
601 | * <!-- end-user-doc --> | ||
602 | * @generated | ||
603 | */ | ||
604 | @Override | ||
605 | public EReference getProblem_Statements() { | ||
606 | return (EReference)problemEClass.getEStructuralFeatures().get(0); | ||
607 | } | ||
608 | |||
609 | /** | ||
610 | * <!-- begin-user-doc --> | ||
611 | * <!-- end-user-doc --> | ||
612 | * @generated | ||
613 | */ | ||
614 | @Override | ||
615 | public EClass getStatement() { | ||
616 | return statementEClass; | ||
617 | } | ||
618 | |||
619 | /** | ||
620 | * <!-- begin-user-doc --> | ||
621 | * <!-- end-user-doc --> | ||
622 | * @generated | ||
623 | */ | ||
624 | @Override | ||
625 | public EClass getPredicateDefinition() { | ||
626 | return predicateDefinitionEClass; | ||
627 | } | ||
628 | |||
629 | /** | ||
630 | * <!-- begin-user-doc --> | ||
631 | * <!-- end-user-doc --> | ||
632 | * @generated | ||
633 | */ | ||
634 | @Override | ||
635 | public EReference getPredicateDefinition_Head() { | ||
636 | return (EReference)predicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
637 | } | ||
638 | |||
639 | /** | ||
640 | * <!-- begin-user-doc --> | ||
641 | * <!-- end-user-doc --> | ||
642 | * @generated | ||
643 | */ | ||
644 | @Override | ||
645 | public EReference getPredicateDefinition_Body() { | ||
646 | return (EReference)predicateDefinitionEClass.getEStructuralFeatures().get(1); | ||
647 | } | ||
648 | |||
649 | /** | ||
650 | * <!-- begin-user-doc --> | ||
651 | * <!-- end-user-doc --> | ||
652 | * @generated | ||
653 | */ | ||
654 | @Override | ||
655 | public EAttribute getPredicateDefinition_Functional() { | ||
656 | return (EAttribute)predicateDefinitionEClass.getEStructuralFeatures().get(2); | ||
657 | } | ||
658 | |||
659 | /** | ||
660 | * <!-- begin-user-doc --> | ||
661 | * <!-- end-user-doc --> | ||
662 | * @generated | ||
663 | */ | ||
664 | @Override | ||
665 | public EAttribute getPredicateDefinition_Error() { | ||
666 | return (EAttribute)predicateDefinitionEClass.getEStructuralFeatures().get(3); | ||
667 | } | ||
668 | |||
669 | /** | ||
670 | * <!-- begin-user-doc --> | ||
671 | * <!-- end-user-doc --> | ||
672 | * @generated | ||
673 | */ | ||
674 | @Override | ||
675 | public EClass getUnnamedErrorPrediateDefinition() { | ||
676 | return unnamedErrorPrediateDefinitionEClass; | ||
677 | } | ||
678 | |||
679 | /** | ||
680 | * <!-- begin-user-doc --> | ||
681 | * <!-- end-user-doc --> | ||
682 | * @generated | ||
683 | */ | ||
684 | @Override | ||
685 | public EReference getUnnamedErrorPrediateDefinition_ArgumentList() { | ||
686 | return (EReference)unnamedErrorPrediateDefinitionEClass.getEStructuralFeatures().get(0); | ||
687 | } | ||
688 | |||
689 | /** | ||
690 | * <!-- begin-user-doc --> | ||
691 | * <!-- end-user-doc --> | ||
692 | * @generated | ||
693 | */ | ||
694 | @Override | ||
695 | public EReference getUnnamedErrorPrediateDefinition_Body() { | ||
696 | return (EReference)unnamedErrorPrediateDefinitionEClass.getEStructuralFeatures().get(1); | ||
697 | } | ||
698 | |||
699 | /** | ||
700 | * <!-- begin-user-doc --> | ||
701 | * <!-- end-user-doc --> | ||
702 | * @generated | ||
703 | */ | ||
704 | @Override | ||
705 | public EClass getDefaultDefinition() { | ||
706 | return defaultDefinitionEClass; | ||
707 | } | ||
708 | |||
709 | /** | ||
710 | * <!-- begin-user-doc --> | ||
711 | * <!-- end-user-doc --> | ||
712 | * @generated | ||
713 | */ | ||
714 | @Override | ||
715 | public EReference getDefaultDefinition_Head() { | ||
716 | return (EReference)defaultDefinitionEClass.getEStructuralFeatures().get(0); | ||
717 | } | ||
718 | |||
719 | /** | ||
720 | * <!-- begin-user-doc --> | ||
721 | * <!-- end-user-doc --> | ||
722 | * @generated | ||
723 | */ | ||
724 | @Override | ||
725 | public EReference getDefaultDefinition_Range() { | ||
726 | return (EReference)defaultDefinitionEClass.getEStructuralFeatures().get(1); | ||
727 | } | ||
728 | |||
729 | /** | ||
730 | * <!-- begin-user-doc --> | ||
731 | * <!-- end-user-doc --> | ||
732 | * @generated | ||
733 | */ | ||
734 | @Override | ||
735 | public EClass getMetricDefinition() { | ||
736 | return metricDefinitionEClass; | ||
737 | } | ||
738 | |||
739 | /** | ||
740 | * <!-- begin-user-doc --> | ||
741 | * <!-- end-user-doc --> | ||
742 | * @generated | ||
743 | */ | ||
744 | @Override | ||
745 | public EReference getMetricDefinition_Head() { | ||
746 | return (EReference)metricDefinitionEClass.getEStructuralFeatures().get(0); | ||
747 | } | ||
748 | |||
749 | /** | ||
750 | * <!-- begin-user-doc --> | ||
751 | * <!-- end-user-doc --> | ||
752 | * @generated | ||
753 | */ | ||
754 | @Override | ||
755 | public EReference getMetricDefinition_Body() { | ||
756 | return (EReference)metricDefinitionEClass.getEStructuralFeatures().get(1); | ||
757 | } | ||
758 | |||
759 | /** | ||
760 | * <!-- begin-user-doc --> | ||
761 | * <!-- end-user-doc --> | ||
762 | * @generated | ||
763 | */ | ||
764 | @Override | ||
765 | public EReference getMetricDefinition_Type() { | ||
766 | return (EReference)metricDefinitionEClass.getEStructuralFeatures().get(2); | ||
767 | } | ||
768 | |||
769 | /** | ||
770 | * <!-- begin-user-doc --> | ||
771 | * <!-- end-user-doc --> | ||
772 | * @generated | ||
773 | */ | ||
774 | @Override | ||
775 | public EClass getExternPredicateDefinition() { | ||
776 | return externPredicateDefinitionEClass; | ||
777 | } | ||
778 | |||
779 | /** | ||
780 | * <!-- begin-user-doc --> | ||
781 | * <!-- end-user-doc --> | ||
782 | * @generated | ||
783 | */ | ||
784 | @Override | ||
785 | public EAttribute getExternPredicateDefinition_Name() { | ||
786 | return (EAttribute)externPredicateDefinitionEClass.getEStructuralFeatures().get(0); | ||
787 | } | ||
788 | |||
789 | /** | ||
790 | * <!-- begin-user-doc --> | ||
791 | * <!-- end-user-doc --> | ||
792 | * @generated | ||
793 | */ | ||
794 | @Override | ||
795 | public EReference getExternPredicateDefinition_ArgumentList() { | ||
796 | return (EReference)externPredicateDefinitionEClass.getEStructuralFeatures().get(1); | ||
797 | } | ||
798 | |||
799 | /** | ||
800 | * <!-- begin-user-doc --> | ||
801 | * <!-- end-user-doc --> | ||
802 | * @generated | ||
803 | */ | ||
804 | @Override | ||
805 | public EClass getExternMetricDefinition() { | ||
806 | return externMetricDefinitionEClass; | ||
807 | } | ||
808 | |||
809 | /** | ||
810 | * <!-- begin-user-doc --> | ||
811 | * <!-- end-user-doc --> | ||
812 | * @generated | ||
813 | */ | ||
814 | @Override | ||
815 | public EReference getExternMetricDefinition_Type() { | ||
816 | return (EReference)externMetricDefinitionEClass.getEStructuralFeatures().get(0); | ||
817 | } | ||
818 | |||
819 | /** | ||
820 | * <!-- begin-user-doc --> | ||
821 | * <!-- end-user-doc --> | ||
822 | * @generated | ||
823 | */ | ||
824 | @Override | ||
825 | public EAttribute getExternMetricDefinition_Name() { | ||
826 | return (EAttribute)externMetricDefinitionEClass.getEStructuralFeatures().get(1); | ||
827 | } | ||
828 | |||
829 | /** | ||
830 | * <!-- begin-user-doc --> | ||
831 | * <!-- end-user-doc --> | ||
832 | * @generated | ||
833 | */ | ||
834 | @Override | ||
835 | public EReference getExternMetricDefinition_ArgumentList() { | ||
836 | return (EReference)externMetricDefinitionEClass.getEStructuralFeatures().get(2); | ||
837 | } | ||
838 | |||
839 | /** | ||
840 | * <!-- begin-user-doc --> | ||
841 | * <!-- end-user-doc --> | ||
842 | * @generated | ||
843 | */ | ||
844 | @Override | ||
845 | public EClass getExternAggregatorDefinition() { | ||
846 | return externAggregatorDefinitionEClass; | ||
847 | } | ||
848 | |||
849 | /** | ||
850 | * <!-- begin-user-doc --> | ||
851 | * <!-- end-user-doc --> | ||
852 | * @generated | ||
853 | */ | ||
854 | @Override | ||
855 | public EReference getExternAggregatorDefinition_Type() { | ||
856 | return (EReference)externAggregatorDefinitionEClass.getEStructuralFeatures().get(0); | ||
857 | } | ||
858 | |||
859 | /** | ||
860 | * <!-- begin-user-doc --> | ||
861 | * <!-- end-user-doc --> | ||
862 | * @generated | ||
863 | */ | ||
864 | @Override | ||
865 | public EAttribute getExternAggregatorDefinition_Name() { | ||
866 | return (EAttribute)externAggregatorDefinitionEClass.getEStructuralFeatures().get(1); | ||
867 | } | ||
868 | |||
869 | /** | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @generated | ||
873 | */ | ||
874 | @Override | ||
875 | public EReference getExternAggregatorDefinition_InputType() { | ||
876 | return (EReference)externAggregatorDefinitionEClass.getEStructuralFeatures().get(2); | ||
877 | } | ||
878 | |||
879 | /** | ||
880 | * <!-- begin-user-doc --> | ||
881 | * <!-- end-user-doc --> | ||
882 | * @generated | ||
883 | */ | ||
884 | @Override | ||
885 | public EClass getExternDatatypeDefinition() { | ||
886 | return externDatatypeDefinitionEClass; | ||
887 | } | ||
888 | |||
889 | /** | ||
890 | * <!-- begin-user-doc --> | ||
891 | * <!-- end-user-doc --> | ||
892 | * @generated | ||
893 | */ | ||
894 | @Override | ||
895 | public EAttribute getExternDatatypeDefinition_Name() { | ||
896 | return (EAttribute)externDatatypeDefinitionEClass.getEStructuralFeatures().get(0); | ||
897 | } | ||
898 | |||
899 | /** | ||
900 | * <!-- begin-user-doc --> | ||
901 | * <!-- end-user-doc --> | ||
902 | * @generated | ||
903 | */ | ||
904 | @Override | ||
905 | public EReference getExternDatatypeDefinition_Supertypes() { | ||
906 | return (EReference)externDatatypeDefinitionEClass.getEStructuralFeatures().get(1); | ||
907 | } | ||
908 | |||
909 | /** | ||
910 | * <!-- begin-user-doc --> | ||
911 | * <!-- end-user-doc --> | ||
912 | * @generated | ||
913 | */ | ||
914 | @Override | ||
915 | public EClass getNamedElement() { | ||
916 | return namedElementEClass; | ||
917 | } | ||
918 | |||
919 | /** | ||
920 | * <!-- begin-user-doc --> | ||
921 | * <!-- end-user-doc --> | ||
922 | * @generated | ||
923 | */ | ||
924 | @Override | ||
925 | public EAttribute getNamedElement_Name() { | ||
926 | return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0); | ||
927 | } | ||
928 | |||
929 | /** | ||
930 | * <!-- begin-user-doc --> | ||
931 | * <!-- end-user-doc --> | ||
932 | * @generated | ||
933 | */ | ||
934 | @Override | ||
935 | public EClass getExpression() { | ||
936 | return expressionEClass; | ||
937 | } | ||
938 | |||
939 | /** | ||
940 | * <!-- begin-user-doc --> | ||
941 | * <!-- end-user-doc --> | ||
942 | * @generated | ||
943 | */ | ||
944 | @Override | ||
945 | public EClass getIfElse() { | ||
946 | return ifElseEClass; | ||
947 | } | ||
948 | |||
949 | /** | ||
950 | * <!-- begin-user-doc --> | ||
951 | * <!-- end-user-doc --> | ||
952 | * @generated | ||
953 | */ | ||
954 | @Override | ||
955 | public EReference getIfElse_Then() { | ||
956 | return (EReference)ifElseEClass.getEStructuralFeatures().get(0); | ||
957 | } | ||
958 | |||
959 | /** | ||
960 | * <!-- begin-user-doc --> | ||
961 | * <!-- end-user-doc --> | ||
962 | * @generated | ||
963 | */ | ||
964 | @Override | ||
965 | public EReference getIfElse_Else() { | ||
966 | return (EReference)ifElseEClass.getEStructuralFeatures().get(1); | ||
967 | } | ||
968 | |||
969 | /** | ||
970 | * <!-- begin-user-doc --> | ||
971 | * <!-- end-user-doc --> | ||
972 | * @generated | ||
973 | */ | ||
974 | @Override | ||
975 | public EReference getIfElse_Condition() { | ||
976 | return (EReference)ifElseEClass.getEStructuralFeatures().get(2); | ||
977 | } | ||
978 | |||
979 | /** | ||
980 | * <!-- begin-user-doc --> | ||
981 | * <!-- end-user-doc --> | ||
982 | * @generated | ||
983 | */ | ||
984 | @Override | ||
985 | public EClass getLet() { | ||
986 | return letEClass; | ||
987 | } | ||
988 | |||
989 | /** | ||
990 | * <!-- begin-user-doc --> | ||
991 | * <!-- end-user-doc --> | ||
992 | * @generated | ||
993 | */ | ||
994 | @Override | ||
995 | public EReference getLet_Bindings() { | ||
996 | return (EReference)letEClass.getEStructuralFeatures().get(0); | ||
997 | } | ||
998 | |||
999 | /** | ||
1000 | * <!-- begin-user-doc --> | ||
1001 | * <!-- end-user-doc --> | ||
1002 | * @generated | ||
1003 | */ | ||
1004 | @Override | ||
1005 | public EReference getLet_Body() { | ||
1006 | return (EReference)letEClass.getEStructuralFeatures().get(1); | ||
1007 | } | ||
1008 | |||
1009 | /** | ||
1010 | * <!-- begin-user-doc --> | ||
1011 | * <!-- end-user-doc --> | ||
1012 | * @generated | ||
1013 | */ | ||
1014 | @Override | ||
1015 | public EClass getLetBinding() { | ||
1016 | return letBindingEClass; | ||
1017 | } | ||
1018 | |||
1019 | /** | ||
1020 | * <!-- begin-user-doc --> | ||
1021 | * <!-- end-user-doc --> | ||
1022 | * @generated | ||
1023 | */ | ||
1024 | @Override | ||
1025 | public EReference getLetBinding_Variable() { | ||
1026 | return (EReference)letBindingEClass.getEStructuralFeatures().get(0); | ||
1027 | } | ||
1028 | |||
1029 | /** | ||
1030 | * <!-- begin-user-doc --> | ||
1031 | * <!-- end-user-doc --> | ||
1032 | * @generated | ||
1033 | */ | ||
1034 | @Override | ||
1035 | public EReference getLetBinding_Value() { | ||
1036 | return (EReference)letBindingEClass.getEStructuralFeatures().get(1); | ||
1037 | } | ||
1038 | |||
1039 | /** | ||
1040 | * <!-- begin-user-doc --> | ||
1041 | * <!-- end-user-doc --> | ||
1042 | * @generated | ||
1043 | */ | ||
1044 | @Override | ||
1045 | public EClass getCase() { | ||
1046 | return caseEClass; | ||
1047 | } | ||
1048 | |||
1049 | /** | ||
1050 | * <!-- begin-user-doc --> | ||
1051 | * <!-- end-user-doc --> | ||
1052 | * @generated | ||
1053 | */ | ||
1054 | @Override | ||
1055 | public EReference getCase_Body() { | ||
1056 | return (EReference)caseEClass.getEStructuralFeatures().get(0); | ||
1057 | } | ||
1058 | |||
1059 | /** | ||
1060 | * <!-- begin-user-doc --> | ||
1061 | * <!-- end-user-doc --> | ||
1062 | * @generated | ||
1063 | */ | ||
1064 | @Override | ||
1065 | public EReference getCase_Condition() { | ||
1066 | return (EReference)caseEClass.getEStructuralFeatures().get(1); | ||
1067 | } | ||
1068 | |||
1069 | /** | ||
1070 | * <!-- begin-user-doc --> | ||
1071 | * <!-- end-user-doc --> | ||
1072 | * @generated | ||
1073 | */ | ||
1074 | @Override | ||
1075 | public EClass getLocalVariables() { | ||
1076 | return localVariablesEClass; | ||
1077 | } | ||
1078 | |||
1079 | /** | ||
1080 | * <!-- begin-user-doc --> | ||
1081 | * <!-- end-user-doc --> | ||
1082 | * @generated | ||
1083 | */ | ||
1084 | @Override | ||
1085 | public EReference getLocalVariables_Variables() { | ||
1086 | return (EReference)localVariablesEClass.getEStructuralFeatures().get(0); | ||
1087 | } | ||
1088 | |||
1089 | /** | ||
1090 | * <!-- begin-user-doc --> | ||
1091 | * <!-- end-user-doc --> | ||
1092 | * @generated | ||
1093 | */ | ||
1094 | @Override | ||
1095 | public EClass getQuantifiedExpression() { | ||
1096 | return quantifiedExpressionEClass; | ||
1097 | } | ||
1098 | |||
1099 | /** | ||
1100 | * <!-- begin-user-doc --> | ||
1101 | * <!-- end-user-doc --> | ||
1102 | * @generated | ||
1103 | */ | ||
1104 | @Override | ||
1105 | public EReference getQuantifiedExpression_LocalVariables() { | ||
1106 | return (EReference)quantifiedExpressionEClass.getEStructuralFeatures().get(0); | ||
1107 | } | ||
1108 | |||
1109 | /** | ||
1110 | * <!-- begin-user-doc --> | ||
1111 | * <!-- end-user-doc --> | ||
1112 | * @generated | ||
1113 | */ | ||
1114 | @Override | ||
1115 | public EReference getQuantifiedExpression_Body() { | ||
1116 | return (EReference)quantifiedExpressionEClass.getEStructuralFeatures().get(1); | ||
1117 | } | ||
1118 | |||
1119 | /** | ||
1120 | * <!-- begin-user-doc --> | ||
1121 | * <!-- end-user-doc --> | ||
1122 | * @generated | ||
1123 | */ | ||
1124 | @Override | ||
1125 | public EAttribute getQuantifiedExpression_Quantifier() { | ||
1126 | return (EAttribute)quantifiedExpressionEClass.getEStructuralFeatures().get(2); | ||
1127 | } | ||
1128 | |||
1129 | /** | ||
1130 | * <!-- begin-user-doc --> | ||
1131 | * <!-- end-user-doc --> | ||
1132 | * @generated | ||
1133 | */ | ||
1134 | @Override | ||
1135 | public EClass getAggregation() { | ||
1136 | return aggregationEClass; | ||
1137 | } | ||
1138 | |||
1139 | /** | ||
1140 | * <!-- begin-user-doc --> | ||
1141 | * <!-- end-user-doc --> | ||
1142 | * @generated | ||
1143 | */ | ||
1144 | @Override | ||
1145 | public EReference getAggregation_Op() { | ||
1146 | return (EReference)aggregationEClass.getEStructuralFeatures().get(0); | ||
1147 | } | ||
1148 | |||
1149 | /** | ||
1150 | * <!-- begin-user-doc --> | ||
1151 | * <!-- end-user-doc --> | ||
1152 | * @generated | ||
1153 | */ | ||
1154 | @Override | ||
1155 | public EReference getAggregation_LocalVariables() { | ||
1156 | return (EReference)aggregationEClass.getEStructuralFeatures().get(1); | ||
1157 | } | ||
1158 | |||
1159 | /** | ||
1160 | * <!-- begin-user-doc --> | ||
1161 | * <!-- end-user-doc --> | ||
1162 | * @generated | ||
1163 | */ | ||
1164 | @Override | ||
1165 | public EReference getAggregation_Body() { | ||
1166 | return (EReference)aggregationEClass.getEStructuralFeatures().get(2); | ||
1167 | } | ||
1168 | |||
1169 | /** | ||
1170 | * <!-- begin-user-doc --> | ||
1171 | * <!-- end-user-doc --> | ||
1172 | * @generated | ||
1173 | */ | ||
1174 | @Override | ||
1175 | public EReference getAggregation_Condition() { | ||
1176 | return (EReference)aggregationEClass.getEStructuralFeatures().get(3); | ||
1177 | } | ||
1178 | |||
1179 | /** | ||
1180 | * <!-- begin-user-doc --> | ||
1181 | * <!-- end-user-doc --> | ||
1182 | * @generated | ||
1183 | */ | ||
1184 | @Override | ||
1185 | public EClass getCall() { | ||
1186 | return callEClass; | ||
1187 | } | ||
1188 | |||
1189 | /** | ||
1190 | * <!-- begin-user-doc --> | ||
1191 | * <!-- end-user-doc --> | ||
1192 | * @generated | ||
1193 | */ | ||
1194 | @Override | ||
1195 | public EReference getCall_Functor() { | ||
1196 | return (EReference)callEClass.getEStructuralFeatures().get(0); | ||
1197 | } | ||
1198 | |||
1199 | /** | ||
1200 | * <!-- begin-user-doc --> | ||
1201 | * <!-- end-user-doc --> | ||
1202 | * @generated | ||
1203 | */ | ||
1204 | @Override | ||
1205 | public EAttribute getCall_TransitiveClosure() { | ||
1206 | return (EAttribute)callEClass.getEStructuralFeatures().get(1); | ||
1207 | } | ||
1208 | |||
1209 | /** | ||
1210 | * <!-- begin-user-doc --> | ||
1211 | * <!-- end-user-doc --> | ||
1212 | * @generated | ||
1213 | */ | ||
1214 | @Override | ||
1215 | public EAttribute getCall_ReflexiveTransitiveClosure() { | ||
1216 | return (EAttribute)callEClass.getEStructuralFeatures().get(2); | ||
1217 | } | ||
1218 | |||
1219 | /** | ||
1220 | * <!-- begin-user-doc --> | ||
1221 | * <!-- end-user-doc --> | ||
1222 | * @generated | ||
1223 | */ | ||
1224 | @Override | ||
1225 | public EReference getCall_ArgumentList() { | ||
1226 | return (EReference)callEClass.getEStructuralFeatures().get(3); | ||
1227 | } | ||
1228 | |||
1229 | /** | ||
1230 | * <!-- begin-user-doc --> | ||
1231 | * <!-- end-user-doc --> | ||
1232 | * @generated | ||
1233 | */ | ||
1234 | @Override | ||
1235 | public EClass getArgumentList() { | ||
1236 | return argumentListEClass; | ||
1237 | } | ||
1238 | |||
1239 | /** | ||
1240 | * <!-- begin-user-doc --> | ||
1241 | * <!-- end-user-doc --> | ||
1242 | * @generated | ||
1243 | */ | ||
1244 | @Override | ||
1245 | public EReference getArgumentList_Arguments() { | ||
1246 | return (EReference)argumentListEClass.getEStructuralFeatures().get(0); | ||
1247 | } | ||
1248 | |||
1249 | /** | ||
1250 | * <!-- begin-user-doc --> | ||
1251 | * <!-- end-user-doc --> | ||
1252 | * @generated | ||
1253 | */ | ||
1254 | @Override | ||
1255 | public EClass getArgument() { | ||
1256 | return argumentEClass; | ||
1257 | } | ||
1258 | |||
1259 | /** | ||
1260 | * <!-- begin-user-doc --> | ||
1261 | * <!-- end-user-doc --> | ||
1262 | * @generated | ||
1263 | */ | ||
1264 | @Override | ||
1265 | public EClass getExpressionArgument() { | ||
1266 | return expressionArgumentEClass; | ||
1267 | } | ||
1268 | |||
1269 | /** | ||
1270 | * <!-- begin-user-doc --> | ||
1271 | * <!-- end-user-doc --> | ||
1272 | * @generated | ||
1273 | */ | ||
1274 | @Override | ||
1275 | public EReference getExpressionArgument_Body() { | ||
1276 | return (EReference)expressionArgumentEClass.getEStructuralFeatures().get(0); | ||
1277 | } | ||
1278 | |||
1279 | /** | ||
1280 | * <!-- begin-user-doc --> | ||
1281 | * <!-- end-user-doc --> | ||
1282 | * @generated | ||
1283 | */ | ||
1284 | @Override | ||
1285 | public EClass getStarArgument() { | ||
1286 | return starArgumentEClass; | ||
1287 | } | ||
1288 | |||
1289 | /** | ||
1290 | * <!-- begin-user-doc --> | ||
1291 | * <!-- end-user-doc --> | ||
1292 | * @generated | ||
1293 | */ | ||
1294 | @Override | ||
1295 | public EClass getTypedArgument() { | ||
1296 | return typedArgumentEClass; | ||
1297 | } | ||
1298 | |||
1299 | /** | ||
1300 | * <!-- begin-user-doc --> | ||
1301 | * <!-- end-user-doc --> | ||
1302 | * @generated | ||
1303 | */ | ||
1304 | @Override | ||
1305 | public EReference getTypedArgument_Type() { | ||
1306 | return (EReference)typedArgumentEClass.getEStructuralFeatures().get(0); | ||
1307 | } | ||
1308 | |||
1309 | /** | ||
1310 | * <!-- begin-user-doc --> | ||
1311 | * <!-- end-user-doc --> | ||
1312 | * @generated | ||
1313 | */ | ||
1314 | @Override | ||
1315 | public EReference getTypedArgument_Variable() { | ||
1316 | return (EReference)typedArgumentEClass.getEStructuralFeatures().get(1); | ||
1317 | } | ||
1318 | |||
1319 | /** | ||
1320 | * <!-- begin-user-doc --> | ||
1321 | * <!-- end-user-doc --> | ||
1322 | * @generated | ||
1323 | */ | ||
1324 | @Override | ||
1325 | public EClass getTypedStarArgument() { | ||
1326 | return typedStarArgumentEClass; | ||
1327 | } | ||
1328 | |||
1329 | /** | ||
1330 | * <!-- begin-user-doc --> | ||
1331 | * <!-- end-user-doc --> | ||
1332 | * @generated | ||
1333 | */ | ||
1334 | @Override | ||
1335 | public EReference getTypedStarArgument_Type() { | ||
1336 | return (EReference)typedStarArgumentEClass.getEStructuralFeatures().get(0); | ||
1337 | } | ||
1338 | |||
1339 | /** | ||
1340 | * <!-- begin-user-doc --> | ||
1341 | * <!-- end-user-doc --> | ||
1342 | * @generated | ||
1343 | */ | ||
1344 | @Override | ||
1345 | public EClass getReference() { | ||
1346 | return referenceEClass; | ||
1347 | } | ||
1348 | |||
1349 | /** | ||
1350 | * <!-- begin-user-doc --> | ||
1351 | * <!-- end-user-doc --> | ||
1352 | * @generated | ||
1353 | */ | ||
1354 | @Override | ||
1355 | public EReference getReference_Referred() { | ||
1356 | return (EReference)referenceEClass.getEStructuralFeatures().get(0); | ||
1357 | } | ||
1358 | |||
1359 | /** | ||
1360 | * <!-- begin-user-doc --> | ||
1361 | * <!-- end-user-doc --> | ||
1362 | * @generated | ||
1363 | */ | ||
1364 | @Override | ||
1365 | public EClass getInterval() { | ||
1366 | return intervalEClass; | ||
1367 | } | ||
1368 | |||
1369 | /** | ||
1370 | * <!-- begin-user-doc --> | ||
1371 | * <!-- end-user-doc --> | ||
1372 | * @generated | ||
1373 | */ | ||
1374 | @Override | ||
1375 | public EReference getInterval_LowerBound() { | ||
1376 | return (EReference)intervalEClass.getEStructuralFeatures().get(0); | ||
1377 | } | ||
1378 | |||
1379 | /** | ||
1380 | * <!-- begin-user-doc --> | ||
1381 | * <!-- end-user-doc --> | ||
1382 | * @generated | ||
1383 | */ | ||
1384 | @Override | ||
1385 | public EReference getInterval_UpperBound() { | ||
1386 | return (EReference)intervalEClass.getEStructuralFeatures().get(1); | ||
1387 | } | ||
1388 | |||
1389 | /** | ||
1390 | * <!-- begin-user-doc --> | ||
1391 | * <!-- end-user-doc --> | ||
1392 | * @generated | ||
1393 | */ | ||
1394 | @Override | ||
1395 | public EClass getLiteral() { | ||
1396 | return literalEClass; | ||
1397 | } | ||
1398 | |||
1399 | /** | ||
1400 | * <!-- begin-user-doc --> | ||
1401 | * <!-- end-user-doc --> | ||
1402 | * @generated | ||
1403 | */ | ||
1404 | @Override | ||
1405 | public EClass getLogicLiteral() { | ||
1406 | return logicLiteralEClass; | ||
1407 | } | ||
1408 | |||
1409 | /** | ||
1410 | * <!-- begin-user-doc --> | ||
1411 | * <!-- end-user-doc --> | ||
1412 | * @generated | ||
1413 | */ | ||
1414 | @Override | ||
1415 | public EAttribute getLogicLiteral_Value() { | ||
1416 | return (EAttribute)logicLiteralEClass.getEStructuralFeatures().get(0); | ||
1417 | } | ||
1418 | |||
1419 | /** | ||
1420 | * <!-- begin-user-doc --> | ||
1421 | * <!-- end-user-doc --> | ||
1422 | * @generated | ||
1423 | */ | ||
1424 | @Override | ||
1425 | public EClass getNumericLiteral() { | ||
1426 | return numericLiteralEClass; | ||
1427 | } | ||
1428 | |||
1429 | /** | ||
1430 | * <!-- begin-user-doc --> | ||
1431 | * <!-- end-user-doc --> | ||
1432 | * @generated | ||
1433 | */ | ||
1434 | @Override | ||
1435 | public EAttribute getNumericLiteral_Value() { | ||
1436 | return (EAttribute)numericLiteralEClass.getEStructuralFeatures().get(0); | ||
1437 | } | ||
1438 | |||
1439 | /** | ||
1440 | * <!-- begin-user-doc --> | ||
1441 | * <!-- end-user-doc --> | ||
1442 | * @generated | ||
1443 | */ | ||
1444 | @Override | ||
1445 | public EClass getInfinityLiteral() { | ||
1446 | return infinityLiteralEClass; | ||
1447 | } | ||
1448 | |||
1449 | /** | ||
1450 | * <!-- begin-user-doc --> | ||
1451 | * <!-- end-user-doc --> | ||
1452 | * @generated | ||
1453 | */ | ||
1454 | @Override | ||
1455 | public EClass getEmptyIntervalLiteral() { | ||
1456 | return emptyIntervalLiteralEClass; | ||
1457 | } | ||
1458 | |||
1459 | /** | ||
1460 | * <!-- begin-user-doc --> | ||
1461 | * <!-- end-user-doc --> | ||
1462 | * @generated | ||
1463 | */ | ||
1464 | @Override | ||
1465 | public EClass getStringLiteral() { | ||
1466 | return stringLiteralEClass; | ||
1467 | } | ||
1468 | |||
1469 | /** | ||
1470 | * <!-- begin-user-doc --> | ||
1471 | * <!-- end-user-doc --> | ||
1472 | * @generated | ||
1473 | */ | ||
1474 | @Override | ||
1475 | public EAttribute getStringLiteral_Value() { | ||
1476 | return (EAttribute)stringLiteralEClass.getEStructuralFeatures().get(0); | ||
1477 | } | ||
1478 | |||
1479 | /** | ||
1480 | * <!-- begin-user-doc --> | ||
1481 | * <!-- end-user-doc --> | ||
1482 | * @generated | ||
1483 | */ | ||
1484 | @Override | ||
1485 | public EClass getClassDefinition() { | ||
1486 | return classDefinitionEClass; | ||
1487 | } | ||
1488 | |||
1489 | /** | ||
1490 | * <!-- begin-user-doc --> | ||
1491 | * <!-- end-user-doc --> | ||
1492 | * @generated | ||
1493 | */ | ||
1494 | @Override | ||
1495 | public EAttribute getClassDefinition_Abstract() { | ||
1496 | return (EAttribute)classDefinitionEClass.getEStructuralFeatures().get(0); | ||
1497 | } | ||
1498 | |||
1499 | /** | ||
1500 | * <!-- begin-user-doc --> | ||
1501 | * <!-- end-user-doc --> | ||
1502 | * @generated | ||
1503 | */ | ||
1504 | @Override | ||
1505 | public EAttribute getClassDefinition_Name() { | ||
1506 | return (EAttribute)classDefinitionEClass.getEStructuralFeatures().get(1); | ||
1507 | } | ||
1508 | |||
1509 | /** | ||
1510 | * <!-- begin-user-doc --> | ||
1511 | * <!-- end-user-doc --> | ||
1512 | * @generated | ||
1513 | */ | ||
1514 | @Override | ||
1515 | public EReference getClassDefinition_Superclasses() { | ||
1516 | return (EReference)classDefinitionEClass.getEStructuralFeatures().get(2); | ||
1517 | } | ||
1518 | |||
1519 | /** | ||
1520 | * <!-- begin-user-doc --> | ||
1521 | * <!-- end-user-doc --> | ||
1522 | * @generated | ||
1523 | */ | ||
1524 | @Override | ||
1525 | public EReference getClassDefinition_Members() { | ||
1526 | return (EReference)classDefinitionEClass.getEStructuralFeatures().get(3); | ||
1527 | } | ||
1528 | |||
1529 | /** | ||
1530 | * <!-- begin-user-doc --> | ||
1531 | * <!-- end-user-doc --> | ||
1532 | * @generated | ||
1533 | */ | ||
1534 | @Override | ||
1535 | public EClass getMemberDefinition() { | ||
1536 | return memberDefinitionEClass; | ||
1537 | } | ||
1538 | |||
1539 | /** | ||
1540 | * <!-- begin-user-doc --> | ||
1541 | * <!-- end-user-doc --> | ||
1542 | * @generated | ||
1543 | */ | ||
1544 | @Override | ||
1545 | public EAttribute getMemberDefinition_Containment() { | ||
1546 | return (EAttribute)memberDefinitionEClass.getEStructuralFeatures().get(0); | ||
1547 | } | ||
1548 | |||
1549 | /** | ||
1550 | * <!-- begin-user-doc --> | ||
1551 | * <!-- end-user-doc --> | ||
1552 | * @generated | ||
1553 | */ | ||
1554 | @Override | ||
1555 | public EReference getMemberDefinition_Type() { | ||
1556 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(1); | ||
1557 | } | ||
1558 | |||
1559 | /** | ||
1560 | * <!-- begin-user-doc --> | ||
1561 | * <!-- end-user-doc --> | ||
1562 | * @generated | ||
1563 | */ | ||
1564 | @Override | ||
1565 | public EReference getMemberDefinition_Multiplicity() { | ||
1566 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(2); | ||
1567 | } | ||
1568 | |||
1569 | /** | ||
1570 | * <!-- begin-user-doc --> | ||
1571 | * <!-- end-user-doc --> | ||
1572 | * @generated | ||
1573 | */ | ||
1574 | @Override | ||
1575 | public EAttribute getMemberDefinition_Name() { | ||
1576 | return (EAttribute)memberDefinitionEClass.getEStructuralFeatures().get(3); | ||
1577 | } | ||
1578 | |||
1579 | /** | ||
1580 | * <!-- begin-user-doc --> | ||
1581 | * <!-- end-user-doc --> | ||
1582 | * @generated | ||
1583 | */ | ||
1584 | @Override | ||
1585 | public EReference getMemberDefinition_Opposite() { | ||
1586 | return (EReference)memberDefinitionEClass.getEStructuralFeatures().get(4); | ||
1587 | } | ||
1588 | |||
1589 | /** | ||
1590 | * <!-- begin-user-doc --> | ||
1591 | * <!-- end-user-doc --> | ||
1592 | * @generated | ||
1593 | */ | ||
1594 | @Override | ||
1595 | public EClass getMultiplicity() { | ||
1596 | return multiplicityEClass; | ||
1597 | } | ||
1598 | |||
1599 | /** | ||
1600 | * <!-- begin-user-doc --> | ||
1601 | * <!-- end-user-doc --> | ||
1602 | * @generated | ||
1603 | */ | ||
1604 | @Override | ||
1605 | public EClass getManyMultiplicity() { | ||
1606 | return manyMultiplicityEClass; | ||
1607 | } | ||
1608 | |||
1609 | /** | ||
1610 | * <!-- begin-user-doc --> | ||
1611 | * <!-- end-user-doc --> | ||
1612 | * @generated | ||
1613 | */ | ||
1614 | @Override | ||
1615 | public EClass getExactMultiplicity() { | ||
1616 | return exactMultiplicityEClass; | ||
1617 | } | ||
1618 | |||
1619 | /** | ||
1620 | * <!-- begin-user-doc --> | ||
1621 | * <!-- end-user-doc --> | ||
1622 | * @generated | ||
1623 | */ | ||
1624 | @Override | ||
1625 | public EAttribute getExactMultiplicity_Multiplicity() { | ||
1626 | return (EAttribute)exactMultiplicityEClass.getEStructuralFeatures().get(0); | ||
1627 | } | ||
1628 | |||
1629 | /** | ||
1630 | * <!-- begin-user-doc --> | ||
1631 | * <!-- end-user-doc --> | ||
1632 | * @generated | ||
1633 | */ | ||
1634 | @Override | ||
1635 | public EClass getBoundedMultiplicity() { | ||
1636 | return boundedMultiplicityEClass; | ||
1637 | } | ||
1638 | |||
1639 | /** | ||
1640 | * <!-- begin-user-doc --> | ||
1641 | * <!-- end-user-doc --> | ||
1642 | * @generated | ||
1643 | */ | ||
1644 | @Override | ||
1645 | public EAttribute getBoundedMultiplicity_LowerBound() { | ||
1646 | return (EAttribute)boundedMultiplicityEClass.getEStructuralFeatures().get(0); | ||
1647 | } | ||
1648 | |||
1649 | /** | ||
1650 | * <!-- begin-user-doc --> | ||
1651 | * <!-- end-user-doc --> | ||
1652 | * @generated | ||
1653 | */ | ||
1654 | @Override | ||
1655 | public EAttribute getBoundedMultiplicity_UpperBound() { | ||
1656 | return (EAttribute)boundedMultiplicityEClass.getEStructuralFeatures().get(1); | ||
1657 | } | ||
1658 | |||
1659 | /** | ||
1660 | * <!-- begin-user-doc --> | ||
1661 | * <!-- end-user-doc --> | ||
1662 | * @generated | ||
1663 | */ | ||
1664 | @Override | ||
1665 | public EClass getScopeDefinition() { | ||
1666 | return scopeDefinitionEClass; | ||
1667 | } | ||
1668 | |||
1669 | /** | ||
1670 | * <!-- begin-user-doc --> | ||
1671 | * <!-- end-user-doc --> | ||
1672 | * @generated | ||
1673 | */ | ||
1674 | @Override | ||
1675 | public EReference getScopeDefinition_Type() { | ||
1676 | return (EReference)scopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1677 | } | ||
1678 | |||
1679 | /** | ||
1680 | * <!-- begin-user-doc --> | ||
1681 | * <!-- end-user-doc --> | ||
1682 | * @generated | ||
1683 | */ | ||
1684 | @Override | ||
1685 | public EClass getExactScopeDefinition() { | ||
1686 | return exactScopeDefinitionEClass; | ||
1687 | } | ||
1688 | |||
1689 | /** | ||
1690 | * <!-- begin-user-doc --> | ||
1691 | * <!-- end-user-doc --> | ||
1692 | * @generated | ||
1693 | */ | ||
1694 | @Override | ||
1695 | public EAttribute getExactScopeDefinition_ExactScope() { | ||
1696 | return (EAttribute)exactScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1697 | } | ||
1698 | |||
1699 | /** | ||
1700 | * <!-- begin-user-doc --> | ||
1701 | * <!-- end-user-doc --> | ||
1702 | * @generated | ||
1703 | */ | ||
1704 | @Override | ||
1705 | public EClass getBoundedScopeDefinition() { | ||
1706 | return boundedScopeDefinitionEClass; | ||
1707 | } | ||
1708 | |||
1709 | /** | ||
1710 | * <!-- begin-user-doc --> | ||
1711 | * <!-- end-user-doc --> | ||
1712 | * @generated | ||
1713 | */ | ||
1714 | @Override | ||
1715 | public EAttribute getBoundedScopeDefinition_LowerBound() { | ||
1716 | return (EAttribute)boundedScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1717 | } | ||
1718 | |||
1719 | /** | ||
1720 | * <!-- begin-user-doc --> | ||
1721 | * <!-- end-user-doc --> | ||
1722 | * @generated | ||
1723 | */ | ||
1724 | @Override | ||
1725 | public EAttribute getBoundedScopeDefinition_UpperBound() { | ||
1726 | return (EAttribute)boundedScopeDefinitionEClass.getEStructuralFeatures().get(1); | ||
1727 | } | ||
1728 | |||
1729 | /** | ||
1730 | * <!-- begin-user-doc --> | ||
1731 | * <!-- end-user-doc --> | ||
1732 | * @generated | ||
1733 | */ | ||
1734 | @Override | ||
1735 | public EClass getLowerBoundedScopeDefinition() { | ||
1736 | return lowerBoundedScopeDefinitionEClass; | ||
1737 | } | ||
1738 | |||
1739 | /** | ||
1740 | * <!-- begin-user-doc --> | ||
1741 | * <!-- end-user-doc --> | ||
1742 | * @generated | ||
1743 | */ | ||
1744 | @Override | ||
1745 | public EAttribute getLowerBoundedScopeDefinition_LowerBound() { | ||
1746 | return (EAttribute)lowerBoundedScopeDefinitionEClass.getEStructuralFeatures().get(0); | ||
1747 | } | ||
1748 | |||
1749 | /** | ||
1750 | * <!-- begin-user-doc --> | ||
1751 | * <!-- end-user-doc --> | ||
1752 | * @generated | ||
1753 | */ | ||
1754 | @Override | ||
1755 | public EClass getObjectiveDefinition() { | ||
1756 | return objectiveDefinitionEClass; | ||
1757 | } | ||
1758 | |||
1759 | /** | ||
1760 | * <!-- begin-user-doc --> | ||
1761 | * <!-- end-user-doc --> | ||
1762 | * @generated | ||
1763 | */ | ||
1764 | @Override | ||
1765 | public EAttribute getObjectiveDefinition_Kind() { | ||
1766 | return (EAttribute)objectiveDefinitionEClass.getEStructuralFeatures().get(0); | ||
1767 | } | ||
1768 | |||
1769 | /** | ||
1770 | * <!-- begin-user-doc --> | ||
1771 | * <!-- end-user-doc --> | ||
1772 | * @generated | ||
1773 | */ | ||
1774 | @Override | ||
1775 | public EReference getObjectiveDefinition_Objective() { | ||
1776 | return (EReference)objectiveDefinitionEClass.getEStructuralFeatures().get(1); | ||
1777 | } | ||
1778 | |||
1779 | /** | ||
1780 | * <!-- begin-user-doc --> | ||
1781 | * <!-- end-user-doc --> | ||
1782 | * @generated | ||
1783 | */ | ||
1784 | @Override | ||
1785 | public EClass getInterpretation() { | ||
1786 | return interpretationEClass; | ||
1787 | } | ||
1788 | |||
1789 | /** | ||
1790 | * <!-- begin-user-doc --> | ||
1791 | * <!-- end-user-doc --> | ||
1792 | * @generated | ||
1793 | */ | ||
1794 | @Override | ||
1795 | public EReference getInterpretation_Body() { | ||
1796 | return (EReference)interpretationEClass.getEStructuralFeatures().get(0); | ||
1797 | } | ||
1798 | |||
1799 | /** | ||
1800 | * <!-- begin-user-doc --> | ||
1801 | * <!-- end-user-doc --> | ||
1802 | * @generated | ||
1803 | */ | ||
1804 | @Override | ||
1805 | public EReference getInterpretation_Range() { | ||
1806 | return (EReference)interpretationEClass.getEStructuralFeatures().get(1); | ||
1807 | } | ||
1808 | |||
1809 | /** | ||
1810 | * <!-- begin-user-doc --> | ||
1811 | * <!-- end-user-doc --> | ||
1812 | * @generated | ||
1813 | */ | ||
1814 | @Override | ||
1815 | public EClass getVariable() { | ||
1816 | return variableEClass; | ||
1817 | } | ||
1818 | |||
1819 | /** | ||
1820 | * <!-- begin-user-doc --> | ||
1821 | * <!-- end-user-doc --> | ||
1822 | * @generated | ||
1823 | */ | ||
1824 | @Override | ||
1825 | public EReference getVariable_Type() { | ||
1826 | return (EReference)variableEClass.getEStructuralFeatures().get(0); | ||
1827 | } | ||
1828 | |||
1829 | /** | ||
1830 | * <!-- begin-user-doc --> | ||
1831 | * <!-- end-user-doc --> | ||
1832 | * @generated | ||
1833 | */ | ||
1834 | @Override | ||
1835 | public EClass getDisjunction() { | ||
1836 | return disjunctionEClass; | ||
1837 | } | ||
1838 | |||
1839 | /** | ||
1840 | * <!-- begin-user-doc --> | ||
1841 | * <!-- end-user-doc --> | ||
1842 | * @generated | ||
1843 | */ | ||
1844 | @Override | ||
1845 | public EReference getDisjunction_Children() { | ||
1846 | return (EReference)disjunctionEClass.getEStructuralFeatures().get(0); | ||
1847 | } | ||
1848 | |||
1849 | /** | ||
1850 | * <!-- begin-user-doc --> | ||
1851 | * <!-- end-user-doc --> | ||
1852 | * @generated | ||
1853 | */ | ||
1854 | @Override | ||
1855 | public EClass getSwitch() { | ||
1856 | return switchEClass; | ||
1857 | } | ||
1858 | |||
1859 | /** | ||
1860 | * <!-- begin-user-doc --> | ||
1861 | * <!-- end-user-doc --> | ||
1862 | * @generated | ||
1863 | */ | ||
1864 | @Override | ||
1865 | public EReference getSwitch_Cases() { | ||
1866 | return (EReference)switchEClass.getEStructuralFeatures().get(0); | ||
1867 | } | ||
1868 | |||
1869 | /** | ||
1870 | * <!-- begin-user-doc --> | ||
1871 | * <!-- end-user-doc --> | ||
1872 | * @generated | ||
1873 | */ | ||
1874 | @Override | ||
1875 | public EClass getConjunction() { | ||
1876 | return conjunctionEClass; | ||
1877 | } | ||
1878 | |||
1879 | /** | ||
1880 | * <!-- begin-user-doc --> | ||
1881 | * <!-- end-user-doc --> | ||
1882 | * @generated | ||
1883 | */ | ||
1884 | @Override | ||
1885 | public EReference getConjunction_Children() { | ||
1886 | return (EReference)conjunctionEClass.getEStructuralFeatures().get(0); | ||
1887 | } | ||
1888 | |||
1889 | /** | ||
1890 | * <!-- begin-user-doc --> | ||
1891 | * <!-- end-user-doc --> | ||
1892 | * @generated | ||
1893 | */ | ||
1894 | @Override | ||
1895 | public EClass getComparison() { | ||
1896 | return comparisonEClass; | ||
1897 | } | ||
1898 | |||
1899 | /** | ||
1900 | * <!-- begin-user-doc --> | ||
1901 | * <!-- end-user-doc --> | ||
1902 | * @generated | ||
1903 | */ | ||
1904 | @Override | ||
1905 | public EReference getComparison_Left() { | ||
1906 | return (EReference)comparisonEClass.getEStructuralFeatures().get(0); | ||
1907 | } | ||
1908 | |||
1909 | /** | ||
1910 | * <!-- begin-user-doc --> | ||
1911 | * <!-- end-user-doc --> | ||
1912 | * @generated | ||
1913 | */ | ||
1914 | @Override | ||
1915 | public EAttribute getComparison_Op() { | ||
1916 | return (EAttribute)comparisonEClass.getEStructuralFeatures().get(1); | ||
1917 | } | ||
1918 | |||
1919 | /** | ||
1920 | * <!-- begin-user-doc --> | ||
1921 | * <!-- end-user-doc --> | ||
1922 | * @generated | ||
1923 | */ | ||
1924 | @Override | ||
1925 | public EReference getComparison_Right() { | ||
1926 | return (EReference)comparisonEClass.getEStructuralFeatures().get(2); | ||
1927 | } | ||
1928 | |||
1929 | /** | ||
1930 | * <!-- begin-user-doc --> | ||
1931 | * <!-- end-user-doc --> | ||
1932 | * @generated | ||
1933 | */ | ||
1934 | @Override | ||
1935 | public EClass getBinaryExpression() { | ||
1936 | return binaryExpressionEClass; | ||
1937 | } | ||
1938 | |||
1939 | /** | ||
1940 | * <!-- begin-user-doc --> | ||
1941 | * <!-- end-user-doc --> | ||
1942 | * @generated | ||
1943 | */ | ||
1944 | @Override | ||
1945 | public EReference getBinaryExpression_Left() { | ||
1946 | return (EReference)binaryExpressionEClass.getEStructuralFeatures().get(0); | ||
1947 | } | ||
1948 | |||
1949 | /** | ||
1950 | * <!-- begin-user-doc --> | ||
1951 | * <!-- end-user-doc --> | ||
1952 | * @generated | ||
1953 | */ | ||
1954 | @Override | ||
1955 | public EAttribute getBinaryExpression_Op() { | ||
1956 | return (EAttribute)binaryExpressionEClass.getEStructuralFeatures().get(1); | ||
1957 | } | ||
1958 | |||
1959 | /** | ||
1960 | * <!-- begin-user-doc --> | ||
1961 | * <!-- end-user-doc --> | ||
1962 | * @generated | ||
1963 | */ | ||
1964 | @Override | ||
1965 | public EReference getBinaryExpression_Right() { | ||
1966 | return (EReference)binaryExpressionEClass.getEStructuralFeatures().get(2); | ||
1967 | } | ||
1968 | |||
1969 | /** | ||
1970 | * <!-- begin-user-doc --> | ||
1971 | * <!-- end-user-doc --> | ||
1972 | * @generated | ||
1973 | */ | ||
1974 | @Override | ||
1975 | public EClass getCastExpression() { | ||
1976 | return castExpressionEClass; | ||
1977 | } | ||
1978 | |||
1979 | /** | ||
1980 | * <!-- begin-user-doc --> | ||
1981 | * <!-- end-user-doc --> | ||
1982 | * @generated | ||
1983 | */ | ||
1984 | @Override | ||
1985 | public EReference getCastExpression_Body() { | ||
1986 | return (EReference)castExpressionEClass.getEStructuralFeatures().get(0); | ||
1987 | } | ||
1988 | |||
1989 | /** | ||
1990 | * <!-- begin-user-doc --> | ||
1991 | * <!-- end-user-doc --> | ||
1992 | * @generated | ||
1993 | */ | ||
1994 | @Override | ||
1995 | public EReference getCastExpression_Type() { | ||
1996 | return (EReference)castExpressionEClass.getEStructuralFeatures().get(1); | ||
1997 | } | ||
1998 | |||
1999 | /** | ||
2000 | * <!-- begin-user-doc --> | ||
2001 | * <!-- end-user-doc --> | ||
2002 | * @generated | ||
2003 | */ | ||
2004 | @Override | ||
2005 | public EClass getUnaryExpression() { | ||
2006 | return unaryExpressionEClass; | ||
2007 | } | ||
2008 | |||
2009 | /** | ||
2010 | * <!-- begin-user-doc --> | ||
2011 | * <!-- end-user-doc --> | ||
2012 | * @generated | ||
2013 | */ | ||
2014 | @Override | ||
2015 | public EAttribute getUnaryExpression_Op() { | ||
2016 | return (EAttribute)unaryExpressionEClass.getEStructuralFeatures().get(0); | ||
2017 | } | ||
2018 | |||
2019 | /** | ||
2020 | * <!-- begin-user-doc --> | ||
2021 | * <!-- end-user-doc --> | ||
2022 | * @generated | ||
2023 | */ | ||
2024 | @Override | ||
2025 | public EReference getUnaryExpression_Body() { | ||
2026 | return (EReference)unaryExpressionEClass.getEStructuralFeatures().get(1); | ||
2027 | } | ||
2028 | |||
2029 | /** | ||
2030 | * <!-- begin-user-doc --> | ||
2031 | * <!-- end-user-doc --> | ||
2032 | * @generated | ||
2033 | */ | ||
2034 | @Override | ||
2035 | public EClass getNode() { | ||
2036 | return nodeEClass; | ||
2037 | } | ||
2038 | |||
2039 | /** | ||
2040 | * <!-- begin-user-doc --> | ||
2041 | * <!-- end-user-doc --> | ||
2042 | * @generated | ||
2043 | */ | ||
2044 | @Override | ||
2045 | public EAttribute getNode_WithId() { | ||
2046 | return (EAttribute)nodeEClass.getEStructuralFeatures().get(0); | ||
2047 | } | ||
2048 | |||
2049 | /** | ||
2050 | * <!-- begin-user-doc --> | ||
2051 | * <!-- end-user-doc --> | ||
2052 | * @generated | ||
2053 | */ | ||
2054 | @Override | ||
2055 | public EClass getFunctor() { | ||
2056 | return functorEClass; | ||
2057 | } | ||
2058 | |||
2059 | /** | ||
2060 | * <!-- begin-user-doc --> | ||
2061 | * <!-- end-user-doc --> | ||
2062 | * @generated | ||
2063 | */ | ||
2064 | @Override | ||
2065 | public EReference getFunctor_Parameters() { | ||
2066 | return (EReference)functorEClass.getEStructuralFeatures().get(0); | ||
2067 | } | ||
2068 | |||
2069 | /** | ||
2070 | * <!-- begin-user-doc --> | ||
2071 | * <!-- end-user-doc --> | ||
2072 | * @generated | ||
2073 | */ | ||
2074 | @Override | ||
2075 | public EClass getPredicate() { | ||
2076 | return predicateEClass; | ||
2077 | } | ||
2078 | |||
2079 | /** | ||
2080 | * <!-- begin-user-doc --> | ||
2081 | * <!-- end-user-doc --> | ||
2082 | * @generated | ||
2083 | */ | ||
2084 | @Override | ||
2085 | public EClass getMetric() { | ||
2086 | return metricEClass; | ||
2087 | } | ||
2088 | |||
2089 | /** | ||
2090 | * <!-- begin-user-doc --> | ||
2091 | * <!-- end-user-doc --> | ||
2092 | * @generated | ||
2093 | */ | ||
2094 | @Override | ||
2095 | public EReference getMetric_ReturnType() { | ||
2096 | return (EReference)metricEClass.getEStructuralFeatures().get(0); | ||
2097 | } | ||
2098 | |||
2099 | /** | ||
2100 | * <!-- begin-user-doc --> | ||
2101 | * <!-- end-user-doc --> | ||
2102 | * @generated | ||
2103 | */ | ||
2104 | @Override | ||
2105 | public EEnum getBinaryOperator() { | ||
2106 | return binaryOperatorEEnum; | ||
2107 | } | ||
2108 | |||
2109 | /** | ||
2110 | * <!-- begin-user-doc --> | ||
2111 | * <!-- end-user-doc --> | ||
2112 | * @generated | ||
2113 | */ | ||
2114 | @Override | ||
2115 | public EEnum getUnaryOp() { | ||
2116 | return unaryOpEEnum; | ||
2117 | } | ||
2118 | |||
2119 | /** | ||
2120 | * <!-- begin-user-doc --> | ||
2121 | * <!-- end-user-doc --> | ||
2122 | * @generated | ||
2123 | */ | ||
2124 | @Override | ||
2125 | public EEnum getLogicValue() { | ||
2126 | return logicValueEEnum; | ||
2127 | } | ||
2128 | |||
2129 | /** | ||
2130 | * <!-- begin-user-doc --> | ||
2131 | * <!-- end-user-doc --> | ||
2132 | * @generated | ||
2133 | */ | ||
2134 | @Override | ||
2135 | public EEnum getObjectiveKind() { | ||
2136 | return objectiveKindEEnum; | ||
2137 | } | ||
2138 | |||
2139 | /** | ||
2140 | * <!-- begin-user-doc --> | ||
2141 | * <!-- end-user-doc --> | ||
2142 | * @generated | ||
2143 | */ | ||
2144 | @Override | ||
2145 | public EEnum getQuantifier() { | ||
2146 | return quantifierEEnum; | ||
2147 | } | ||
2148 | |||
2149 | /** | ||
2150 | * <!-- begin-user-doc --> | ||
2151 | * <!-- end-user-doc --> | ||
2152 | * @generated | ||
2153 | */ | ||
2154 | @Override | ||
2155 | public SolverLanguageFactory getSolverLanguageFactory() { | ||
2156 | return (SolverLanguageFactory)getEFactoryInstance(); | ||
2157 | } | ||
2158 | |||
2159 | /** | ||
2160 | * <!-- begin-user-doc --> | ||
2161 | * <!-- end-user-doc --> | ||
2162 | * @generated | ||
2163 | */ | ||
2164 | private boolean isCreated = false; | ||
2165 | |||
2166 | /** | ||
2167 | * Creates the meta-model objects for the package. This method is | ||
2168 | * guarded to have no affect on any invocation but its first. | ||
2169 | * <!-- begin-user-doc --> | ||
2170 | * <!-- end-user-doc --> | ||
2171 | * @generated | ||
2172 | */ | ||
2173 | public void createPackageContents() { | ||
2174 | if (isCreated) return; | ||
2175 | isCreated = true; | ||
2176 | |||
2177 | // Create classes and their features | ||
2178 | problemEClass = createEClass(PROBLEM); | ||
2179 | createEReference(problemEClass, PROBLEM__STATEMENTS); | ||
2180 | |||
2181 | statementEClass = createEClass(STATEMENT); | ||
2182 | |||
2183 | predicateDefinitionEClass = createEClass(PREDICATE_DEFINITION); | ||
2184 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__HEAD); | ||
2185 | createEReference(predicateDefinitionEClass, PREDICATE_DEFINITION__BODY); | ||
2186 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__FUNCTIONAL); | ||
2187 | createEAttribute(predicateDefinitionEClass, PREDICATE_DEFINITION__ERROR); | ||
2188 | |||
2189 | unnamedErrorPrediateDefinitionEClass = createEClass(UNNAMED_ERROR_PREDIATE_DEFINITION); | ||
2190 | createEReference(unnamedErrorPrediateDefinitionEClass, UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST); | ||
2191 | createEReference(unnamedErrorPrediateDefinitionEClass, UNNAMED_ERROR_PREDIATE_DEFINITION__BODY); | ||
2192 | |||
2193 | defaultDefinitionEClass = createEClass(DEFAULT_DEFINITION); | ||
2194 | createEReference(defaultDefinitionEClass, DEFAULT_DEFINITION__HEAD); | ||
2195 | createEReference(defaultDefinitionEClass, DEFAULT_DEFINITION__RANGE); | ||
2196 | |||
2197 | metricDefinitionEClass = createEClass(METRIC_DEFINITION); | ||
2198 | createEReference(metricDefinitionEClass, METRIC_DEFINITION__HEAD); | ||
2199 | createEReference(metricDefinitionEClass, METRIC_DEFINITION__BODY); | ||
2200 | createEReference(metricDefinitionEClass, METRIC_DEFINITION__TYPE); | ||
2201 | |||
2202 | externPredicateDefinitionEClass = createEClass(EXTERN_PREDICATE_DEFINITION); | ||
2203 | createEAttribute(externPredicateDefinitionEClass, EXTERN_PREDICATE_DEFINITION__NAME); | ||
2204 | createEReference(externPredicateDefinitionEClass, EXTERN_PREDICATE_DEFINITION__ARGUMENT_LIST); | ||
2205 | |||
2206 | externMetricDefinitionEClass = createEClass(EXTERN_METRIC_DEFINITION); | ||
2207 | createEReference(externMetricDefinitionEClass, EXTERN_METRIC_DEFINITION__TYPE); | ||
2208 | createEAttribute(externMetricDefinitionEClass, EXTERN_METRIC_DEFINITION__NAME); | ||
2209 | createEReference(externMetricDefinitionEClass, EXTERN_METRIC_DEFINITION__ARGUMENT_LIST); | ||
2210 | |||
2211 | externAggregatorDefinitionEClass = createEClass(EXTERN_AGGREGATOR_DEFINITION); | ||
2212 | createEReference(externAggregatorDefinitionEClass, EXTERN_AGGREGATOR_DEFINITION__TYPE); | ||
2213 | createEAttribute(externAggregatorDefinitionEClass, EXTERN_AGGREGATOR_DEFINITION__NAME); | ||
2214 | createEReference(externAggregatorDefinitionEClass, EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE); | ||
2215 | |||
2216 | externDatatypeDefinitionEClass = createEClass(EXTERN_DATATYPE_DEFINITION); | ||
2217 | createEAttribute(externDatatypeDefinitionEClass, EXTERN_DATATYPE_DEFINITION__NAME); | ||
2218 | createEReference(externDatatypeDefinitionEClass, EXTERN_DATATYPE_DEFINITION__SUPERTYPES); | ||
2219 | |||
2220 | namedElementEClass = createEClass(NAMED_ELEMENT); | ||
2221 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); | ||
2222 | |||
2223 | expressionEClass = createEClass(EXPRESSION); | ||
2224 | |||
2225 | ifElseEClass = createEClass(IF_ELSE); | ||
2226 | createEReference(ifElseEClass, IF_ELSE__THEN); | ||
2227 | createEReference(ifElseEClass, IF_ELSE__ELSE); | ||
2228 | createEReference(ifElseEClass, IF_ELSE__CONDITION); | ||
2229 | |||
2230 | letEClass = createEClass(LET); | ||
2231 | createEReference(letEClass, LET__BINDINGS); | ||
2232 | createEReference(letEClass, LET__BODY); | ||
2233 | |||
2234 | letBindingEClass = createEClass(LET_BINDING); | ||
2235 | createEReference(letBindingEClass, LET_BINDING__VARIABLE); | ||
2236 | createEReference(letBindingEClass, LET_BINDING__VALUE); | ||
2237 | |||
2238 | caseEClass = createEClass(CASE); | ||
2239 | createEReference(caseEClass, CASE__BODY); | ||
2240 | createEReference(caseEClass, CASE__CONDITION); | ||
2241 | |||
2242 | localVariablesEClass = createEClass(LOCAL_VARIABLES); | ||
2243 | createEReference(localVariablesEClass, LOCAL_VARIABLES__VARIABLES); | ||
2244 | |||
2245 | quantifiedExpressionEClass = createEClass(QUANTIFIED_EXPRESSION); | ||
2246 | createEReference(quantifiedExpressionEClass, QUANTIFIED_EXPRESSION__LOCAL_VARIABLES); | ||
2247 | createEReference(quantifiedExpressionEClass, QUANTIFIED_EXPRESSION__BODY); | ||
2248 | createEAttribute(quantifiedExpressionEClass, QUANTIFIED_EXPRESSION__QUANTIFIER); | ||
2249 | |||
2250 | aggregationEClass = createEClass(AGGREGATION); | ||
2251 | createEReference(aggregationEClass, AGGREGATION__OP); | ||
2252 | createEReference(aggregationEClass, AGGREGATION__LOCAL_VARIABLES); | ||
2253 | createEReference(aggregationEClass, AGGREGATION__BODY); | ||
2254 | createEReference(aggregationEClass, AGGREGATION__CONDITION); | ||
2255 | |||
2256 | callEClass = createEClass(CALL); | ||
2257 | createEReference(callEClass, CALL__FUNCTOR); | ||
2258 | createEAttribute(callEClass, CALL__TRANSITIVE_CLOSURE); | ||
2259 | createEAttribute(callEClass, CALL__REFLEXIVE_TRANSITIVE_CLOSURE); | ||
2260 | createEReference(callEClass, CALL__ARGUMENT_LIST); | ||
2261 | |||
2262 | argumentListEClass = createEClass(ARGUMENT_LIST); | ||
2263 | createEReference(argumentListEClass, ARGUMENT_LIST__ARGUMENTS); | ||
2264 | |||
2265 | argumentEClass = createEClass(ARGUMENT); | ||
2266 | |||
2267 | expressionArgumentEClass = createEClass(EXPRESSION_ARGUMENT); | ||
2268 | createEReference(expressionArgumentEClass, EXPRESSION_ARGUMENT__BODY); | ||
2269 | |||
2270 | starArgumentEClass = createEClass(STAR_ARGUMENT); | ||
2271 | |||
2272 | typedArgumentEClass = createEClass(TYPED_ARGUMENT); | ||
2273 | createEReference(typedArgumentEClass, TYPED_ARGUMENT__TYPE); | ||
2274 | createEReference(typedArgumentEClass, TYPED_ARGUMENT__VARIABLE); | ||
2275 | |||
2276 | typedStarArgumentEClass = createEClass(TYPED_STAR_ARGUMENT); | ||
2277 | createEReference(typedStarArgumentEClass, TYPED_STAR_ARGUMENT__TYPE); | ||
2278 | |||
2279 | referenceEClass = createEClass(REFERENCE); | ||
2280 | createEReference(referenceEClass, REFERENCE__REFERRED); | ||
2281 | |||
2282 | intervalEClass = createEClass(INTERVAL); | ||
2283 | createEReference(intervalEClass, INTERVAL__LOWER_BOUND); | ||
2284 | createEReference(intervalEClass, INTERVAL__UPPER_BOUND); | ||
2285 | |||
2286 | literalEClass = createEClass(LITERAL); | ||
2287 | |||
2288 | logicLiteralEClass = createEClass(LOGIC_LITERAL); | ||
2289 | createEAttribute(logicLiteralEClass, LOGIC_LITERAL__VALUE); | ||
2290 | |||
2291 | numericLiteralEClass = createEClass(NUMERIC_LITERAL); | ||
2292 | createEAttribute(numericLiteralEClass, NUMERIC_LITERAL__VALUE); | ||
2293 | |||
2294 | infinityLiteralEClass = createEClass(INFINITY_LITERAL); | ||
2295 | |||
2296 | emptyIntervalLiteralEClass = createEClass(EMPTY_INTERVAL_LITERAL); | ||
2297 | |||
2298 | stringLiteralEClass = createEClass(STRING_LITERAL); | ||
2299 | createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE); | ||
2300 | |||
2301 | classDefinitionEClass = createEClass(CLASS_DEFINITION); | ||
2302 | createEAttribute(classDefinitionEClass, CLASS_DEFINITION__ABSTRACT); | ||
2303 | createEAttribute(classDefinitionEClass, CLASS_DEFINITION__NAME); | ||
2304 | createEReference(classDefinitionEClass, CLASS_DEFINITION__SUPERCLASSES); | ||
2305 | createEReference(classDefinitionEClass, CLASS_DEFINITION__MEMBERS); | ||
2306 | |||
2307 | memberDefinitionEClass = createEClass(MEMBER_DEFINITION); | ||
2308 | createEAttribute(memberDefinitionEClass, MEMBER_DEFINITION__CONTAINMENT); | ||
2309 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__TYPE); | ||
2310 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__MULTIPLICITY); | ||
2311 | createEAttribute(memberDefinitionEClass, MEMBER_DEFINITION__NAME); | ||
2312 | createEReference(memberDefinitionEClass, MEMBER_DEFINITION__OPPOSITE); | ||
2313 | |||
2314 | multiplicityEClass = createEClass(MULTIPLICITY); | ||
2315 | |||
2316 | manyMultiplicityEClass = createEClass(MANY_MULTIPLICITY); | ||
2317 | |||
2318 | exactMultiplicityEClass = createEClass(EXACT_MULTIPLICITY); | ||
2319 | createEAttribute(exactMultiplicityEClass, EXACT_MULTIPLICITY__MULTIPLICITY); | ||
2320 | |||
2321 | boundedMultiplicityEClass = createEClass(BOUNDED_MULTIPLICITY); | ||
2322 | createEAttribute(boundedMultiplicityEClass, BOUNDED_MULTIPLICITY__LOWER_BOUND); | ||
2323 | createEAttribute(boundedMultiplicityEClass, BOUNDED_MULTIPLICITY__UPPER_BOUND); | ||
2324 | |||
2325 | scopeDefinitionEClass = createEClass(SCOPE_DEFINITION); | ||
2326 | createEReference(scopeDefinitionEClass, SCOPE_DEFINITION__TYPE); | ||
2327 | |||
2328 | exactScopeDefinitionEClass = createEClass(EXACT_SCOPE_DEFINITION); | ||
2329 | createEAttribute(exactScopeDefinitionEClass, EXACT_SCOPE_DEFINITION__EXACT_SCOPE); | ||
2330 | |||
2331 | boundedScopeDefinitionEClass = createEClass(BOUNDED_SCOPE_DEFINITION); | ||
2332 | createEAttribute(boundedScopeDefinitionEClass, BOUNDED_SCOPE_DEFINITION__LOWER_BOUND); | ||
2333 | createEAttribute(boundedScopeDefinitionEClass, BOUNDED_SCOPE_DEFINITION__UPPER_BOUND); | ||
2334 | |||
2335 | lowerBoundedScopeDefinitionEClass = createEClass(LOWER_BOUNDED_SCOPE_DEFINITION); | ||
2336 | createEAttribute(lowerBoundedScopeDefinitionEClass, LOWER_BOUNDED_SCOPE_DEFINITION__LOWER_BOUND); | ||
2337 | |||
2338 | objectiveDefinitionEClass = createEClass(OBJECTIVE_DEFINITION); | ||
2339 | createEAttribute(objectiveDefinitionEClass, OBJECTIVE_DEFINITION__KIND); | ||
2340 | createEReference(objectiveDefinitionEClass, OBJECTIVE_DEFINITION__OBJECTIVE); | ||
2341 | |||
2342 | interpretationEClass = createEClass(INTERPRETATION); | ||
2343 | createEReference(interpretationEClass, INTERPRETATION__BODY); | ||
2344 | createEReference(interpretationEClass, INTERPRETATION__RANGE); | ||
2345 | |||
2346 | variableEClass = createEClass(VARIABLE); | ||
2347 | createEReference(variableEClass, VARIABLE__TYPE); | ||
2348 | |||
2349 | disjunctionEClass = createEClass(DISJUNCTION); | ||
2350 | createEReference(disjunctionEClass, DISJUNCTION__CHILDREN); | ||
2351 | |||
2352 | switchEClass = createEClass(SWITCH); | ||
2353 | createEReference(switchEClass, SWITCH__CASES); | ||
2354 | |||
2355 | conjunctionEClass = createEClass(CONJUNCTION); | ||
2356 | createEReference(conjunctionEClass, CONJUNCTION__CHILDREN); | ||
2357 | |||
2358 | comparisonEClass = createEClass(COMPARISON); | ||
2359 | createEReference(comparisonEClass, COMPARISON__LEFT); | ||
2360 | createEAttribute(comparisonEClass, COMPARISON__OP); | ||
2361 | createEReference(comparisonEClass, COMPARISON__RIGHT); | ||
2362 | |||
2363 | binaryExpressionEClass = createEClass(BINARY_EXPRESSION); | ||
2364 | createEReference(binaryExpressionEClass, BINARY_EXPRESSION__LEFT); | ||
2365 | createEAttribute(binaryExpressionEClass, BINARY_EXPRESSION__OP); | ||
2366 | createEReference(binaryExpressionEClass, BINARY_EXPRESSION__RIGHT); | ||
2367 | |||
2368 | castExpressionEClass = createEClass(CAST_EXPRESSION); | ||
2369 | createEReference(castExpressionEClass, CAST_EXPRESSION__BODY); | ||
2370 | createEReference(castExpressionEClass, CAST_EXPRESSION__TYPE); | ||
2371 | |||
2372 | unaryExpressionEClass = createEClass(UNARY_EXPRESSION); | ||
2373 | createEAttribute(unaryExpressionEClass, UNARY_EXPRESSION__OP); | ||
2374 | createEReference(unaryExpressionEClass, UNARY_EXPRESSION__BODY); | ||
2375 | |||
2376 | nodeEClass = createEClass(NODE); | ||
2377 | createEAttribute(nodeEClass, NODE__WITH_ID); | ||
2378 | |||
2379 | functorEClass = createEClass(FUNCTOR); | ||
2380 | createEReference(functorEClass, FUNCTOR__PARAMETERS); | ||
2381 | |||
2382 | predicateEClass = createEClass(PREDICATE); | ||
2383 | |||
2384 | metricEClass = createEClass(METRIC); | ||
2385 | createEReference(metricEClass, METRIC__RETURN_TYPE); | ||
2386 | |||
2387 | // Create enums | ||
2388 | binaryOperatorEEnum = createEEnum(BINARY_OPERATOR); | ||
2389 | unaryOpEEnum = createEEnum(UNARY_OP); | ||
2390 | logicValueEEnum = createEEnum(LOGIC_VALUE); | ||
2391 | objectiveKindEEnum = createEEnum(OBJECTIVE_KIND); | ||
2392 | quantifierEEnum = createEEnum(QUANTIFIER); | ||
2393 | } | ||
2394 | |||
2395 | /** | ||
2396 | * <!-- begin-user-doc --> | ||
2397 | * <!-- end-user-doc --> | ||
2398 | * @generated | ||
2399 | */ | ||
2400 | private boolean isInitialized = false; | ||
2401 | |||
2402 | /** | ||
2403 | * Complete the initialization of the package and its meta-model. This | ||
2404 | * method is guarded to have no affect on any invocation but its first. | ||
2405 | * <!-- begin-user-doc --> | ||
2406 | * <!-- end-user-doc --> | ||
2407 | * @generated | ||
2408 | */ | ||
2409 | public void initializePackageContents() { | ||
2410 | if (isInitialized) return; | ||
2411 | isInitialized = true; | ||
2412 | |||
2413 | // Initialize package | ||
2414 | setName(eNAME); | ||
2415 | setNsPrefix(eNS_PREFIX); | ||
2416 | setNsURI(eNS_URI); | ||
2417 | |||
2418 | // Create type parameters | ||
2419 | |||
2420 | // Set bounds for type parameters | ||
2421 | |||
2422 | // Add supertypes to classes | ||
2423 | predicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2424 | unnamedErrorPrediateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2425 | defaultDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2426 | metricDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2427 | externPredicateDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2428 | externMetricDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2429 | externAggregatorDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2430 | externDatatypeDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2431 | expressionEClass.getESuperTypes().add(this.getStatement()); | ||
2432 | ifElseEClass.getESuperTypes().add(this.getExpression()); | ||
2433 | letEClass.getESuperTypes().add(this.getExpression()); | ||
2434 | caseEClass.getESuperTypes().add(this.getExpression()); | ||
2435 | quantifiedExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2436 | aggregationEClass.getESuperTypes().add(this.getExpression()); | ||
2437 | callEClass.getESuperTypes().add(this.getExpression()); | ||
2438 | expressionArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2439 | starArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2440 | typedArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2441 | typedStarArgumentEClass.getESuperTypes().add(this.getArgument()); | ||
2442 | referenceEClass.getESuperTypes().add(this.getExpression()); | ||
2443 | intervalEClass.getESuperTypes().add(this.getExpression()); | ||
2444 | literalEClass.getESuperTypes().add(this.getExpression()); | ||
2445 | logicLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2446 | numericLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2447 | infinityLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2448 | emptyIntervalLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2449 | stringLiteralEClass.getESuperTypes().add(this.getLiteral()); | ||
2450 | classDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2451 | manyMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2452 | exactMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2453 | boundedMultiplicityEClass.getESuperTypes().add(this.getMultiplicity()); | ||
2454 | scopeDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2455 | exactScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2456 | boundedScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2457 | lowerBoundedScopeDefinitionEClass.getESuperTypes().add(this.getScopeDefinition()); | ||
2458 | objectiveDefinitionEClass.getESuperTypes().add(this.getStatement()); | ||
2459 | interpretationEClass.getESuperTypes().add(this.getStatement()); | ||
2460 | variableEClass.getESuperTypes().add(this.getNamedElement()); | ||
2461 | disjunctionEClass.getESuperTypes().add(this.getExpression()); | ||
2462 | switchEClass.getESuperTypes().add(this.getExpression()); | ||
2463 | conjunctionEClass.getESuperTypes().add(this.getExpression()); | ||
2464 | comparisonEClass.getESuperTypes().add(this.getExpression()); | ||
2465 | binaryExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2466 | castExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2467 | unaryExpressionEClass.getESuperTypes().add(this.getExpression()); | ||
2468 | nodeEClass.getESuperTypes().add(this.getNamedElement()); | ||
2469 | functorEClass.getESuperTypes().add(this.getNamedElement()); | ||
2470 | predicateEClass.getESuperTypes().add(this.getFunctor()); | ||
2471 | metricEClass.getESuperTypes().add(this.getFunctor()); | ||
2472 | |||
2473 | // Initialize classes and features; add operations and parameters | ||
2474 | initEClass(problemEClass, Problem.class, "Problem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2475 | initEReference(getProblem_Statements(), this.getStatement(), null, "statements", null, 0, -1, Problem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2476 | |||
2477 | initEClass(statementEClass, Statement.class, "Statement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2478 | |||
2479 | initEClass(predicateDefinitionEClass, PredicateDefinition.class, "PredicateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2480 | initEReference(getPredicateDefinition_Head(), this.getExpression(), null, "head", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2481 | initEReference(getPredicateDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2482 | initEAttribute(getPredicateDefinition_Functional(), ecorePackage.getEBoolean(), "functional", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2483 | initEAttribute(getPredicateDefinition_Error(), ecorePackage.getEBoolean(), "error", null, 0, 1, PredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2484 | |||
2485 | initEClass(unnamedErrorPrediateDefinitionEClass, UnnamedErrorPrediateDefinition.class, "UnnamedErrorPrediateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2486 | initEReference(getUnnamedErrorPrediateDefinition_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, UnnamedErrorPrediateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2487 | initEReference(getUnnamedErrorPrediateDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, UnnamedErrorPrediateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2488 | |||
2489 | initEClass(defaultDefinitionEClass, DefaultDefinition.class, "DefaultDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2490 | initEReference(getDefaultDefinition_Head(), this.getCall(), null, "head", null, 0, 1, DefaultDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2491 | initEReference(getDefaultDefinition_Range(), this.getExpression(), null, "range", null, 0, 1, DefaultDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2492 | |||
2493 | initEClass(metricDefinitionEClass, MetricDefinition.class, "MetricDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2494 | initEReference(getMetricDefinition_Head(), this.getExpression(), null, "head", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2495 | initEReference(getMetricDefinition_Body(), this.getExpression(), null, "body", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2496 | initEReference(getMetricDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, MetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2497 | |||
2498 | initEClass(externPredicateDefinitionEClass, ExternPredicateDefinition.class, "ExternPredicateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2499 | initEAttribute(getExternPredicateDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ExternPredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2500 | initEReference(getExternPredicateDefinition_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, ExternPredicateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2501 | |||
2502 | initEClass(externMetricDefinitionEClass, ExternMetricDefinition.class, "ExternMetricDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2503 | initEReference(getExternMetricDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, ExternMetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2504 | initEAttribute(getExternMetricDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ExternMetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2505 | initEReference(getExternMetricDefinition_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, ExternMetricDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2506 | |||
2507 | initEClass(externAggregatorDefinitionEClass, ExternAggregatorDefinition.class, "ExternAggregatorDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2508 | initEReference(getExternAggregatorDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, ExternAggregatorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2509 | initEAttribute(getExternAggregatorDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ExternAggregatorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2510 | initEReference(getExternAggregatorDefinition_InputType(), this.getNamedElement(), null, "inputType", null, 0, 1, ExternAggregatorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2511 | |||
2512 | initEClass(externDatatypeDefinitionEClass, ExternDatatypeDefinition.class, "ExternDatatypeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2513 | initEAttribute(getExternDatatypeDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ExternDatatypeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2514 | initEReference(getExternDatatypeDefinition_Supertypes(), this.getNamedElement(), null, "supertypes", null, 0, -1, ExternDatatypeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2515 | |||
2516 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2517 | initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2518 | |||
2519 | initEClass(expressionEClass, Expression.class, "Expression", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2520 | |||
2521 | initEClass(ifElseEClass, IfElse.class, "IfElse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2522 | initEReference(getIfElse_Then(), this.getExpression(), null, "then", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2523 | initEReference(getIfElse_Else(), this.getExpression(), null, "else", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2524 | initEReference(getIfElse_Condition(), this.getExpression(), null, "condition", null, 0, 1, IfElse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2525 | |||
2526 | initEClass(letEClass, Let.class, "Let", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2527 | initEReference(getLet_Bindings(), this.getLetBinding(), null, "bindings", null, 0, -1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2528 | initEReference(getLet_Body(), this.getExpression(), null, "body", null, 0, 1, Let.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2529 | |||
2530 | initEClass(letBindingEClass, LetBinding.class, "LetBinding", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2531 | initEReference(getLetBinding_Variable(), this.getNamedElement(), null, "variable", null, 0, 1, LetBinding.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2532 | initEReference(getLetBinding_Value(), this.getExpression(), null, "value", null, 0, 1, LetBinding.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2533 | |||
2534 | initEClass(caseEClass, Case.class, "Case", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2535 | initEReference(getCase_Body(), this.getExpression(), null, "body", null, 0, 1, Case.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2536 | initEReference(getCase_Condition(), this.getExpression(), null, "condition", null, 0, 1, Case.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2537 | |||
2538 | initEClass(localVariablesEClass, LocalVariables.class, "LocalVariables", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2539 | initEReference(getLocalVariables_Variables(), this.getNamedElement(), null, "variables", null, 0, -1, LocalVariables.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2540 | |||
2541 | initEClass(quantifiedExpressionEClass, QuantifiedExpression.class, "QuantifiedExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2542 | initEReference(getQuantifiedExpression_LocalVariables(), this.getLocalVariables(), null, "localVariables", null, 0, 1, QuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2543 | initEReference(getQuantifiedExpression_Body(), this.getExpression(), null, "body", null, 0, 1, QuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2544 | initEAttribute(getQuantifiedExpression_Quantifier(), this.getQuantifier(), "quantifier", null, 0, 1, QuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2545 | |||
2546 | initEClass(aggregationEClass, Aggregation.class, "Aggregation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2547 | initEReference(getAggregation_Op(), this.getNamedElement(), null, "op", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2548 | initEReference(getAggregation_LocalVariables(), this.getLocalVariables(), null, "localVariables", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2549 | initEReference(getAggregation_Body(), this.getExpression(), null, "body", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2550 | initEReference(getAggregation_Condition(), this.getExpression(), null, "condition", null, 0, 1, Aggregation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2551 | |||
2552 | initEClass(callEClass, Call.class, "Call", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2553 | initEReference(getCall_Functor(), this.getReference(), null, "functor", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2554 | initEAttribute(getCall_TransitiveClosure(), ecorePackage.getEBoolean(), "transitiveClosure", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2555 | initEAttribute(getCall_ReflexiveTransitiveClosure(), ecorePackage.getEBoolean(), "reflexiveTransitiveClosure", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2556 | initEReference(getCall_ArgumentList(), this.getArgumentList(), null, "argumentList", null, 0, 1, Call.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2557 | |||
2558 | initEClass(argumentListEClass, ArgumentList.class, "ArgumentList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2559 | initEReference(getArgumentList_Arguments(), this.getArgument(), null, "arguments", null, 0, -1, ArgumentList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2560 | |||
2561 | initEClass(argumentEClass, Argument.class, "Argument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2562 | |||
2563 | initEClass(expressionArgumentEClass, ExpressionArgument.class, "ExpressionArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2564 | initEReference(getExpressionArgument_Body(), this.getExpression(), null, "body", null, 0, 1, ExpressionArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2565 | |||
2566 | initEClass(starArgumentEClass, StarArgument.class, "StarArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2567 | |||
2568 | initEClass(typedArgumentEClass, TypedArgument.class, "TypedArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2569 | initEReference(getTypedArgument_Type(), this.getNamedElement(), null, "type", null, 0, 1, TypedArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2570 | initEReference(getTypedArgument_Variable(), this.getNamedElement(), null, "variable", null, 0, 1, TypedArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2571 | |||
2572 | initEClass(typedStarArgumentEClass, TypedStarArgument.class, "TypedStarArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2573 | initEReference(getTypedStarArgument_Type(), this.getNamedElement(), null, "type", null, 0, 1, TypedStarArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2574 | |||
2575 | initEClass(referenceEClass, Reference.class, "Reference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2576 | initEReference(getReference_Referred(), this.getNamedElement(), null, "referred", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2577 | |||
2578 | initEClass(intervalEClass, Interval.class, "Interval", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2579 | initEReference(getInterval_LowerBound(), this.getExpression(), null, "lowerBound", null, 0, 1, Interval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2580 | initEReference(getInterval_UpperBound(), this.getExpression(), null, "upperBound", null, 0, 1, Interval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2581 | |||
2582 | initEClass(literalEClass, Literal.class, "Literal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2583 | |||
2584 | initEClass(logicLiteralEClass, LogicLiteral.class, "LogicLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2585 | initEAttribute(getLogicLiteral_Value(), this.getLogicValue(), "value", null, 0, 1, LogicLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2586 | |||
2587 | initEClass(numericLiteralEClass, NumericLiteral.class, "NumericLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2588 | initEAttribute(getNumericLiteral_Value(), ecorePackage.getEBigDecimal(), "value", null, 0, 1, NumericLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2589 | |||
2590 | initEClass(infinityLiteralEClass, InfinityLiteral.class, "InfinityLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2591 | |||
2592 | initEClass(emptyIntervalLiteralEClass, EmptyIntervalLiteral.class, "EmptyIntervalLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2593 | |||
2594 | initEClass(stringLiteralEClass, StringLiteral.class, "StringLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2595 | initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2596 | |||
2597 | initEClass(classDefinitionEClass, ClassDefinition.class, "ClassDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2598 | initEAttribute(getClassDefinition_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2599 | initEAttribute(getClassDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2600 | initEReference(getClassDefinition_Superclasses(), this.getNamedElement(), null, "superclasses", null, 0, -1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2601 | initEReference(getClassDefinition_Members(), this.getMemberDefinition(), null, "members", null, 0, -1, ClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2602 | |||
2603 | initEClass(memberDefinitionEClass, MemberDefinition.class, "MemberDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2604 | initEAttribute(getMemberDefinition_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2605 | initEReference(getMemberDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2606 | initEReference(getMemberDefinition_Multiplicity(), this.getMultiplicity(), null, "multiplicity", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2607 | initEAttribute(getMemberDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2608 | initEReference(getMemberDefinition_Opposite(), this.getNamedElement(), null, "opposite", null, 0, 1, MemberDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2609 | |||
2610 | initEClass(multiplicityEClass, Multiplicity.class, "Multiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2611 | |||
2612 | initEClass(manyMultiplicityEClass, ManyMultiplicity.class, "ManyMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2613 | |||
2614 | initEClass(exactMultiplicityEClass, ExactMultiplicity.class, "ExactMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2615 | initEAttribute(getExactMultiplicity_Multiplicity(), ecorePackage.getEInt(), "multiplicity", null, 0, 1, ExactMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2616 | |||
2617 | initEClass(boundedMultiplicityEClass, BoundedMultiplicity.class, "BoundedMultiplicity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2618 | initEAttribute(getBoundedMultiplicity_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, BoundedMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2619 | initEAttribute(getBoundedMultiplicity_UpperBound(), ecorePackage.getEInt(), "upperBound", null, 0, 1, BoundedMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2620 | |||
2621 | initEClass(scopeDefinitionEClass, ScopeDefinition.class, "ScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2622 | initEReference(getScopeDefinition_Type(), this.getNamedElement(), null, "type", null, 0, 1, ScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2623 | |||
2624 | initEClass(exactScopeDefinitionEClass, ExactScopeDefinition.class, "ExactScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2625 | initEAttribute(getExactScopeDefinition_ExactScope(), ecorePackage.getEInt(), "exactScope", null, 0, 1, ExactScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2626 | |||
2627 | initEClass(boundedScopeDefinitionEClass, BoundedScopeDefinition.class, "BoundedScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2628 | initEAttribute(getBoundedScopeDefinition_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, BoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2629 | initEAttribute(getBoundedScopeDefinition_UpperBound(), ecorePackage.getEInt(), "upperBound", null, 0, 1, BoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2630 | |||
2631 | initEClass(lowerBoundedScopeDefinitionEClass, LowerBoundedScopeDefinition.class, "LowerBoundedScopeDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2632 | initEAttribute(getLowerBoundedScopeDefinition_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, LowerBoundedScopeDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2633 | |||
2634 | initEClass(objectiveDefinitionEClass, ObjectiveDefinition.class, "ObjectiveDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2635 | initEAttribute(getObjectiveDefinition_Kind(), this.getObjectiveKind(), "kind", null, 0, 1, ObjectiveDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2636 | initEReference(getObjectiveDefinition_Objective(), this.getExpression(), null, "objective", null, 0, 1, ObjectiveDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2637 | |||
2638 | initEClass(interpretationEClass, Interpretation.class, "Interpretation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2639 | initEReference(getInterpretation_Body(), this.getExpression(), null, "body", null, 0, 1, Interpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2640 | initEReference(getInterpretation_Range(), this.getExpression(), null, "range", null, 0, 1, Interpretation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2641 | |||
2642 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2643 | initEReference(getVariable_Type(), this.getNamedElement(), null, "type", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2644 | |||
2645 | initEClass(disjunctionEClass, Disjunction.class, "Disjunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2646 | initEReference(getDisjunction_Children(), this.getExpression(), null, "children", null, 0, -1, Disjunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2647 | |||
2648 | initEClass(switchEClass, Switch.class, "Switch", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2649 | initEReference(getSwitch_Cases(), this.getCase(), null, "cases", null, 0, -1, Switch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2650 | |||
2651 | initEClass(conjunctionEClass, Conjunction.class, "Conjunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2652 | initEReference(getConjunction_Children(), this.getExpression(), null, "children", null, 0, -1, Conjunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2653 | |||
2654 | initEClass(comparisonEClass, Comparison.class, "Comparison", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2655 | initEReference(getComparison_Left(), this.getExpression(), null, "left", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2656 | initEAttribute(getComparison_Op(), this.getBinaryOperator(), "op", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2657 | initEReference(getComparison_Right(), this.getExpression(), null, "right", null, 0, 1, Comparison.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2658 | |||
2659 | initEClass(binaryExpressionEClass, BinaryExpression.class, "BinaryExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2660 | initEReference(getBinaryExpression_Left(), this.getExpression(), null, "left", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2661 | initEAttribute(getBinaryExpression_Op(), this.getBinaryOperator(), "op", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2662 | initEReference(getBinaryExpression_Right(), this.getExpression(), null, "right", null, 0, 1, BinaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2663 | |||
2664 | initEClass(castExpressionEClass, CastExpression.class, "CastExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2665 | initEReference(getCastExpression_Body(), this.getExpression(), null, "body", null, 0, 1, CastExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2666 | initEReference(getCastExpression_Type(), this.getNamedElement(), null, "type", null, 0, 1, CastExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2667 | |||
2668 | initEClass(unaryExpressionEClass, UnaryExpression.class, "UnaryExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2669 | initEAttribute(getUnaryExpression_Op(), this.getUnaryOp(), "op", null, 0, 1, UnaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2670 | initEReference(getUnaryExpression_Body(), this.getExpression(), null, "body", null, 0, 1, UnaryExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2671 | |||
2672 | initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2673 | initEAttribute(getNode_WithId(), ecorePackage.getEBoolean(), "withId", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2674 | |||
2675 | initEClass(functorEClass, Functor.class, "Functor", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2676 | initEReference(getFunctor_Parameters(), this.getVariable(), null, "parameters", null, 0, -1, Functor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2677 | |||
2678 | initEClass(predicateEClass, Predicate.class, "Predicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2679 | |||
2680 | initEClass(metricEClass, Metric.class, "Metric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
2681 | initEReference(getMetric_ReturnType(), this.getNamedElement(), null, "returnType", null, 0, 1, Metric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
2682 | |||
2683 | // Initialize enums and add enum literals | ||
2684 | initEEnum(binaryOperatorEEnum, BinaryOperator.class, "BinaryOperator"); | ||
2685 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.EQ); | ||
2686 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.NOT_EQ); | ||
2687 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.LESS); | ||
2688 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.LESS_EQ); | ||
2689 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.GREATER); | ||
2690 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.GREATER_EQ); | ||
2691 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.IN); | ||
2692 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.ADD); | ||
2693 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.SUB); | ||
2694 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.MUL); | ||
2695 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.DIV); | ||
2696 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.POW); | ||
2697 | addEEnumLiteral(binaryOperatorEEnum, BinaryOperator.IMPLIES); | ||
2698 | |||
2699 | initEEnum(unaryOpEEnum, UnaryOp.class, "UnaryOp"); | ||
2700 | addEEnumLiteral(unaryOpEEnum, UnaryOp.NEG); | ||
2701 | addEEnumLiteral(unaryOpEEnum, UnaryOp.PLUS); | ||
2702 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MINUS); | ||
2703 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MAY); | ||
2704 | addEEnumLiteral(unaryOpEEnum, UnaryOp.MUST); | ||
2705 | addEEnumLiteral(unaryOpEEnum, UnaryOp.CURRENT); | ||
2706 | |||
2707 | initEEnum(logicValueEEnum, LogicValue.class, "LogicValue"); | ||
2708 | addEEnumLiteral(logicValueEEnum, LogicValue.TRUE); | ||
2709 | addEEnumLiteral(logicValueEEnum, LogicValue.FALSE); | ||
2710 | addEEnumLiteral(logicValueEEnum, LogicValue.UNKNOWN); | ||
2711 | addEEnumLiteral(logicValueEEnum, LogicValue.ERROR); | ||
2712 | |||
2713 | initEEnum(objectiveKindEEnum, ObjectiveKind.class, "ObjectiveKind"); | ||
2714 | addEEnumLiteral(objectiveKindEEnum, ObjectiveKind.MINIMIZE); | ||
2715 | addEEnumLiteral(objectiveKindEEnum, ObjectiveKind.MAXIMIZE); | ||
2716 | |||
2717 | initEEnum(quantifierEEnum, Quantifier.class, "Quantifier"); | ||
2718 | addEEnumLiteral(quantifierEEnum, Quantifier.EXISTS); | ||
2719 | addEEnumLiteral(quantifierEEnum, Quantifier.FORALL); | ||
2720 | addEEnumLiteral(quantifierEEnum, Quantifier.COUNT); | ||
2721 | |||
2722 | // Create resource | ||
2723 | createResource(eNS_URI); | ||
2724 | } | ||
2725 | |||
2726 | } //SolverLanguagePackageImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java deleted file mode 100644 index 93d3ce7f..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StarArgumentImpl.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
9 | import org.eclipse.viatra.solver.language.solverLanguage.StarArgument; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Star Argument</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class StarArgumentImpl extends ArgumentImpl implements StarArgument { | ||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | protected StarArgumentImpl() { | ||
25 | super(); | ||
26 | } | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @generated | ||
32 | */ | ||
33 | @Override | ||
34 | protected EClass eStaticClass() { | ||
35 | return SolverLanguagePackage.Literals.STAR_ARGUMENT; | ||
36 | } | ||
37 | |||
38 | } //StarArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java deleted file mode 100644 index bf4d9e6a..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StatementImpl.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClass; | ||
7 | |||
8 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
9 | |||
10 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
11 | import org.eclipse.viatra.solver.language.solverLanguage.Statement; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Statement</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class StatementImpl extends MinimalEObjectImpl.Container implements Statement { | ||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * <!-- end-user-doc --> | ||
24 | * @generated | ||
25 | */ | ||
26 | protected StatementImpl() { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() { | ||
37 | return SolverLanguagePackage.Literals.STATEMENT; | ||
38 | } | ||
39 | |||
40 | } //StatementImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java deleted file mode 100644 index 30bef702..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/StringLiteralImpl.java +++ /dev/null | |||
@@ -1,165 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.StringLiteral; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>String Literal</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.StringLiteralImpl#getValue <em>Value</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class StringLiteralImpl extends LiteralImpl implements StringLiteral { | ||
29 | /** | ||
30 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @see #getValue() | ||
34 | * @generated | ||
35 | * @ordered | ||
36 | */ | ||
37 | protected static final String VALUE_EDEFAULT = null; | ||
38 | |||
39 | /** | ||
40 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getValue() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected String value = VALUE_EDEFAULT; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @generated | ||
53 | */ | ||
54 | protected StringLiteralImpl() { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | protected EClass eStaticClass() { | ||
65 | return SolverLanguagePackage.Literals.STRING_LITERAL; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public String getValue() { | ||
75 | return value; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public void setValue(String newValue) { | ||
85 | String oldValue = value; | ||
86 | value = newValue; | ||
87 | if (eNotificationRequired()) | ||
88 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.STRING_LITERAL__VALUE, oldValue, value)); | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
98 | switch (featureID) { | ||
99 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
100 | return getValue(); | ||
101 | } | ||
102 | return super.eGet(featureID, resolve, coreType); | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | @Override | ||
111 | public void eSet(int featureID, Object newValue) { | ||
112 | switch (featureID) { | ||
113 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
114 | setValue((String)newValue); | ||
115 | return; | ||
116 | } | ||
117 | super.eSet(featureID, newValue); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | public void eUnset(int featureID) { | ||
127 | switch (featureID) { | ||
128 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
129 | setValue(VALUE_EDEFAULT); | ||
130 | return; | ||
131 | } | ||
132 | super.eUnset(featureID); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public boolean eIsSet(int featureID) { | ||
142 | switch (featureID) { | ||
143 | case SolverLanguagePackage.STRING_LITERAL__VALUE: | ||
144 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
145 | } | ||
146 | return super.eIsSet(featureID); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public String toString() { | ||
156 | if (eIsProxy()) return super.toString(); | ||
157 | |||
158 | StringBuilder result = new StringBuilder(super.toString()); | ||
159 | result.append(" (value: "); | ||
160 | result.append(value); | ||
161 | result.append(')'); | ||
162 | return result.toString(); | ||
163 | } | ||
164 | |||
165 | } //StringLiteralImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java deleted file mode 100644 index 23215a72..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SwitchImpl.java +++ /dev/null | |||
@@ -1,152 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.NotificationChain; | ||
9 | |||
10 | import org.eclipse.emf.common.util.EList; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
16 | import org.eclipse.emf.ecore.util.InternalEList; | ||
17 | |||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Case; | ||
19 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
20 | import org.eclipse.viatra.solver.language.solverLanguage.Switch; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Switch</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.SwitchImpl#getCases <em>Cases</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class SwitchImpl extends ExpressionImpl implements Switch { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getCases() <em>Cases</em>}' containment reference list. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getCases() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EList<Case> cases; | ||
45 | |||
46 | /** | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @generated | ||
50 | */ | ||
51 | protected SwitchImpl() { | ||
52 | super(); | ||
53 | } | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | @Override | ||
61 | protected EClass eStaticClass() { | ||
62 | return SolverLanguagePackage.Literals.SWITCH; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | public EList<Case> getCases() { | ||
72 | if (cases == null) { | ||
73 | cases = new EObjectContainmentEList<Case>(Case.class, this, SolverLanguagePackage.SWITCH__CASES); | ||
74 | } | ||
75 | return cases; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | @Override | ||
84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
85 | switch (featureID) { | ||
86 | case SolverLanguagePackage.SWITCH__CASES: | ||
87 | return ((InternalEList<?>)getCases()).basicRemove(otherEnd, msgs); | ||
88 | } | ||
89 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
99 | switch (featureID) { | ||
100 | case SolverLanguagePackage.SWITCH__CASES: | ||
101 | return getCases(); | ||
102 | } | ||
103 | return super.eGet(featureID, resolve, coreType); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @SuppressWarnings("unchecked") | ||
112 | @Override | ||
113 | public void eSet(int featureID, Object newValue) { | ||
114 | switch (featureID) { | ||
115 | case SolverLanguagePackage.SWITCH__CASES: | ||
116 | getCases().clear(); | ||
117 | getCases().addAll((Collection<? extends Case>)newValue); | ||
118 | return; | ||
119 | } | ||
120 | super.eSet(featureID, newValue); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eUnset(int featureID) { | ||
130 | switch (featureID) { | ||
131 | case SolverLanguagePackage.SWITCH__CASES: | ||
132 | getCases().clear(); | ||
133 | return; | ||
134 | } | ||
135 | super.eUnset(featureID); | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public boolean eIsSet(int featureID) { | ||
145 | switch (featureID) { | ||
146 | case SolverLanguagePackage.SWITCH__CASES: | ||
147 | return cases != null && !cases.isEmpty(); | ||
148 | } | ||
149 | return super.eIsSet(featureID); | ||
150 | } | ||
151 | |||
152 | } //SwitchImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java deleted file mode 100644 index 03032f1c..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedArgumentImpl.java +++ /dev/null | |||
@@ -1,221 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.TypedArgument; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Typed Argument</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedArgumentImpl#getType <em>Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedArgumentImpl#getVariable <em>Variable</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class TypedArgumentImpl extends ArgumentImpl implements TypedArgument { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getType() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected NamedElement type; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getVariable() <em>Variable</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getVariable() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected NamedElement variable; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected TypedArgumentImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return SolverLanguagePackage.Literals.TYPED_ARGUMENT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public NamedElement getType() { | ||
78 | if (type != null && type.eIsProxy()) { | ||
79 | InternalEObject oldType = (InternalEObject)type; | ||
80 | type = (NamedElement)eResolveProxy(oldType); | ||
81 | if (type != oldType) { | ||
82 | if (eNotificationRequired()) | ||
83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_ARGUMENT__TYPE, oldType, type)); | ||
84 | } | ||
85 | } | ||
86 | return type; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | public NamedElement basicGetType() { | ||
95 | return type; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public void setType(NamedElement newType) { | ||
105 | NamedElement oldType = type; | ||
106 | type = newType; | ||
107 | if (eNotificationRequired()) | ||
108 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_ARGUMENT__TYPE, oldType, type)); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public NamedElement getVariable() { | ||
118 | if (variable != null && variable.eIsProxy()) { | ||
119 | InternalEObject oldVariable = (InternalEObject)variable; | ||
120 | variable = (NamedElement)eResolveProxy(oldVariable); | ||
121 | if (variable != oldVariable) { | ||
122 | if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE, oldVariable, variable)); | ||
124 | } | ||
125 | } | ||
126 | return variable; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | public NamedElement basicGetVariable() { | ||
135 | return variable; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public void setVariable(NamedElement newVariable) { | ||
145 | NamedElement oldVariable = variable; | ||
146 | variable = newVariable; | ||
147 | if (eNotificationRequired()) | ||
148 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE, oldVariable, variable)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
160 | if (resolve) return getType(); | ||
161 | return basicGetType(); | ||
162 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
163 | if (resolve) return getVariable(); | ||
164 | return basicGetVariable(); | ||
165 | } | ||
166 | return super.eGet(featureID, resolve, coreType); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eSet(int featureID, Object newValue) { | ||
176 | switch (featureID) { | ||
177 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
178 | setType((NamedElement)newValue); | ||
179 | return; | ||
180 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
181 | setVariable((NamedElement)newValue); | ||
182 | return; | ||
183 | } | ||
184 | super.eSet(featureID, newValue); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public void eUnset(int featureID) { | ||
194 | switch (featureID) { | ||
195 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
196 | setType((NamedElement)null); | ||
197 | return; | ||
198 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
199 | setVariable((NamedElement)null); | ||
200 | return; | ||
201 | } | ||
202 | super.eUnset(featureID); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public boolean eIsSet(int featureID) { | ||
212 | switch (featureID) { | ||
213 | case SolverLanguagePackage.TYPED_ARGUMENT__TYPE: | ||
214 | return type != null; | ||
215 | case SolverLanguagePackage.TYPED_ARGUMENT__VARIABLE: | ||
216 | return variable != null; | ||
217 | } | ||
218 | return super.eIsSet(featureID); | ||
219 | } | ||
220 | |||
221 | } //TypedArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java deleted file mode 100644 index c806b3c2..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/TypedStarArgumentImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.TypedStarArgument; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Typed Star Argument</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.TypedStarArgumentImpl#getType <em>Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class TypedStarArgumentImpl extends ArgumentImpl implements TypedStarArgument { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getType() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected NamedElement type; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected TypedStarArgumentImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SolverLanguagePackage.Literals.TYPED_STAR_ARGUMENT; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public NamedElement getType() { | ||
67 | if (type != null && type.eIsProxy()) { | ||
68 | InternalEObject oldType = (InternalEObject)type; | ||
69 | type = (NamedElement)eResolveProxy(oldType); | ||
70 | if (type != oldType) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE, oldType, type)); | ||
73 | } | ||
74 | } | ||
75 | return type; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public NamedElement basicGetType() { | ||
84 | return type; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setType(NamedElement newType) { | ||
94 | NamedElement oldType = type; | ||
95 | type = newType; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE, oldType, type)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
109 | if (resolve) return getType(); | ||
110 | return basicGetType(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
124 | setType((NamedElement)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
139 | setType((NamedElement)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT__TYPE: | ||
154 | return type != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //TypedStarArgumentImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java deleted file mode 100644 index a3a7b1dc..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnaryExpressionImpl.java +++ /dev/null | |||
@@ -1,249 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryExpression; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.UnaryOp; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Unary Expression</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnaryExpressionImpl#getOp <em>Op</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnaryExpressionImpl#getBody <em>Body</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class UnaryExpressionImpl extends ExpressionImpl implements UnaryExpression { | ||
34 | /** | ||
35 | * The default value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getOp() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected static final UnaryOp OP_EDEFAULT = UnaryOp.NEG; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getOp() <em>Op</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getOp() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected UnaryOp op = OP_EDEFAULT; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getBody() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected Expression body; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected UnaryExpressionImpl() { | ||
70 | super(); | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | protected EClass eStaticClass() { | ||
80 | return SolverLanguagePackage.Literals.UNARY_EXPRESSION; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public UnaryOp getOp() { | ||
90 | return op; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public void setOp(UnaryOp newOp) { | ||
100 | UnaryOp oldOp = op; | ||
101 | op = newOp == null ? OP_EDEFAULT : newOp; | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__OP, oldOp, op)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public Expression getBody() { | ||
113 | return body; | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
122 | Expression oldBody = body; | ||
123 | body = newBody; | ||
124 | if (eNotificationRequired()) { | ||
125 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__BODY, oldBody, newBody); | ||
126 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
127 | } | ||
128 | return msgs; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void setBody(Expression newBody) { | ||
138 | if (newBody != body) { | ||
139 | NotificationChain msgs = null; | ||
140 | if (body != null) | ||
141 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNARY_EXPRESSION__BODY, null, msgs); | ||
142 | if (newBody != null) | ||
143 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNARY_EXPRESSION__BODY, null, msgs); | ||
144 | msgs = basicSetBody(newBody, msgs); | ||
145 | if (msgs != null) msgs.dispatch(); | ||
146 | } | ||
147 | else if (eNotificationRequired()) | ||
148 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNARY_EXPRESSION__BODY, newBody, newBody)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
158 | switch (featureID) { | ||
159 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
160 | return basicSetBody(null, msgs); | ||
161 | } | ||
162 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | @Override | ||
171 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
172 | switch (featureID) { | ||
173 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
174 | return getOp(); | ||
175 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
176 | return getBody(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public void eSet(int featureID, Object newValue) { | ||
188 | switch (featureID) { | ||
189 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
190 | setOp((UnaryOp)newValue); | ||
191 | return; | ||
192 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
193 | setBody((Expression)newValue); | ||
194 | return; | ||
195 | } | ||
196 | super.eSet(featureID, newValue); | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public void eUnset(int featureID) { | ||
206 | switch (featureID) { | ||
207 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
208 | setOp(OP_EDEFAULT); | ||
209 | return; | ||
210 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
211 | setBody((Expression)null); | ||
212 | return; | ||
213 | } | ||
214 | super.eUnset(featureID); | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | @Override | ||
223 | public boolean eIsSet(int featureID) { | ||
224 | switch (featureID) { | ||
225 | case SolverLanguagePackage.UNARY_EXPRESSION__OP: | ||
226 | return op != OP_EDEFAULT; | ||
227 | case SolverLanguagePackage.UNARY_EXPRESSION__BODY: | ||
228 | return body != null; | ||
229 | } | ||
230 | return super.eIsSet(featureID); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public String toString() { | ||
240 | if (eIsProxy()) return super.toString(); | ||
241 | |||
242 | StringBuilder result = new StringBuilder(super.toString()); | ||
243 | result.append(" (op: "); | ||
244 | result.append(op); | ||
245 | result.append(')'); | ||
246 | return result.toString(); | ||
247 | } | ||
248 | |||
249 | } //UnaryExpressionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java deleted file mode 100644 index 35450b74..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPrediateDefinitionImpl.java +++ /dev/null | |||
@@ -1,247 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedErrorPrediateDefinition; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Unnamed Error Prediate Definition</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPrediateDefinitionImpl#getArgumentList <em>Argument List</em>}</li> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPrediateDefinitionImpl#getBody <em>Body</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class UnnamedErrorPrediateDefinitionImpl extends StatementImpl implements UnnamedErrorPrediateDefinition { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getArgumentList() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected ArgumentList argumentList; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getBody() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected Expression body; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected UnnamedErrorPrediateDefinitionImpl() { | ||
60 | super(); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | protected EClass eStaticClass() { | ||
70 | return SolverLanguagePackage.Literals.UNNAMED_ERROR_PREDIATE_DEFINITION; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public ArgumentList getArgumentList() { | ||
80 | return argumentList; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
89 | ArgumentList oldArgumentList = argumentList; | ||
90 | argumentList = newArgumentList; | ||
91 | if (eNotificationRequired()) { | ||
92 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
93 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
94 | } | ||
95 | return msgs; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public void setArgumentList(ArgumentList newArgumentList) { | ||
105 | if (newArgumentList != argumentList) { | ||
106 | NotificationChain msgs = null; | ||
107 | if (argumentList != null) | ||
108 | msgs = ((InternalEObject)argumentList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
109 | if (newArgumentList != null) | ||
110 | msgs = ((InternalEObject)newArgumentList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, null, msgs); | ||
111 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
112 | if (msgs != null) msgs.dispatch(); | ||
113 | } | ||
114 | else if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST, newArgumentList, newArgumentList)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public Expression getBody() { | ||
125 | return body; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
134 | Expression oldBody = body; | ||
135 | body = newBody; | ||
136 | if (eNotificationRequired()) { | ||
137 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, oldBody, newBody); | ||
138 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
139 | } | ||
140 | return msgs; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setBody(Expression newBody) { | ||
150 | if (newBody != body) { | ||
151 | NotificationChain msgs = null; | ||
152 | if (body != null) | ||
153 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, null, msgs); | ||
154 | if (newBody != null) | ||
155 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, null, msgs); | ||
156 | msgs = basicSetBody(newBody, msgs); | ||
157 | if (msgs != null) msgs.dispatch(); | ||
158 | } | ||
159 | else if (eNotificationRequired()) | ||
160 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY, newBody, newBody)); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
170 | switch (featureID) { | ||
171 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
172 | return basicSetArgumentList(null, msgs); | ||
173 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
174 | return basicSetBody(null, msgs); | ||
175 | } | ||
176 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
186 | switch (featureID) { | ||
187 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
188 | return getArgumentList(); | ||
189 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
190 | return getBody(); | ||
191 | } | ||
192 | return super.eGet(featureID, resolve, coreType); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public void eSet(int featureID, Object newValue) { | ||
202 | switch (featureID) { | ||
203 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
204 | setArgumentList((ArgumentList)newValue); | ||
205 | return; | ||
206 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
207 | setBody((Expression)newValue); | ||
208 | return; | ||
209 | } | ||
210 | super.eSet(featureID, newValue); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | @Override | ||
219 | public void eUnset(int featureID) { | ||
220 | switch (featureID) { | ||
221 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
222 | setArgumentList((ArgumentList)null); | ||
223 | return; | ||
224 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
225 | setBody((Expression)null); | ||
226 | return; | ||
227 | } | ||
228 | super.eUnset(featureID); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public boolean eIsSet(int featureID) { | ||
238 | switch (featureID) { | ||
239 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__ARGUMENT_LIST: | ||
240 | return argumentList != null; | ||
241 | case SolverLanguagePackage.UNNAMED_ERROR_PREDIATE_DEFINITION__BODY: | ||
242 | return body != null; | ||
243 | } | ||
244 | return super.eIsSet(featureID); | ||
245 | } | ||
246 | |||
247 | } //UnnamedErrorPrediateDefinitionImpl | ||
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java deleted file mode 100644 index 1762d35c..00000000 --- a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/VariableImpl.java +++ /dev/null | |||
@@ -1,159 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Variable; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.VariableImpl#getType <em>Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class VariableImpl extends NamedElementImpl implements Variable { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getType() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected NamedElement type; | ||
40 | |||
41 | /** | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @generated | ||
45 | */ | ||
46 | protected VariableImpl() { | ||
47 | super(); | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | protected EClass eStaticClass() { | ||
57 | return SolverLanguagePackage.Literals.VARIABLE; | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | public NamedElement getType() { | ||
67 | if (type != null && type.eIsProxy()) { | ||
68 | InternalEObject oldType = (InternalEObject)type; | ||
69 | type = (NamedElement)eResolveProxy(oldType); | ||
70 | if (type != oldType) { | ||
71 | if (eNotificationRequired()) | ||
72 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.VARIABLE__TYPE, oldType, type)); | ||
73 | } | ||
74 | } | ||
75 | return type; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public NamedElement basicGetType() { | ||
84 | return type; | ||
85 | } | ||
86 | |||
87 | /** | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @generated | ||
91 | */ | ||
92 | @Override | ||
93 | public void setType(NamedElement newType) { | ||
94 | NamedElement oldType = type; | ||
95 | type = newType; | ||
96 | if (eNotificationRequired()) | ||
97 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.VARIABLE__TYPE, oldType, type)); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
107 | switch (featureID) { | ||
108 | case SolverLanguagePackage.VARIABLE__TYPE: | ||
109 | if (resolve) return getType(); | ||
110 | return basicGetType(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) { | ||
122 | switch (featureID) { | ||
123 | case SolverLanguagePackage.VARIABLE__TYPE: | ||
124 | setType((NamedElement)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case SolverLanguagePackage.VARIABLE__TYPE: | ||
139 | setType((NamedElement)null); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) { | ||
152 | switch (featureID) { | ||
153 | case SolverLanguagePackage.VARIABLE__TYPE: | ||
154 | return type != null; | ||
155 | } | ||
156 | return super.eIsSet(featureID); | ||
157 | } | ||
158 | |||
159 | } //VariableImpl | ||