diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java | 269 |
1 files changed, 0 insertions, 269 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java deleted file mode 100644 index 47245831..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CaseImpl.java +++ /dev/null | |||
@@ -1,269 +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#getCondition <em>Condition</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CaseImpl#getBody <em>Body</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class CaseImpl extends ExpressionImpl implements Case | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getCondition() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected Expression condition; | ||
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 CaseImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return SolverLanguagePackage.Literals.CASE; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public Expression getCondition() | ||
82 | { | ||
83 | return condition; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) | ||
92 | { | ||
93 | Expression oldCondition = condition; | ||
94 | condition = newCondition; | ||
95 | if (eNotificationRequired()) | ||
96 | { | ||
97 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, oldCondition, newCondition); | ||
98 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
99 | } | ||
100 | return msgs; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public void setCondition(Expression newCondition) | ||
110 | { | ||
111 | if (newCondition != condition) | ||
112 | { | ||
113 | NotificationChain msgs = null; | ||
114 | if (condition != null) | ||
115 | msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
116 | if (newCondition != null) | ||
117 | msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__CONDITION, null, msgs); | ||
118 | msgs = basicSetCondition(newCondition, msgs); | ||
119 | if (msgs != null) msgs.dispatch(); | ||
120 | } | ||
121 | else if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__CONDITION, newCondition, newCondition)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public Expression getBody() | ||
132 | { | ||
133 | return body; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) | ||
142 | { | ||
143 | Expression oldBody = body; | ||
144 | body = newBody; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, oldBody, newBody); | ||
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 setBody(Expression newBody) | ||
160 | { | ||
161 | if (newBody != body) | ||
162 | { | ||
163 | NotificationChain msgs = null; | ||
164 | if (body != null) | ||
165 | msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
166 | if (newBody != null) | ||
167 | msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CASE__BODY, null, msgs); | ||
168 | msgs = basicSetBody(newBody, msgs); | ||
169 | if (msgs != null) msgs.dispatch(); | ||
170 | } | ||
171 | else if (eNotificationRequired()) | ||
172 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CASE__BODY, newBody, newBody)); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
182 | { | ||
183 | switch (featureID) | ||
184 | { | ||
185 | case SolverLanguagePackage.CASE__CONDITION: | ||
186 | return basicSetCondition(null, msgs); | ||
187 | case SolverLanguagePackage.CASE__BODY: | ||
188 | return basicSetBody(null, msgs); | ||
189 | } | ||
190 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
200 | { | ||
201 | switch (featureID) | ||
202 | { | ||
203 | case SolverLanguagePackage.CASE__CONDITION: | ||
204 | return getCondition(); | ||
205 | case SolverLanguagePackage.CASE__BODY: | ||
206 | return getBody(); | ||
207 | } | ||
208 | return super.eGet(featureID, resolve, coreType); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public void eSet(int featureID, Object newValue) | ||
218 | { | ||
219 | switch (featureID) | ||
220 | { | ||
221 | case SolverLanguagePackage.CASE__CONDITION: | ||
222 | setCondition((Expression)newValue); | ||
223 | return; | ||
224 | case SolverLanguagePackage.CASE__BODY: | ||
225 | setBody((Expression)newValue); | ||
226 | return; | ||
227 | } | ||
228 | super.eSet(featureID, newValue); | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * <!-- begin-user-doc --> | ||
233 | * <!-- end-user-doc --> | ||
234 | * @generated | ||
235 | */ | ||
236 | @Override | ||
237 | public void eUnset(int featureID) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case SolverLanguagePackage.CASE__CONDITION: | ||
242 | setCondition((Expression)null); | ||
243 | return; | ||
244 | case SolverLanguagePackage.CASE__BODY: | ||
245 | setBody((Expression)null); | ||
246 | return; | ||
247 | } | ||
248 | super.eUnset(featureID); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public boolean eIsSet(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case SolverLanguagePackage.CASE__CONDITION: | ||
262 | return condition != null; | ||
263 | case SolverLanguagePackage.CASE__BODY: | ||
264 | return body != null; | ||
265 | } | ||
266 | return super.eIsSet(featureID); | ||
267 | } | ||
268 | |||
269 | } //CaseImpl | ||