diff options
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java | 144 |
1 files changed, 1 insertions, 143 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java index 1d38ddfb..9ebed3eb 100644 --- a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java | |||
@@ -3,17 +3,12 @@ | |||
3 | */ | 3 | */ |
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | 4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; |
5 | 5 | ||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSOtherDeclaration; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTypeDef; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; | 6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; |
10 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | 7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; |
11 | 8 | ||
12 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | 10 | ||
15 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
16 | import org.eclipse.emf.ecore.InternalEObject; | ||
17 | 12 | ||
18 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
19 | 14 | ||
@@ -25,25 +20,14 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
25 | * The following features are implemented: | 20 | * The following features are implemented: |
26 | * </p> | 21 | * </p> |
27 | * <ul> | 22 | * <ul> |
28 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSVariableImpl#getType <em>Type</em>}</li> | ||
29 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSVariableImpl#getName <em>Name</em>}</li> | 23 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSVariableImpl#getName <em>Name</em>}</li> |
30 | * </ul> | 24 | * </ul> |
31 | * | 25 | * |
32 | * @generated | 26 | * @generated |
33 | */ | 27 | */ |
34 | public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVariable | 28 | public class VLSVariableImpl extends VLSTermImpl implements VLSVariable |
35 | { | 29 | { |
36 | /** | 30 | /** |
37 | * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getType() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected VLSTypeDef type; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | 31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. |
48 | * <!-- begin-user-doc --> | 32 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> | 33 | * <!-- end-user-doc --> |
@@ -89,54 +73,6 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
89 | * <!-- end-user-doc --> | 73 | * <!-- end-user-doc --> |
90 | * @generated | 74 | * @generated |
91 | */ | 75 | */ |
92 | public VLSTypeDef getType() | ||
93 | { | ||
94 | return type; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public NotificationChain basicSetType(VLSTypeDef newType, NotificationChain msgs) | ||
103 | { | ||
104 | VLSTypeDef oldType = type; | ||
105 | type = newType; | ||
106 | if (eNotificationRequired()) | ||
107 | { | ||
108 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_VARIABLE__TYPE, oldType, newType); | ||
109 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
110 | } | ||
111 | return msgs; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | public void setType(VLSTypeDef newType) | ||
120 | { | ||
121 | if (newType != type) | ||
122 | { | ||
123 | NotificationChain msgs = null; | ||
124 | if (type != null) | ||
125 | msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_VARIABLE__TYPE, null, msgs); | ||
126 | if (newType != null) | ||
127 | msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_VARIABLE__TYPE, null, msgs); | ||
128 | msgs = basicSetType(newType, msgs); | ||
129 | if (msgs != null) msgs.dispatch(); | ||
130 | } | ||
131 | else if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_VARIABLE__TYPE, newType, newType)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public String getName() | 76 | public String getName() |
141 | { | 77 | { |
142 | return name; | 78 | return name; |
@@ -161,28 +97,10 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
161 | * @generated | 97 | * @generated |
162 | */ | 98 | */ |
163 | @Override | 99 | @Override |
164 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
165 | { | ||
166 | switch (featureID) | ||
167 | { | ||
168 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: | ||
169 | return basicSetType(null, msgs); | ||
170 | } | ||
171 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public Object eGet(int featureID, boolean resolve, boolean coreType) | 100 | public Object eGet(int featureID, boolean resolve, boolean coreType) |
181 | { | 101 | { |
182 | switch (featureID) | 102 | switch (featureID) |
183 | { | 103 | { |
184 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: | ||
185 | return getType(); | ||
186 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | 104 | case VampireLanguagePackage.VLS_VARIABLE__NAME: |
187 | return getName(); | 105 | return getName(); |
188 | } | 106 | } |
@@ -199,9 +117,6 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
199 | { | 117 | { |
200 | switch (featureID) | 118 | switch (featureID) |
201 | { | 119 | { |
202 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: | ||
203 | setType((VLSTypeDef)newValue); | ||
204 | return; | ||
205 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | 120 | case VampireLanguagePackage.VLS_VARIABLE__NAME: |
206 | setName((String)newValue); | 121 | setName((String)newValue); |
207 | return; | 122 | return; |
@@ -219,9 +134,6 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
219 | { | 134 | { |
220 | switch (featureID) | 135 | switch (featureID) |
221 | { | 136 | { |
222 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: | ||
223 | setType((VLSTypeDef)null); | ||
224 | return; | ||
225 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | 137 | case VampireLanguagePackage.VLS_VARIABLE__NAME: |
226 | setName(NAME_EDEFAULT); | 138 | setName(NAME_EDEFAULT); |
227 | return; | 139 | return; |
@@ -239,8 +151,6 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
239 | { | 151 | { |
240 | switch (featureID) | 152 | switch (featureID) |
241 | { | 153 | { |
242 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: | ||
243 | return type != null; | ||
244 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | 154 | case VampireLanguagePackage.VLS_VARIABLE__NAME: |
245 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | 155 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); |
246 | } | 156 | } |
@@ -253,58 +163,6 @@ public class VLSVariableImpl extends VLSVariableDeclarationImpl implements VLSVa | |||
253 | * @generated | 163 | * @generated |
254 | */ | 164 | */ |
255 | @Override | 165 | @Override |
256 | public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) | ||
257 | { | ||
258 | if (baseClass == VLSOtherDeclaration.class) | ||
259 | { | ||
260 | switch (derivedFeatureID) | ||
261 | { | ||
262 | default: return -1; | ||
263 | } | ||
264 | } | ||
265 | if (baseClass == VLSTerm.class) | ||
266 | { | ||
267 | switch (derivedFeatureID) | ||
268 | { | ||
269 | case VampireLanguagePackage.VLS_VARIABLE__TYPE: return VampireLanguagePackage.VLS_TERM__TYPE; | ||
270 | default: return -1; | ||
271 | } | ||
272 | } | ||
273 | return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * <!-- begin-user-doc --> | ||
278 | * <!-- end-user-doc --> | ||
279 | * @generated | ||
280 | */ | ||
281 | @Override | ||
282 | public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) | ||
283 | { | ||
284 | if (baseClass == VLSOtherDeclaration.class) | ||
285 | { | ||
286 | switch (baseFeatureID) | ||
287 | { | ||
288 | default: return -1; | ||
289 | } | ||
290 | } | ||
291 | if (baseClass == VLSTerm.class) | ||
292 | { | ||
293 | switch (baseFeatureID) | ||
294 | { | ||
295 | case VampireLanguagePackage.VLS_TERM__TYPE: return VampireLanguagePackage.VLS_VARIABLE__TYPE; | ||
296 | default: return -1; | ||
297 | } | ||
298 | } | ||
299 | return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public String toString() | 166 | public String toString() |
309 | { | 167 | { |
310 | if (eIsProxy()) return super.toString(); | 168 | if (eIsProxy()) return super.toString(); |