diff options
author | Kristóf Marussy <marussy@mit.bme.hu> | 2020-06-23 15:17:00 +0200 |
---|---|---|
committer | Kristóf Marussy <marussy@mit.bme.hu> | 2020-06-23 15:17:00 +0200 |
commit | 42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f (patch) | |
tree | 21d49c3a1dadc54dda399a4b8cfe8dc028563f51 /Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.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.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java new file mode 100644 index 00000000..59c2a372 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/CallImpl.java | |||
@@ -0,0 +1,256 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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.ArgumentList; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Call; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.Reference; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Call</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.CallImpl#getFunctor <em>Functor</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.CallImpl#getArgumentList <em>Argument List</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class CallImpl extends ExpressionImpl implements Call { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getFunctor() <em>Functor</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getFunctor() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected Reference functor; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getArgumentList() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected ArgumentList argumentList; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected CallImpl() { | ||
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.CALL; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | public Reference getFunctor() { | ||
78 | return functor; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public NotificationChain basicSetFunctor(Reference newFunctor, NotificationChain msgs) { | ||
87 | Reference oldFunctor = functor; | ||
88 | functor = newFunctor; | ||
89 | if (eNotificationRequired()) { | ||
90 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
91 | SolverLanguagePackage.CALL__FUNCTOR, oldFunctor, newFunctor); | ||
92 | if (msgs == null) | ||
93 | msgs = notification; | ||
94 | else | ||
95 | msgs.add(notification); | ||
96 | } | ||
97 | return msgs; | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | public void setFunctor(Reference newFunctor) { | ||
106 | if (newFunctor != functor) { | ||
107 | NotificationChain msgs = null; | ||
108 | if (functor != null) | ||
109 | msgs = ((InternalEObject) functor).eInverseRemove(this, | ||
110 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
111 | if (newFunctor != null) | ||
112 | msgs = ((InternalEObject) newFunctor).eInverseAdd(this, | ||
113 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__FUNCTOR, null, msgs); | ||
114 | msgs = basicSetFunctor(newFunctor, msgs); | ||
115 | if (msgs != null) | ||
116 | msgs.dispatch(); | ||
117 | } else if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__FUNCTOR, newFunctor, | ||
119 | newFunctor)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public ArgumentList getArgumentList() { | ||
128 | return argumentList; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
137 | ArgumentList oldArgumentList = argumentList; | ||
138 | argumentList = newArgumentList; | ||
139 | if (eNotificationRequired()) { | ||
140 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
141 | SolverLanguagePackage.CALL__ARGUMENT_LIST, oldArgumentList, newArgumentList); | ||
142 | if (msgs == null) | ||
143 | msgs = notification; | ||
144 | else | ||
145 | msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setArgumentList(ArgumentList newArgumentList) { | ||
156 | if (newArgumentList != argumentList) { | ||
157 | NotificationChain msgs = null; | ||
158 | if (argumentList != null) | ||
159 | msgs = ((InternalEObject) argumentList).eInverseRemove(this, | ||
160 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
161 | if (newArgumentList != null) | ||
162 | msgs = ((InternalEObject) newArgumentList).eInverseAdd(this, | ||
163 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CALL__ARGUMENT_LIST, null, msgs); | ||
164 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
165 | if (msgs != null) | ||
166 | msgs.dispatch(); | ||
167 | } else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CALL__ARGUMENT_LIST, | ||
169 | newArgumentList, newArgumentList)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
179 | switch (featureID) { | ||
180 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
181 | return basicSetFunctor(null, msgs); | ||
182 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
183 | return basicSetArgumentList(null, msgs); | ||
184 | } | ||
185 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
195 | switch (featureID) { | ||
196 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
197 | return getFunctor(); | ||
198 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
199 | return getArgumentList(); | ||
200 | } | ||
201 | return super.eGet(featureID, resolve, coreType); | ||
202 | } | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | @Override | ||
210 | public void eSet(int featureID, Object newValue) { | ||
211 | switch (featureID) { | ||
212 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
213 | setFunctor((Reference) newValue); | ||
214 | return; | ||
215 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
216 | setArgumentList((ArgumentList) newValue); | ||
217 | return; | ||
218 | } | ||
219 | super.eSet(featureID, newValue); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public void eUnset(int featureID) { | ||
229 | switch (featureID) { | ||
230 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
231 | setFunctor((Reference) null); | ||
232 | return; | ||
233 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
234 | setArgumentList((ArgumentList) null); | ||
235 | return; | ||
236 | } | ||
237 | super.eUnset(featureID); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public boolean eIsSet(int featureID) { | ||
247 | switch (featureID) { | ||
248 | case SolverLanguagePackage.CALL__FUNCTOR: | ||
249 | return functor != null; | ||
250 | case SolverLanguagePackage.CALL__ARGUMENT_LIST: | ||
251 | return argumentList != null; | ||
252 | } | ||
253 | return super.eIsSet(featureID); | ||
254 | } | ||
255 | |||
256 | } //CallImpl | ||