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/QuantifiedExpressionImpl.java | |
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/QuantifiedExpressionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/QuantifiedExpressionImpl.java | 318 |
1 files changed, 0 insertions, 318 deletions
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 | ||