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/ClassDefinitionImpl.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/ClassDefinitionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java | 340 |
1 files changed, 0 insertions, 340 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java deleted file mode 100644 index f0a81764..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassDefinitionImpl.java +++ /dev/null | |||
@@ -1,340 +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 | /** | ||
46 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #isAbstract() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isAbstract() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getName() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected static final String NAME_EDEFAULT = null; | ||
74 | |||
75 | /** | ||
76 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @see #getName() | ||
80 | * @generated | ||
81 | * @ordered | ||
82 | */ | ||
83 | protected String name = NAME_EDEFAULT; | ||
84 | |||
85 | /** | ||
86 | * The cached value of the '{@link #getSuperclasses() <em>Superclasses</em>}' reference list. | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @see #getSuperclasses() | ||
90 | * @generated | ||
91 | * @ordered | ||
92 | */ | ||
93 | protected EList<NamedElement> superclasses; | ||
94 | |||
95 | /** | ||
96 | * The cached value of the '{@link #getMembers() <em>Members</em>}' containment reference list. | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @see #getMembers() | ||
100 | * @generated | ||
101 | * @ordered | ||
102 | */ | ||
103 | protected EList<MemberDefinition> members; | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | protected ClassDefinitionImpl() | ||
111 | { | ||
112 | super(); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | protected EClass eStaticClass() | ||
122 | { | ||
123 | return SolverLanguagePackage.Literals.CLASS_DEFINITION; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public boolean isAbstract() | ||
133 | { | ||
134 | return abstract_; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | @Override | ||
143 | public void setAbstract(boolean newAbstract) | ||
144 | { | ||
145 | boolean oldAbstract = abstract_; | ||
146 | abstract_ = newAbstract; | ||
147 | if (eNotificationRequired()) | ||
148 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT, oldAbstract, abstract_)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public String getName() | ||
158 | { | ||
159 | return name; | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public void setName(String newName) | ||
169 | { | ||
170 | String oldName = name; | ||
171 | name = newName; | ||
172 | if (eNotificationRequired()) | ||
173 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_DEFINITION__NAME, oldName, name)); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public EList<NamedElement> getSuperclasses() | ||
183 | { | ||
184 | if (superclasses == null) | ||
185 | { | ||
186 | superclasses = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES); | ||
187 | } | ||
188 | return superclasses; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public EList<MemberDefinition> getMembers() | ||
198 | { | ||
199 | if (members == null) | ||
200 | { | ||
201 | members = new EObjectContainmentEList<MemberDefinition>(MemberDefinition.class, this, SolverLanguagePackage.CLASS_DEFINITION__MEMBERS); | ||
202 | } | ||
203 | return members; | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
217 | return ((InternalEList<?>)getMembers()).basicRemove(otherEnd, msgs); | ||
218 | } | ||
219 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
233 | return isAbstract(); | ||
234 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
235 | return getName(); | ||
236 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
237 | return getSuperclasses(); | ||
238 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
239 | return getMembers(); | ||
240 | } | ||
241 | return super.eGet(featureID, resolve, coreType); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @SuppressWarnings("unchecked") | ||
250 | @Override | ||
251 | public void eSet(int featureID, Object newValue) | ||
252 | { | ||
253 | switch (featureID) | ||
254 | { | ||
255 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
256 | setAbstract((Boolean)newValue); | ||
257 | return; | ||
258 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
259 | setName((String)newValue); | ||
260 | return; | ||
261 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
262 | getSuperclasses().clear(); | ||
263 | getSuperclasses().addAll((Collection<? extends NamedElement>)newValue); | ||
264 | return; | ||
265 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
266 | getMembers().clear(); | ||
267 | getMembers().addAll((Collection<? extends MemberDefinition>)newValue); | ||
268 | return; | ||
269 | } | ||
270 | super.eSet(featureID, newValue); | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public void eUnset(int featureID) | ||
280 | { | ||
281 | switch (featureID) | ||
282 | { | ||
283 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
284 | setAbstract(ABSTRACT_EDEFAULT); | ||
285 | return; | ||
286 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
287 | setName(NAME_EDEFAULT); | ||
288 | return; | ||
289 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
290 | getSuperclasses().clear(); | ||
291 | return; | ||
292 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
293 | getMembers().clear(); | ||
294 | return; | ||
295 | } | ||
296 | super.eUnset(featureID); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public boolean eIsSet(int featureID) | ||
306 | { | ||
307 | switch (featureID) | ||
308 | { | ||
309 | case SolverLanguagePackage.CLASS_DEFINITION__ABSTRACT: | ||
310 | return abstract_ != ABSTRACT_EDEFAULT; | ||
311 | case SolverLanguagePackage.CLASS_DEFINITION__NAME: | ||
312 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
313 | case SolverLanguagePackage.CLASS_DEFINITION__SUPERCLASSES: | ||
314 | return superclasses != null && !superclasses.isEmpty(); | ||
315 | case SolverLanguagePackage.CLASS_DEFINITION__MEMBERS: | ||
316 | return members != null && !members.isEmpty(); | ||
317 | } | ||
318 | return super.eIsSet(featureID); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | @Override | ||
327 | public String toString() | ||
328 | { | ||
329 | if (eIsProxy()) return super.toString(); | ||
330 | |||
331 | StringBuilder result = new StringBuilder(super.toString()); | ||
332 | result.append(" (abstract: "); | ||
333 | result.append(abstract_); | ||
334 | result.append(", name: "); | ||
335 | result.append(name); | ||
336 | result.append(')'); | ||
337 | return result.toString(); | ||
338 | } | ||
339 | |||
340 | } //ClassDefinitionImpl | ||