diff options
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl')
35 files changed, 8675 insertions, 0 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAndImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAndImpl.java new file mode 100644 index 00000000..951de940 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAndImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAnd; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS And</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAndImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAndImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSAndImpl extends VLSTermImpl implements VLSAnd | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSAndImpl() | ||
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 VampireLanguagePackage.Literals.VLS_AND; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_AND__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_AND__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_AND__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_AND__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_AND__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_AND__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_AND__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_AND__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_AND__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_AND__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_AND__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_AND__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_AND__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_AND__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_AND__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_AND__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_AND__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_AND__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSAndImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAnnotationImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAnnotationImpl.java new file mode 100644 index 00000000..092dd4c9 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAnnotationImpl.java | |||
@@ -0,0 +1,311 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAnnotation; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import java.util.Collection; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>VLS Annotation</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAnnotationImpl#getName <em>Name</em>}</li> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAnnotationImpl#getFollowup <em>Followup</em>}</li> | ||
35 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAnnotationImpl#getTerms <em>Terms</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class VLSAnnotationImpl extends MinimalEObjectImpl.Container implements VLSAnnotation | ||
41 | { | ||
42 | /** | ||
43 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getName() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected static final String NAME_EDEFAULT = null; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getName() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected String name = NAME_EDEFAULT; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getFollowup() <em>Followup</em>}' containment reference. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getFollowup() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected VLSAnnotation followup; | ||
71 | |||
72 | /** | ||
73 | * The cached value of the '{@link #getTerms() <em>Terms</em>}' containment reference list. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @see #getTerms() | ||
77 | * @generated | ||
78 | * @ordered | ||
79 | */ | ||
80 | protected EList<VLSAnnotation> terms; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | protected VLSAnnotationImpl() | ||
88 | { | ||
89 | super(); | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | protected EClass eStaticClass() | ||
99 | { | ||
100 | return VampireLanguagePackage.Literals.VLS_ANNOTATION; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public String getName() | ||
109 | { | ||
110 | return name; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public void setName(String newName) | ||
119 | { | ||
120 | String oldName = name; | ||
121 | name = newName; | ||
122 | if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ANNOTATION__NAME, oldName, name)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public VLSAnnotation getFollowup() | ||
132 | { | ||
133 | return followup; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | public NotificationChain basicSetFollowup(VLSAnnotation newFollowup, NotificationChain msgs) | ||
142 | { | ||
143 | VLSAnnotation oldFollowup = followup; | ||
144 | followup = newFollowup; | ||
145 | if (eNotificationRequired()) | ||
146 | { | ||
147 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP, oldFollowup, newFollowup); | ||
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 | public void setFollowup(VLSAnnotation newFollowup) | ||
159 | { | ||
160 | if (newFollowup != followup) | ||
161 | { | ||
162 | NotificationChain msgs = null; | ||
163 | if (followup != null) | ||
164 | msgs = ((InternalEObject)followup).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP, null, msgs); | ||
165 | if (newFollowup != null) | ||
166 | msgs = ((InternalEObject)newFollowup).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP, null, msgs); | ||
167 | msgs = basicSetFollowup(newFollowup, msgs); | ||
168 | if (msgs != null) msgs.dispatch(); | ||
169 | } | ||
170 | else if (eNotificationRequired()) | ||
171 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP, newFollowup, newFollowup)); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | public EList<VLSAnnotation> getTerms() | ||
180 | { | ||
181 | if (terms == null) | ||
182 | { | ||
183 | terms = new EObjectContainmentEList<VLSAnnotation>(VLSAnnotation.class, this, VampireLanguagePackage.VLS_ANNOTATION__TERMS); | ||
184 | } | ||
185 | return terms; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP: | ||
199 | return basicSetFollowup(null, msgs); | ||
200 | case VampireLanguagePackage.VLS_ANNOTATION__TERMS: | ||
201 | return ((InternalEList<?>)getTerms()).basicRemove(otherEnd, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case VampireLanguagePackage.VLS_ANNOTATION__NAME: | ||
217 | return getName(); | ||
218 | case VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP: | ||
219 | return getFollowup(); | ||
220 | case VampireLanguagePackage.VLS_ANNOTATION__TERMS: | ||
221 | return getTerms(); | ||
222 | } | ||
223 | return super.eGet(featureID, resolve, coreType); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @SuppressWarnings("unchecked") | ||
232 | @Override | ||
233 | public void eSet(int featureID, Object newValue) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_ANNOTATION__NAME: | ||
238 | setName((String)newValue); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP: | ||
241 | setFollowup((VLSAnnotation)newValue); | ||
242 | return; | ||
243 | case VampireLanguagePackage.VLS_ANNOTATION__TERMS: | ||
244 | getTerms().clear(); | ||
245 | getTerms().addAll((Collection<? extends VLSAnnotation>)newValue); | ||
246 | return; | ||
247 | } | ||
248 | super.eSet(featureID, newValue); | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | @Override | ||
257 | public void eUnset(int featureID) | ||
258 | { | ||
259 | switch (featureID) | ||
260 | { | ||
261 | case VampireLanguagePackage.VLS_ANNOTATION__NAME: | ||
262 | setName(NAME_EDEFAULT); | ||
263 | return; | ||
264 | case VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP: | ||
265 | setFollowup((VLSAnnotation)null); | ||
266 | return; | ||
267 | case VampireLanguagePackage.VLS_ANNOTATION__TERMS: | ||
268 | getTerms().clear(); | ||
269 | return; | ||
270 | } | ||
271 | super.eUnset(featureID); | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | @Override | ||
280 | public boolean eIsSet(int featureID) | ||
281 | { | ||
282 | switch (featureID) | ||
283 | { | ||
284 | case VampireLanguagePackage.VLS_ANNOTATION__NAME: | ||
285 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
286 | case VampireLanguagePackage.VLS_ANNOTATION__FOLLOWUP: | ||
287 | return followup != null; | ||
288 | case VampireLanguagePackage.VLS_ANNOTATION__TERMS: | ||
289 | return terms != null && !terms.isEmpty(); | ||
290 | } | ||
291 | return super.eIsSet(featureID); | ||
292 | } | ||
293 | |||
294 | /** | ||
295 | * <!-- begin-user-doc --> | ||
296 | * <!-- end-user-doc --> | ||
297 | * @generated | ||
298 | */ | ||
299 | @Override | ||
300 | public String toString() | ||
301 | { | ||
302 | if (eIsProxy()) return super.toString(); | ||
303 | |||
304 | StringBuffer result = new StringBuffer(super.toString()); | ||
305 | result.append(" (name: "); | ||
306 | result.append(name); | ||
307 | result.append(')'); | ||
308 | return result.toString(); | ||
309 | } | ||
310 | |||
311 | } //VLSAnnotationImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAssignmentImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAssignmentImpl.java new file mode 100644 index 00000000..e6dbb58d --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSAssignmentImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAssignment; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Assignment</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAssignmentImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSAssignmentImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSAssignmentImpl extends VLSTermImpl implements VLSAssignment | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSAssignmentImpl() | ||
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 VampireLanguagePackage.Literals.VLS_ASSIGNMENT; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ASSIGNMENT__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ASSIGNMENT__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ASSIGNMENT__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ASSIGNMENT__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_ASSIGNMENT__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_ASSIGNMENT__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_ASSIGNMENT__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_ASSIGNMENT__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_ASSIGNMENT__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_ASSIGNMENT__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSAssignmentImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSCommentImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSCommentImpl.java new file mode 100644 index 00000000..9599872d --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSCommentImpl.java | |||
@@ -0,0 +1,178 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSComment; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>VLS Comment</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSCommentImpl#getComment <em>Comment</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VLSCommentImpl extends MinimalEObjectImpl.Container implements VLSComment | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getComment() <em>Comment</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getComment() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String COMMENT_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getComment() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String comment = COMMENT_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected VLSCommentImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return VampireLanguagePackage.Literals.VLS_COMMENT; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | public String getComment() | ||
78 | { | ||
79 | return comment; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public void setComment(String newComment) | ||
88 | { | ||
89 | String oldComment = comment; | ||
90 | comment = newComment; | ||
91 | if (eNotificationRequired()) | ||
92 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_COMMENT__COMMENT, oldComment, comment)); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
102 | { | ||
103 | switch (featureID) | ||
104 | { | ||
105 | case VampireLanguagePackage.VLS_COMMENT__COMMENT: | ||
106 | return getComment(); | ||
107 | } | ||
108 | return super.eGet(featureID, resolve, coreType); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public void eSet(int featureID, Object newValue) | ||
118 | { | ||
119 | switch (featureID) | ||
120 | { | ||
121 | case VampireLanguagePackage.VLS_COMMENT__COMMENT: | ||
122 | setComment((String)newValue); | ||
123 | return; | ||
124 | } | ||
125 | super.eSet(featureID, newValue); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void eUnset(int featureID) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case VampireLanguagePackage.VLS_COMMENT__COMMENT: | ||
139 | setComment(COMMENT_EDEFAULT); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_COMMENT__COMMENT: | ||
156 | return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); | ||
157 | } | ||
158 | return super.eIsSet(featureID); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public String toString() | ||
168 | { | ||
169 | if (eIsProxy()) return super.toString(); | ||
170 | |||
171 | StringBuffer result = new StringBuffer(super.toString()); | ||
172 | result.append(" (comment: "); | ||
173 | result.append(comment); | ||
174 | result.append(')'); | ||
175 | return result.toString(); | ||
176 | } | ||
177 | |||
178 | } //VLSCommentImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSConstantImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSConstantImpl.java new file mode 100644 index 00000000..b9bcf512 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSConstantImpl.java | |||
@@ -0,0 +1,177 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSConstant; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>VLS Constant</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSConstantImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class VLSConstantImpl extends VLSTermImpl implements VLSConstant | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected VLSConstantImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return VampireLanguagePackage.Literals.VLS_CONSTANT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public String getName() | ||
77 | { | ||
78 | return name; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public void setName(String newName) | ||
87 | { | ||
88 | String oldName = name; | ||
89 | name = newName; | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_CONSTANT__NAME, oldName, name)); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
101 | { | ||
102 | switch (featureID) | ||
103 | { | ||
104 | case VampireLanguagePackage.VLS_CONSTANT__NAME: | ||
105 | return getName(); | ||
106 | } | ||
107 | return super.eGet(featureID, resolve, coreType); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void eSet(int featureID, Object newValue) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case VampireLanguagePackage.VLS_CONSTANT__NAME: | ||
121 | setName((String)newValue); | ||
122 | return; | ||
123 | } | ||
124 | super.eSet(featureID, newValue); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public void eUnset(int featureID) | ||
134 | { | ||
135 | switch (featureID) | ||
136 | { | ||
137 | case VampireLanguagePackage.VLS_CONSTANT__NAME: | ||
138 | setName(NAME_EDEFAULT); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case VampireLanguagePackage.VLS_CONSTANT__NAME: | ||
155 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
156 | } | ||
157 | return super.eIsSet(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public String toString() | ||
167 | { | ||
168 | if (eIsProxy()) return super.toString(); | ||
169 | |||
170 | StringBuffer result = new StringBuffer(super.toString()); | ||
171 | result.append(" (name: "); | ||
172 | result.append(name); | ||
173 | result.append(')'); | ||
174 | return result.toString(); | ||
175 | } | ||
176 | |||
177 | } //VLSConstantImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDefinedTermImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDefinedTermImpl.java new file mode 100644 index 00000000..444e2b85 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDefinedTermImpl.java | |||
@@ -0,0 +1,177 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDefinedTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>VLS Defined Term</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSDefinedTermImpl#getValue <em>Value</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class VLSDefinedTermImpl extends VLSTermImpl implements VLSDefinedTerm | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getValue() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String VALUE_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getValue() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String value = VALUE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected VLSDefinedTermImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return VampireLanguagePackage.Literals.VLS_DEFINED_TERM; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public String getValue() | ||
77 | { | ||
78 | return value; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public void setValue(String newValue) | ||
87 | { | ||
88 | String oldValue = value; | ||
89 | value = newValue; | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_DEFINED_TERM__VALUE, oldValue, value)); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
101 | { | ||
102 | switch (featureID) | ||
103 | { | ||
104 | case VampireLanguagePackage.VLS_DEFINED_TERM__VALUE: | ||
105 | return getValue(); | ||
106 | } | ||
107 | return super.eGet(featureID, resolve, coreType); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void eSet(int featureID, Object newValue) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case VampireLanguagePackage.VLS_DEFINED_TERM__VALUE: | ||
121 | setValue((String)newValue); | ||
122 | return; | ||
123 | } | ||
124 | super.eSet(featureID, newValue); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public void eUnset(int featureID) | ||
134 | { | ||
135 | switch (featureID) | ||
136 | { | ||
137 | case VampireLanguagePackage.VLS_DEFINED_TERM__VALUE: | ||
138 | setValue(VALUE_EDEFAULT); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case VampireLanguagePackage.VLS_DEFINED_TERM__VALUE: | ||
155 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | ||
156 | } | ||
157 | return super.eIsSet(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public String toString() | ||
167 | { | ||
168 | if (eIsProxy()) return super.toString(); | ||
169 | |||
170 | StringBuffer result = new StringBuffer(super.toString()); | ||
171 | result.append(" (value: "); | ||
172 | result.append(value); | ||
173 | result.append(')'); | ||
174 | return result.toString(); | ||
175 | } | ||
176 | |||
177 | } //VLSDefinedTermImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDoubleQuoteImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDoubleQuoteImpl.java new file mode 100644 index 00000000..db99a631 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSDoubleQuoteImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDoubleQuote; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS Double Quote</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSDoubleQuoteImpl extends VLSDefinedTermImpl implements VLSDoubleQuote | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSDoubleQuoteImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_DOUBLE_QUOTE; | ||
39 | } | ||
40 | |||
41 | } //VLSDoubleQuoteImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEqualityImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEqualityImpl.java new file mode 100644 index 00000000..ba729215 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEqualityImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquality; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Equality</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSEqualityImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSEqualityImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSEqualityImpl extends VLSTermImpl implements VLSEquality | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSEqualityImpl() | ||
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 VampireLanguagePackage.Literals.VLS_EQUALITY; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUALITY__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUALITY__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUALITY__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUALITY__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUALITY__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUALITY__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUALITY__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUALITY__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_EQUALITY__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_EQUALITY__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_EQUALITY__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_EQUALITY__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_EQUALITY__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_EQUALITY__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_EQUALITY__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_EQUALITY__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_EQUALITY__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_EQUALITY__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSEqualityImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEquivalentImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEquivalentImpl.java new file mode 100644 index 00000000..2ab11117 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSEquivalentImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquivalent; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Equivalent</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSEquivalentImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSEquivalentImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSEquivalentImpl extends VLSTermImpl implements VLSEquivalent | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSEquivalentImpl() | ||
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 VampireLanguagePackage.Literals.VLS_EQUIVALENT; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUIVALENT__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUIVALENT__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUIVALENT__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUIVALENT__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUIVALENT__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUIVALENT__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EQUIVALENT__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EQUIVALENT__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_EQUIVALENT__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_EQUIVALENT__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_EQUIVALENT__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_EQUIVALENT__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_EQUIVALENT__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_EQUIVALENT__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_EQUIVALENT__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_EQUIVALENT__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_EQUIVALENT__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_EQUIVALENT__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSEquivalentImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSExistentialQuantifierImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSExistentialQuantifierImpl.java new file mode 100644 index 00000000..34670d8b --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSExistentialQuantifierImpl.java | |||
@@ -0,0 +1,241 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSExistentialQuantifier; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
14 | import org.eclipse.emf.common.notify.NotificationChain; | ||
15 | |||
16 | import org.eclipse.emf.common.util.EList; | ||
17 | |||
18 | import org.eclipse.emf.ecore.EClass; | ||
19 | import org.eclipse.emf.ecore.InternalEObject; | ||
20 | |||
21 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>VLS Existential Quantifier</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSExistentialQuantifierImpl#getVariables <em>Variables</em>}</li> | ||
35 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSExistentialQuantifierImpl#getOperand <em>Operand</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class VLSExistentialQuantifierImpl extends VLSTermImpl implements VLSExistentialQuantifier | ||
41 | { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getVariables() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected EList<VLSVariable> variables; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getOperand() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected VLSTerm operand; | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | protected VLSExistentialQuantifierImpl() | ||
68 | { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() | ||
79 | { | ||
80 | return VampireLanguagePackage.Literals.VLS_EXISTENTIAL_QUANTIFIER; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public EList<VLSVariable> getVariables() | ||
89 | { | ||
90 | if (variables == null) | ||
91 | { | ||
92 | variables = new EObjectContainmentEList<VLSVariable>(VLSVariable.class, this, VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES); | ||
93 | } | ||
94 | return variables; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public VLSTerm getOperand() | ||
103 | { | ||
104 | return operand; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | public NotificationChain basicSetOperand(VLSTerm newOperand, NotificationChain msgs) | ||
113 | { | ||
114 | VLSTerm oldOperand = operand; | ||
115 | operand = newOperand; | ||
116 | if (eNotificationRequired()) | ||
117 | { | ||
118 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND, oldOperand, newOperand); | ||
119 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
120 | } | ||
121 | return msgs; | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public void setOperand(VLSTerm newOperand) | ||
130 | { | ||
131 | if (newOperand != operand) | ||
132 | { | ||
133 | NotificationChain msgs = null; | ||
134 | if (operand != null) | ||
135 | msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND, null, msgs); | ||
136 | if (newOperand != null) | ||
137 | msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND, null, msgs); | ||
138 | msgs = basicSetOperand(newOperand, msgs); | ||
139 | if (msgs != null) msgs.dispatch(); | ||
140 | } | ||
141 | else if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND, newOperand, newOperand)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES: | ||
156 | return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs); | ||
157 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND: | ||
158 | return basicSetOperand(null, msgs); | ||
159 | } | ||
160 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES: | ||
174 | return getVariables(); | ||
175 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND: | ||
176 | return getOperand(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @SuppressWarnings("unchecked") | ||
187 | @Override | ||
188 | public void eSet(int featureID, Object newValue) | ||
189 | { | ||
190 | switch (featureID) | ||
191 | { | ||
192 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES: | ||
193 | getVariables().clear(); | ||
194 | getVariables().addAll((Collection<? extends VLSVariable>)newValue); | ||
195 | return; | ||
196 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND: | ||
197 | setOperand((VLSTerm)newValue); | ||
198 | return; | ||
199 | } | ||
200 | super.eSet(featureID, newValue); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void eUnset(int featureID) | ||
210 | { | ||
211 | switch (featureID) | ||
212 | { | ||
213 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES: | ||
214 | getVariables().clear(); | ||
215 | return; | ||
216 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND: | ||
217 | setOperand((VLSTerm)null); | ||
218 | return; | ||
219 | } | ||
220 | super.eUnset(featureID); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public boolean eIsSet(int featureID) | ||
230 | { | ||
231 | switch (featureID) | ||
232 | { | ||
233 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__VARIABLES: | ||
234 | return variables != null && !variables.isEmpty(); | ||
235 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER__OPERAND: | ||
236 | return operand != null; | ||
237 | } | ||
238 | return super.eIsSet(featureID); | ||
239 | } | ||
240 | |||
241 | } //VLSExistentialQuantifierImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFalseImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFalseImpl.java new file mode 100644 index 00000000..1db5a6b4 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFalseImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFalse; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS False</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSFalseImpl extends VLSTermImpl implements VLSFalse | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSFalseImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_FALSE; | ||
39 | } | ||
40 | |||
41 | } //VLSFalseImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFofFormulaImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFofFormulaImpl.java new file mode 100644 index 00000000..beef8908 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFofFormulaImpl.java | |||
@@ -0,0 +1,394 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAnnotation; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFofFormula; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | import org.eclipse.emf.ecore.InternalEObject; | ||
16 | |||
17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
18 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>VLS Fof Formula</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFofFormulaImpl#getName <em>Name</em>}</li> | ||
29 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFofFormulaImpl#getFofRole <em>Fof Role</em>}</li> | ||
30 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFofFormulaImpl#getFofFormula <em>Fof Formula</em>}</li> | ||
31 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFofFormulaImpl#getAnnotations <em>Annotations</em>}</li> | ||
32 | * </ul> | ||
33 | * | ||
34 | * @generated | ||
35 | */ | ||
36 | public class VLSFofFormulaImpl extends MinimalEObjectImpl.Container implements VLSFofFormula | ||
37 | { | ||
38 | /** | ||
39 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getName() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected static final String NAME_EDEFAULT = null; | ||
47 | |||
48 | /** | ||
49 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getName() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected String name = NAME_EDEFAULT; | ||
57 | |||
58 | /** | ||
59 | * The default value of the '{@link #getFofRole() <em>Fof Role</em>}' attribute. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getFofRole() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected static final String FOF_ROLE_EDEFAULT = null; | ||
67 | |||
68 | /** | ||
69 | * The cached value of the '{@link #getFofRole() <em>Fof Role</em>}' attribute. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @see #getFofRole() | ||
73 | * @generated | ||
74 | * @ordered | ||
75 | */ | ||
76 | protected String fofRole = FOF_ROLE_EDEFAULT; | ||
77 | |||
78 | /** | ||
79 | * The cached value of the '{@link #getFofFormula() <em>Fof Formula</em>}' containment reference. | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @see #getFofFormula() | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | protected VLSTerm fofFormula; | ||
87 | |||
88 | /** | ||
89 | * The cached value of the '{@link #getAnnotations() <em>Annotations</em>}' containment reference. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @see #getAnnotations() | ||
93 | * @generated | ||
94 | * @ordered | ||
95 | */ | ||
96 | protected VLSAnnotation annotations; | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | protected VLSFofFormulaImpl() | ||
104 | { | ||
105 | super(); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | protected EClass eStaticClass() | ||
115 | { | ||
116 | return VampireLanguagePackage.Literals.VLS_FOF_FORMULA; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public String getName() | ||
125 | { | ||
126 | return name; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | public void setName(String newName) | ||
135 | { | ||
136 | String oldName = name; | ||
137 | name = newName; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__NAME, oldName, name)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public String getFofRole() | ||
148 | { | ||
149 | return fofRole; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | public void setFofRole(String newFofRole) | ||
158 | { | ||
159 | String oldFofRole = fofRole; | ||
160 | fofRole = newFofRole; | ||
161 | if (eNotificationRequired()) | ||
162 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__FOF_ROLE, oldFofRole, fofRole)); | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | public VLSTerm getFofFormula() | ||
171 | { | ||
172 | return fofFormula; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | public NotificationChain basicSetFofFormula(VLSTerm newFofFormula, NotificationChain msgs) | ||
181 | { | ||
182 | VLSTerm oldFofFormula = fofFormula; | ||
183 | fofFormula = newFofFormula; | ||
184 | if (eNotificationRequired()) | ||
185 | { | ||
186 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA, oldFofFormula, newFofFormula); | ||
187 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
188 | } | ||
189 | return msgs; | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | public void setFofFormula(VLSTerm newFofFormula) | ||
198 | { | ||
199 | if (newFofFormula != fofFormula) | ||
200 | { | ||
201 | NotificationChain msgs = null; | ||
202 | if (fofFormula != null) | ||
203 | msgs = ((InternalEObject)fofFormula).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA, null, msgs); | ||
204 | if (newFofFormula != null) | ||
205 | msgs = ((InternalEObject)newFofFormula).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA, null, msgs); | ||
206 | msgs = basicSetFofFormula(newFofFormula, msgs); | ||
207 | if (msgs != null) msgs.dispatch(); | ||
208 | } | ||
209 | else if (eNotificationRequired()) | ||
210 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA, newFofFormula, newFofFormula)); | ||
211 | } | ||
212 | |||
213 | /** | ||
214 | * <!-- begin-user-doc --> | ||
215 | * <!-- end-user-doc --> | ||
216 | * @generated | ||
217 | */ | ||
218 | public VLSAnnotation getAnnotations() | ||
219 | { | ||
220 | return annotations; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | public NotificationChain basicSetAnnotations(VLSAnnotation newAnnotations, NotificationChain msgs) | ||
229 | { | ||
230 | VLSAnnotation oldAnnotations = annotations; | ||
231 | annotations = newAnnotations; | ||
232 | if (eNotificationRequired()) | ||
233 | { | ||
234 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS, oldAnnotations, newAnnotations); | ||
235 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
236 | } | ||
237 | return msgs; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | public void setAnnotations(VLSAnnotation newAnnotations) | ||
246 | { | ||
247 | if (newAnnotations != annotations) | ||
248 | { | ||
249 | NotificationChain msgs = null; | ||
250 | if (annotations != null) | ||
251 | msgs = ((InternalEObject)annotations).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS, null, msgs); | ||
252 | if (newAnnotations != null) | ||
253 | msgs = ((InternalEObject)newAnnotations).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS, null, msgs); | ||
254 | msgs = basicSetAnnotations(newAnnotations, msgs); | ||
255 | if (msgs != null) msgs.dispatch(); | ||
256 | } | ||
257 | else if (eNotificationRequired()) | ||
258 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS, newAnnotations, newAnnotations)); | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
268 | { | ||
269 | switch (featureID) | ||
270 | { | ||
271 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA: | ||
272 | return basicSetFofFormula(null, msgs); | ||
273 | case VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS: | ||
274 | return basicSetAnnotations(null, msgs); | ||
275 | } | ||
276 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
277 | } | ||
278 | |||
279 | /** | ||
280 | * <!-- begin-user-doc --> | ||
281 | * <!-- end-user-doc --> | ||
282 | * @generated | ||
283 | */ | ||
284 | @Override | ||
285 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
286 | { | ||
287 | switch (featureID) | ||
288 | { | ||
289 | case VampireLanguagePackage.VLS_FOF_FORMULA__NAME: | ||
290 | return getName(); | ||
291 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_ROLE: | ||
292 | return getFofRole(); | ||
293 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA: | ||
294 | return getFofFormula(); | ||
295 | case VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS: | ||
296 | return getAnnotations(); | ||
297 | } | ||
298 | return super.eGet(featureID, resolve, coreType); | ||
299 | } | ||
300 | |||
301 | /** | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | */ | ||
306 | @Override | ||
307 | public void eSet(int featureID, Object newValue) | ||
308 | { | ||
309 | switch (featureID) | ||
310 | { | ||
311 | case VampireLanguagePackage.VLS_FOF_FORMULA__NAME: | ||
312 | setName((String)newValue); | ||
313 | return; | ||
314 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_ROLE: | ||
315 | setFofRole((String)newValue); | ||
316 | return; | ||
317 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA: | ||
318 | setFofFormula((VLSTerm)newValue); | ||
319 | return; | ||
320 | case VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS: | ||
321 | setAnnotations((VLSAnnotation)newValue); | ||
322 | return; | ||
323 | } | ||
324 | super.eSet(featureID, newValue); | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public void eUnset(int featureID) | ||
334 | { | ||
335 | switch (featureID) | ||
336 | { | ||
337 | case VampireLanguagePackage.VLS_FOF_FORMULA__NAME: | ||
338 | setName(NAME_EDEFAULT); | ||
339 | return; | ||
340 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_ROLE: | ||
341 | setFofRole(FOF_ROLE_EDEFAULT); | ||
342 | return; | ||
343 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA: | ||
344 | setFofFormula((VLSTerm)null); | ||
345 | return; | ||
346 | case VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS: | ||
347 | setAnnotations((VLSAnnotation)null); | ||
348 | return; | ||
349 | } | ||
350 | super.eUnset(featureID); | ||
351 | } | ||
352 | |||
353 | /** | ||
354 | * <!-- begin-user-doc --> | ||
355 | * <!-- end-user-doc --> | ||
356 | * @generated | ||
357 | */ | ||
358 | @Override | ||
359 | public boolean eIsSet(int featureID) | ||
360 | { | ||
361 | switch (featureID) | ||
362 | { | ||
363 | case VampireLanguagePackage.VLS_FOF_FORMULA__NAME: | ||
364 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
365 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_ROLE: | ||
366 | return FOF_ROLE_EDEFAULT == null ? fofRole != null : !FOF_ROLE_EDEFAULT.equals(fofRole); | ||
367 | case VampireLanguagePackage.VLS_FOF_FORMULA__FOF_FORMULA: | ||
368 | return fofFormula != null; | ||
369 | case VampireLanguagePackage.VLS_FOF_FORMULA__ANNOTATIONS: | ||
370 | return annotations != null; | ||
371 | } | ||
372 | return super.eIsSet(featureID); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public String toString() | ||
382 | { | ||
383 | if (eIsProxy()) return super.toString(); | ||
384 | |||
385 | StringBuffer result = new StringBuffer(super.toString()); | ||
386 | result.append(" (name: "); | ||
387 | result.append(name); | ||
388 | result.append(", fofRole: "); | ||
389 | result.append(fofRole); | ||
390 | result.append(')'); | ||
391 | return result.toString(); | ||
392 | } | ||
393 | |||
394 | } //VLSFofFormulaImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionFofImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionFofImpl.java new file mode 100644 index 00000000..6d1c538b --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionFofImpl.java | |||
@@ -0,0 +1,240 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunctionFof; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>VLS Function Fof</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFunctionFofImpl#getFunctor <em>Functor</em>}</li> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFunctionFofImpl#getTerms <em>Terms</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class VLSFunctionFofImpl extends VLSTermImpl implements VLSFunctionFof | ||
40 | { | ||
41 | /** | ||
42 | * The default value of the '{@link #getFunctor() <em>Functor</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getFunctor() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final String FUNCTOR_EDEFAULT = null; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getFunctor() <em>Functor</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getFunctor() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected String functor = FUNCTOR_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getTerms() <em>Terms</em>}' containment reference list. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getTerms() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected EList<VLSTerm> terms; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | protected VLSFunctionFofImpl() | ||
77 | { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() | ||
88 | { | ||
89 | return VampireLanguagePackage.Literals.VLS_FUNCTION_FOF; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | public String getFunctor() | ||
98 | { | ||
99 | return functor; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setFunctor(String newFunctor) | ||
108 | { | ||
109 | String oldFunctor = functor; | ||
110 | functor = newFunctor; | ||
111 | if (eNotificationRequired()) | ||
112 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FUNCTION_FOF__FUNCTOR, oldFunctor, functor)); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public EList<VLSTerm> getTerms() | ||
121 | { | ||
122 | if (terms == null) | ||
123 | { | ||
124 | terms = new EObjectContainmentEList<VLSTerm>(VLSTerm.class, this, VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS); | ||
125 | } | ||
126 | return terms; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS: | ||
140 | return ((InternalEList<?>)getTerms()).basicRemove(otherEnd, msgs); | ||
141 | } | ||
142 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_FUNCTION_FOF__FUNCTOR: | ||
156 | return getFunctor(); | ||
157 | case VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS: | ||
158 | return getTerms(); | ||
159 | } | ||
160 | return super.eGet(featureID, resolve, coreType); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @SuppressWarnings("unchecked") | ||
169 | @Override | ||
170 | public void eSet(int featureID, Object newValue) | ||
171 | { | ||
172 | switch (featureID) | ||
173 | { | ||
174 | case VampireLanguagePackage.VLS_FUNCTION_FOF__FUNCTOR: | ||
175 | setFunctor((String)newValue); | ||
176 | return; | ||
177 | case VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS: | ||
178 | getTerms().clear(); | ||
179 | getTerms().addAll((Collection<? extends VLSTerm>)newValue); | ||
180 | return; | ||
181 | } | ||
182 | super.eSet(featureID, newValue); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public void eUnset(int featureID) | ||
192 | { | ||
193 | switch (featureID) | ||
194 | { | ||
195 | case VampireLanguagePackage.VLS_FUNCTION_FOF__FUNCTOR: | ||
196 | setFunctor(FUNCTOR_EDEFAULT); | ||
197 | return; | ||
198 | case VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS: | ||
199 | getTerms().clear(); | ||
200 | return; | ||
201 | } | ||
202 | super.eUnset(featureID); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public boolean eIsSet(int featureID) | ||
212 | { | ||
213 | switch (featureID) | ||
214 | { | ||
215 | case VampireLanguagePackage.VLS_FUNCTION_FOF__FUNCTOR: | ||
216 | return FUNCTOR_EDEFAULT == null ? functor != null : !FUNCTOR_EDEFAULT.equals(functor); | ||
217 | case VampireLanguagePackage.VLS_FUNCTION_FOF__TERMS: | ||
218 | return terms != null && !terms.isEmpty(); | ||
219 | } | ||
220 | return super.eIsSet(featureID); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public String toString() | ||
230 | { | ||
231 | if (eIsProxy()) return super.toString(); | ||
232 | |||
233 | StringBuffer result = new StringBuffer(super.toString()); | ||
234 | result.append(" (functor: "); | ||
235 | result.append(functor); | ||
236 | result.append(')'); | ||
237 | return result.toString(); | ||
238 | } | ||
239 | |||
240 | } //VLSFunctionFofImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionImpl.java new file mode 100644 index 00000000..49da58d4 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSFunctionImpl.java | |||
@@ -0,0 +1,240 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunction; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>VLS Function</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFunctionImpl#getConstant <em>Constant</em>}</li> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSFunctionImpl#getTerms <em>Terms</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class VLSFunctionImpl extends VLSTermImpl implements VLSFunction | ||
40 | { | ||
41 | /** | ||
42 | * The default value of the '{@link #getConstant() <em>Constant</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getConstant() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final String CONSTANT_EDEFAULT = null; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getConstant() <em>Constant</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getConstant() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected String constant = CONSTANT_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getTerms() <em>Terms</em>}' containment reference list. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getTerms() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected EList<VLSTerm> terms; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | protected VLSFunctionImpl() | ||
77 | { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() | ||
88 | { | ||
89 | return VampireLanguagePackage.Literals.VLS_FUNCTION; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | public String getConstant() | ||
98 | { | ||
99 | return constant; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setConstant(String newConstant) | ||
108 | { | ||
109 | String oldConstant = constant; | ||
110 | constant = newConstant; | ||
111 | if (eNotificationRequired()) | ||
112 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_FUNCTION__CONSTANT, oldConstant, constant)); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public EList<VLSTerm> getTerms() | ||
121 | { | ||
122 | if (terms == null) | ||
123 | { | ||
124 | terms = new EObjectContainmentEList<VLSTerm>(VLSTerm.class, this, VampireLanguagePackage.VLS_FUNCTION__TERMS); | ||
125 | } | ||
126 | return terms; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case VampireLanguagePackage.VLS_FUNCTION__TERMS: | ||
140 | return ((InternalEList<?>)getTerms()).basicRemove(otherEnd, msgs); | ||
141 | } | ||
142 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_FUNCTION__CONSTANT: | ||
156 | return getConstant(); | ||
157 | case VampireLanguagePackage.VLS_FUNCTION__TERMS: | ||
158 | return getTerms(); | ||
159 | } | ||
160 | return super.eGet(featureID, resolve, coreType); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @SuppressWarnings("unchecked") | ||
169 | @Override | ||
170 | public void eSet(int featureID, Object newValue) | ||
171 | { | ||
172 | switch (featureID) | ||
173 | { | ||
174 | case VampireLanguagePackage.VLS_FUNCTION__CONSTANT: | ||
175 | setConstant((String)newValue); | ||
176 | return; | ||
177 | case VampireLanguagePackage.VLS_FUNCTION__TERMS: | ||
178 | getTerms().clear(); | ||
179 | getTerms().addAll((Collection<? extends VLSTerm>)newValue); | ||
180 | return; | ||
181 | } | ||
182 | super.eSet(featureID, newValue); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public void eUnset(int featureID) | ||
192 | { | ||
193 | switch (featureID) | ||
194 | { | ||
195 | case VampireLanguagePackage.VLS_FUNCTION__CONSTANT: | ||
196 | setConstant(CONSTANT_EDEFAULT); | ||
197 | return; | ||
198 | case VampireLanguagePackage.VLS_FUNCTION__TERMS: | ||
199 | getTerms().clear(); | ||
200 | return; | ||
201 | } | ||
202 | super.eUnset(featureID); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public boolean eIsSet(int featureID) | ||
212 | { | ||
213 | switch (featureID) | ||
214 | { | ||
215 | case VampireLanguagePackage.VLS_FUNCTION__CONSTANT: | ||
216 | return CONSTANT_EDEFAULT == null ? constant != null : !CONSTANT_EDEFAULT.equals(constant); | ||
217 | case VampireLanguagePackage.VLS_FUNCTION__TERMS: | ||
218 | return terms != null && !terms.isEmpty(); | ||
219 | } | ||
220 | return super.eIsSet(featureID); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public String toString() | ||
230 | { | ||
231 | if (eIsProxy()) return super.toString(); | ||
232 | |||
233 | StringBuffer result = new StringBuffer(super.toString()); | ||
234 | result.append(" (constant: "); | ||
235 | result.append(constant); | ||
236 | result.append(')'); | ||
237 | return result.toString(); | ||
238 | } | ||
239 | |||
240 | } //VLSFunctionImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSImpliesImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSImpliesImpl.java new file mode 100644 index 00000000..3c8d9193 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSImpliesImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSImplies; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Implies</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSImpliesImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSImpliesImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSImpliesImpl extends VLSTermImpl implements VLSImplies | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSImpliesImpl() | ||
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 VampireLanguagePackage.Literals.VLS_IMPLIES; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_IMPLIES__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_IMPLIES__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_IMPLIES__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_IMPLIES__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_IMPLIES__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_IMPLIES__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_IMPLIES__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_IMPLIES__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_IMPLIES__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_IMPLIES__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_IMPLIES__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_IMPLIES__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_IMPLIES__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_IMPLIES__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_IMPLIES__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_IMPLIES__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_IMPLIES__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_IMPLIES__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSImpliesImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIncludeImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIncludeImpl.java new file mode 100644 index 00000000..b37d97b4 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIncludeImpl.java | |||
@@ -0,0 +1,241 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInclude; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSName; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>VLS Include</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSIncludeImpl#getFileName <em>File Name</em>}</li> | ||
35 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSIncludeImpl#getNames <em>Names</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class VLSIncludeImpl extends MinimalEObjectImpl.Container implements VLSInclude | ||
41 | { | ||
42 | /** | ||
43 | * The default value of the '{@link #getFileName() <em>File Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getFileName() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected static final String FILE_NAME_EDEFAULT = null; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getFileName() <em>File Name</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getFileName() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected String fileName = FILE_NAME_EDEFAULT; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getNames() <em>Names</em>}' containment reference list. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getNames() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected EList<VLSName> names; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | protected VLSIncludeImpl() | ||
78 | { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() | ||
89 | { | ||
90 | return VampireLanguagePackage.Literals.VLS_INCLUDE; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public String getFileName() | ||
99 | { | ||
100 | return fileName; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public void setFileName(String newFileName) | ||
109 | { | ||
110 | String oldFileName = fileName; | ||
111 | fileName = newFileName; | ||
112 | if (eNotificationRequired()) | ||
113 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_INCLUDE__FILE_NAME, oldFileName, fileName)); | ||
114 | } | ||
115 | |||
116 | /** | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @generated | ||
120 | */ | ||
121 | public EList<VLSName> getNames() | ||
122 | { | ||
123 | if (names == null) | ||
124 | { | ||
125 | names = new EObjectContainmentEList<VLSName>(VLSName.class, this, VampireLanguagePackage.VLS_INCLUDE__NAMES); | ||
126 | } | ||
127 | return names; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case VampireLanguagePackage.VLS_INCLUDE__NAMES: | ||
141 | return ((InternalEList<?>)getNames()).basicRemove(otherEnd, msgs); | ||
142 | } | ||
143 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case VampireLanguagePackage.VLS_INCLUDE__FILE_NAME: | ||
157 | return getFileName(); | ||
158 | case VampireLanguagePackage.VLS_INCLUDE__NAMES: | ||
159 | return getNames(); | ||
160 | } | ||
161 | return super.eGet(featureID, resolve, coreType); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @SuppressWarnings("unchecked") | ||
170 | @Override | ||
171 | public void eSet(int featureID, Object newValue) | ||
172 | { | ||
173 | switch (featureID) | ||
174 | { | ||
175 | case VampireLanguagePackage.VLS_INCLUDE__FILE_NAME: | ||
176 | setFileName((String)newValue); | ||
177 | return; | ||
178 | case VampireLanguagePackage.VLS_INCLUDE__NAMES: | ||
179 | getNames().clear(); | ||
180 | getNames().addAll((Collection<? extends VLSName>)newValue); | ||
181 | return; | ||
182 | } | ||
183 | super.eSet(featureID, newValue); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void eUnset(int featureID) | ||
193 | { | ||
194 | switch (featureID) | ||
195 | { | ||
196 | case VampireLanguagePackage.VLS_INCLUDE__FILE_NAME: | ||
197 | setFileName(FILE_NAME_EDEFAULT); | ||
198 | return; | ||
199 | case VampireLanguagePackage.VLS_INCLUDE__NAMES: | ||
200 | getNames().clear(); | ||
201 | return; | ||
202 | } | ||
203 | super.eUnset(featureID); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public boolean eIsSet(int featureID) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case VampireLanguagePackage.VLS_INCLUDE__FILE_NAME: | ||
217 | return FILE_NAME_EDEFAULT == null ? fileName != null : !FILE_NAME_EDEFAULT.equals(fileName); | ||
218 | case VampireLanguagePackage.VLS_INCLUDE__NAMES: | ||
219 | return names != null && !names.isEmpty(); | ||
220 | } | ||
221 | return super.eIsSet(featureID); | ||
222 | } | ||
223 | |||
224 | /** | ||
225 | * <!-- begin-user-doc --> | ||
226 | * <!-- end-user-doc --> | ||
227 | * @generated | ||
228 | */ | ||
229 | @Override | ||
230 | public String toString() | ||
231 | { | ||
232 | if (eIsProxy()) return super.toString(); | ||
233 | |||
234 | StringBuffer result = new StringBuffer(super.toString()); | ||
235 | result.append(" (fileName: "); | ||
236 | result.append(fileName); | ||
237 | result.append(')'); | ||
238 | return result.toString(); | ||
239 | } | ||
240 | |||
241 | } //VLSIncludeImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSInequalityImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSInequalityImpl.java new file mode 100644 index 00000000..ba409780 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSInequalityImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInequality; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Inequality</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSInequalityImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSInequalityImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSInequalityImpl extends VLSTermImpl implements VLSInequality | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSInequalityImpl() | ||
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 VampireLanguagePackage.Literals.VLS_INEQUALITY; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_INEQUALITY__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_INEQUALITY__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_INEQUALITY__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_INEQUALITY__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_INEQUALITY__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_INEQUALITY__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_INEQUALITY__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_INEQUALITY__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_INEQUALITY__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_INEQUALITY__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_INEQUALITY__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_INEQUALITY__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_INEQUALITY__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_INEQUALITY__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_INEQUALITY__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_INEQUALITY__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_INEQUALITY__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_INEQUALITY__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSInequalityImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIntImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIntImpl.java new file mode 100644 index 00000000..a513549a --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSIntImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInt; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS Int</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSIntImpl extends VLSDefinedTermImpl implements VLSInt | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSIntImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_INT; | ||
39 | } | ||
40 | |||
41 | } //VLSIntImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSLessImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSLessImpl.java new file mode 100644 index 00000000..71f2b9c8 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSLessImpl.java | |||
@@ -0,0 +1,240 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSLess; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>VLS Less</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSLessImpl#getName <em>Name</em>}</li> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSLessImpl#getTerms <em>Terms</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class VLSLessImpl extends VLSTermImpl implements VLSLess | ||
40 | { | ||
41 | /** | ||
42 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final String NAME_EDEFAULT = null; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getName() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected String name = NAME_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getTerms() <em>Terms</em>}' containment reference list. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getTerms() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected EList<VLSTerm> terms; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | protected VLSLessImpl() | ||
77 | { | ||
78 | super(); | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | protected EClass eStaticClass() | ||
88 | { | ||
89 | return VampireLanguagePackage.Literals.VLS_LESS; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | public String getName() | ||
98 | { | ||
99 | return name; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setName(String newName) | ||
108 | { | ||
109 | String oldName = name; | ||
110 | name = newName; | ||
111 | if (eNotificationRequired()) | ||
112 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_LESS__NAME, oldName, name)); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | public EList<VLSTerm> getTerms() | ||
121 | { | ||
122 | if (terms == null) | ||
123 | { | ||
124 | terms = new EObjectContainmentEList<VLSTerm>(VLSTerm.class, this, VampireLanguagePackage.VLS_LESS__TERMS); | ||
125 | } | ||
126 | return terms; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case VampireLanguagePackage.VLS_LESS__TERMS: | ||
140 | return ((InternalEList<?>)getTerms()).basicRemove(otherEnd, msgs); | ||
141 | } | ||
142 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_LESS__NAME: | ||
156 | return getName(); | ||
157 | case VampireLanguagePackage.VLS_LESS__TERMS: | ||
158 | return getTerms(); | ||
159 | } | ||
160 | return super.eGet(featureID, resolve, coreType); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @SuppressWarnings("unchecked") | ||
169 | @Override | ||
170 | public void eSet(int featureID, Object newValue) | ||
171 | { | ||
172 | switch (featureID) | ||
173 | { | ||
174 | case VampireLanguagePackage.VLS_LESS__NAME: | ||
175 | setName((String)newValue); | ||
176 | return; | ||
177 | case VampireLanguagePackage.VLS_LESS__TERMS: | ||
178 | getTerms().clear(); | ||
179 | getTerms().addAll((Collection<? extends VLSTerm>)newValue); | ||
180 | return; | ||
181 | } | ||
182 | super.eSet(featureID, newValue); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public void eUnset(int featureID) | ||
192 | { | ||
193 | switch (featureID) | ||
194 | { | ||
195 | case VampireLanguagePackage.VLS_LESS__NAME: | ||
196 | setName(NAME_EDEFAULT); | ||
197 | return; | ||
198 | case VampireLanguagePackage.VLS_LESS__TERMS: | ||
199 | getTerms().clear(); | ||
200 | return; | ||
201 | } | ||
202 | super.eUnset(featureID); | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public boolean eIsSet(int featureID) | ||
212 | { | ||
213 | switch (featureID) | ||
214 | { | ||
215 | case VampireLanguagePackage.VLS_LESS__NAME: | ||
216 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
217 | case VampireLanguagePackage.VLS_LESS__TERMS: | ||
218 | return terms != null && !terms.isEmpty(); | ||
219 | } | ||
220 | return super.eIsSet(featureID); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public String toString() | ||
230 | { | ||
231 | if (eIsProxy()) return super.toString(); | ||
232 | |||
233 | StringBuffer result = new StringBuffer(super.toString()); | ||
234 | result.append(" (name: "); | ||
235 | result.append(name); | ||
236 | result.append(')'); | ||
237 | return result.toString(); | ||
238 | } | ||
239 | |||
240 | } //VLSLessImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNameImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNameImpl.java new file mode 100644 index 00000000..5217696e --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNameImpl.java | |||
@@ -0,0 +1,178 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSName; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>VLS Name</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSNameImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VLSNameImpl extends MinimalEObjectImpl.Container implements VLSName | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected VLSNameImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return VampireLanguagePackage.Literals.VLS_NAME; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | public String getName() | ||
78 | { | ||
79 | return name; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public void setName(String newName) | ||
88 | { | ||
89 | String oldName = name; | ||
90 | name = newName; | ||
91 | if (eNotificationRequired()) | ||
92 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NAME__NAME, oldName, name)); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
102 | { | ||
103 | switch (featureID) | ||
104 | { | ||
105 | case VampireLanguagePackage.VLS_NAME__NAME: | ||
106 | return getName(); | ||
107 | } | ||
108 | return super.eGet(featureID, resolve, coreType); | ||
109 | } | ||
110 | |||
111 | /** | ||
112 | * <!-- begin-user-doc --> | ||
113 | * <!-- end-user-doc --> | ||
114 | * @generated | ||
115 | */ | ||
116 | @Override | ||
117 | public void eSet(int featureID, Object newValue) | ||
118 | { | ||
119 | switch (featureID) | ||
120 | { | ||
121 | case VampireLanguagePackage.VLS_NAME__NAME: | ||
122 | setName((String)newValue); | ||
123 | return; | ||
124 | } | ||
125 | super.eSet(featureID, newValue); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void eUnset(int featureID) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case VampireLanguagePackage.VLS_NAME__NAME: | ||
139 | setName(NAME_EDEFAULT); | ||
140 | return; | ||
141 | } | ||
142 | super.eUnset(featureID); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public boolean eIsSet(int featureID) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_NAME__NAME: | ||
156 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
157 | } | ||
158 | return super.eIsSet(featureID); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public String toString() | ||
168 | { | ||
169 | if (eIsProxy()) return super.toString(); | ||
170 | |||
171 | StringBuffer result = new StringBuffer(super.toString()); | ||
172 | result.append(" (name: "); | ||
173 | result.append(name); | ||
174 | result.append(')'); | ||
175 | return result.toString(); | ||
176 | } | ||
177 | |||
178 | } //VLSNameImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNandImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNandImpl.java new file mode 100644 index 00000000..ca157692 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNandImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSNand; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Nand</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSNandImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSNandImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSNandImpl extends VLSTermImpl implements VLSNand | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSNandImpl() | ||
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 VampireLanguagePackage.Literals.VLS_NAND; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NAND__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NAND__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NAND__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NAND__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NAND__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NAND__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NAND__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NAND__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_NAND__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_NAND__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_NAND__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_NAND__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_NAND__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_NAND__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_NAND__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_NAND__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_NAND__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_NAND__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSNandImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNorImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNorImpl.java new file mode 100644 index 00000000..b9d8eea4 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSNorImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSNor; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Nor</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSNorImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSNorImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSNorImpl extends VLSTermImpl implements VLSNor | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSNorImpl() | ||
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 VampireLanguagePackage.Literals.VLS_NOR; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NOR__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NOR__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NOR__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NOR__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NOR__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NOR__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_NOR__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_NOR__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_NOR__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_NOR__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_NOR__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_NOR__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_NOR__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_NOR__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_NOR__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_NOR__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_NOR__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_NOR__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSNorImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSOrImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSOrImpl.java new file mode 100644 index 00000000..dbe09020 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSOrImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSOr; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Or</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSOrImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSOrImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSOrImpl extends VLSTermImpl implements VLSOr | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSOrImpl() | ||
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 VampireLanguagePackage.Literals.VLS_OR; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_OR__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_OR__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_OR__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_OR__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_OR__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_OR__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_OR__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_OR__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_OR__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_OR__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_OR__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_OR__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_OR__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_OR__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_OR__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_OR__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_OR__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_OR__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSOrImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRationalImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRationalImpl.java new file mode 100644 index 00000000..43f2b84b --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRationalImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSRational; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS Rational</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSRationalImpl extends VLSDefinedTermImpl implements VLSRational | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSRationalImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_RATIONAL; | ||
39 | } | ||
40 | |||
41 | } //VLSRationalImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRealImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRealImpl.java new file mode 100644 index 00000000..54789949 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRealImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSReal; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS Real</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSRealImpl extends VLSDefinedTermImpl implements VLSReal | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSRealImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_REAL; | ||
39 | } | ||
40 | |||
41 | } //VLSRealImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRevImpliesImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRevImpliesImpl.java new file mode 100644 index 00000000..2a0dbf03 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSRevImpliesImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSRevImplies; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Rev Implies</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSRevImpliesImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSRevImpliesImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSRevImpliesImpl extends VLSTermImpl implements VLSRevImplies | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSRevImpliesImpl() | ||
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 VampireLanguagePackage.Literals.VLS_REV_IMPLIES; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_REV_IMPLIES__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_REV_IMPLIES__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_REV_IMPLIES__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_REV_IMPLIES__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_REV_IMPLIES__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_REV_IMPLIES__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_REV_IMPLIES__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_REV_IMPLIES__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_REV_IMPLIES__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_REV_IMPLIES__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSRevImpliesImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTermImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTermImpl.java new file mode 100644 index 00000000..3766eae5 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTermImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>VLS Term</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class VLSTermImpl extends MinimalEObjectImpl.Container implements VLSTerm | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected VLSTermImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return VampireLanguagePackage.Literals.VLS_TERM; | ||
41 | } | ||
42 | |||
43 | } //VLSTermImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTrueImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTrueImpl.java new file mode 100644 index 00000000..3153600a --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSTrueImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTrue; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>VLS True</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class VLSTrueImpl extends VLSTermImpl implements VLSTrue | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected VLSTrueImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return VampireLanguagePackage.Literals.VLS_TRUE; | ||
39 | } | ||
40 | |||
41 | } //VLSTrueImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUnaryNegationImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUnaryNegationImpl.java new file mode 100644 index 00000000..85dc0b1b --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUnaryNegationImpl.java | |||
@@ -0,0 +1,194 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUnaryNegation; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Unary Negation</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSUnaryNegationImpl#getOperand <em>Operand</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class VLSUnaryNegationImpl extends VLSTermImpl implements VLSUnaryNegation | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getOperand() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected VLSTerm operand; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected VLSUnaryNegationImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return VampireLanguagePackage.Literals.VLS_UNARY_NEGATION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public VLSTerm getOperand() | ||
70 | { | ||
71 | return operand; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | public NotificationChain basicSetOperand(VLSTerm newOperand, NotificationChain msgs) | ||
80 | { | ||
81 | VLSTerm oldOperand = operand; | ||
82 | operand = newOperand; | ||
83 | if (eNotificationRequired()) | ||
84 | { | ||
85 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND, oldOperand, newOperand); | ||
86 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
87 | } | ||
88 | return msgs; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public void setOperand(VLSTerm newOperand) | ||
97 | { | ||
98 | if (newOperand != operand) | ||
99 | { | ||
100 | NotificationChain msgs = null; | ||
101 | if (operand != null) | ||
102 | msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND, null, msgs); | ||
103 | if (newOperand != null) | ||
104 | msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND, null, msgs); | ||
105 | msgs = basicSetOperand(newOperand, msgs); | ||
106 | if (msgs != null) msgs.dispatch(); | ||
107 | } | ||
108 | else if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND, newOperand, newOperand)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND: | ||
123 | return basicSetOperand(null, msgs); | ||
124 | } | ||
125 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND: | ||
139 | return getOperand(); | ||
140 | } | ||
141 | return super.eGet(featureID, resolve, coreType); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public void eSet(int featureID, Object newValue) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND: | ||
155 | setOperand((VLSTerm)newValue); | ||
156 | return; | ||
157 | } | ||
158 | super.eSet(featureID, newValue); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public void eUnset(int featureID) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND: | ||
172 | setOperand((VLSTerm)null); | ||
173 | return; | ||
174 | } | ||
175 | super.eUnset(featureID); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public boolean eIsSet(int featureID) | ||
185 | { | ||
186 | switch (featureID) | ||
187 | { | ||
188 | case VampireLanguagePackage.VLS_UNARY_NEGATION__OPERAND: | ||
189 | return operand != null; | ||
190 | } | ||
191 | return super.eIsSet(featureID); | ||
192 | } | ||
193 | |||
194 | } //VLSUnaryNegationImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUniversalQuantifierImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUniversalQuantifierImpl.java new file mode 100644 index 00000000..5627cc4c --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSUniversalQuantifierImpl.java | |||
@@ -0,0 +1,241 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUniversalQuantifier; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
14 | import org.eclipse.emf.common.notify.NotificationChain; | ||
15 | |||
16 | import org.eclipse.emf.common.util.EList; | ||
17 | |||
18 | import org.eclipse.emf.ecore.EClass; | ||
19 | import org.eclipse.emf.ecore.InternalEObject; | ||
20 | |||
21 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>VLS Universal Quantifier</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSUniversalQuantifierImpl#getVariables <em>Variables</em>}</li> | ||
35 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSUniversalQuantifierImpl#getOperand <em>Operand</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class VLSUniversalQuantifierImpl extends VLSTermImpl implements VLSUniversalQuantifier | ||
41 | { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getVariables() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected EList<VLSVariable> variables; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getOperand() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected VLSTerm operand; | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | protected VLSUniversalQuantifierImpl() | ||
68 | { | ||
69 | super(); | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | protected EClass eStaticClass() | ||
79 | { | ||
80 | return VampireLanguagePackage.Literals.VLS_UNIVERSAL_QUANTIFIER; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public EList<VLSVariable> getVariables() | ||
89 | { | ||
90 | if (variables == null) | ||
91 | { | ||
92 | variables = new EObjectContainmentEList<VLSVariable>(VLSVariable.class, this, VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES); | ||
93 | } | ||
94 | return variables; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public VLSTerm getOperand() | ||
103 | { | ||
104 | return operand; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | public NotificationChain basicSetOperand(VLSTerm newOperand, NotificationChain msgs) | ||
113 | { | ||
114 | VLSTerm oldOperand = operand; | ||
115 | operand = newOperand; | ||
116 | if (eNotificationRequired()) | ||
117 | { | ||
118 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND, oldOperand, newOperand); | ||
119 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
120 | } | ||
121 | return msgs; | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public void setOperand(VLSTerm newOperand) | ||
130 | { | ||
131 | if (newOperand != operand) | ||
132 | { | ||
133 | NotificationChain msgs = null; | ||
134 | if (operand != null) | ||
135 | msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND, null, msgs); | ||
136 | if (newOperand != null) | ||
137 | msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND, null, msgs); | ||
138 | msgs = basicSetOperand(newOperand, msgs); | ||
139 | if (msgs != null) msgs.dispatch(); | ||
140 | } | ||
141 | else if (eNotificationRequired()) | ||
142 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND, newOperand, newOperand)); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES: | ||
156 | return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs); | ||
157 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND: | ||
158 | return basicSetOperand(null, msgs); | ||
159 | } | ||
160 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
170 | { | ||
171 | switch (featureID) | ||
172 | { | ||
173 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES: | ||
174 | return getVariables(); | ||
175 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND: | ||
176 | return getOperand(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @SuppressWarnings("unchecked") | ||
187 | @Override | ||
188 | public void eSet(int featureID, Object newValue) | ||
189 | { | ||
190 | switch (featureID) | ||
191 | { | ||
192 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES: | ||
193 | getVariables().clear(); | ||
194 | getVariables().addAll((Collection<? extends VLSVariable>)newValue); | ||
195 | return; | ||
196 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND: | ||
197 | setOperand((VLSTerm)newValue); | ||
198 | return; | ||
199 | } | ||
200 | super.eSet(featureID, newValue); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void eUnset(int featureID) | ||
210 | { | ||
211 | switch (featureID) | ||
212 | { | ||
213 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES: | ||
214 | getVariables().clear(); | ||
215 | return; | ||
216 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND: | ||
217 | setOperand((VLSTerm)null); | ||
218 | return; | ||
219 | } | ||
220 | super.eUnset(featureID); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public boolean eIsSet(int featureID) | ||
230 | { | ||
231 | switch (featureID) | ||
232 | { | ||
233 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__VARIABLES: | ||
234 | return variables != null && !variables.isEmpty(); | ||
235 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER__OPERAND: | ||
236 | return operand != null; | ||
237 | } | ||
238 | return super.eIsSet(featureID); | ||
239 | } | ||
240 | |||
241 | } //VLSUniversalQuantifierImpl | ||
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 new file mode 100644 index 00000000..437bb72d --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSVariableImpl.java | |||
@@ -0,0 +1,177 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>VLS Variable</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSVariableImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class VLSVariableImpl extends VLSTermImpl implements VLSVariable | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected VLSVariableImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return VampireLanguagePackage.Literals.VLS_VARIABLE; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public String getName() | ||
77 | { | ||
78 | return name; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public void setName(String newName) | ||
87 | { | ||
88 | String oldName = name; | ||
89 | name = newName; | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_VARIABLE__NAME, oldName, name)); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
101 | { | ||
102 | switch (featureID) | ||
103 | { | ||
104 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | ||
105 | return getName(); | ||
106 | } | ||
107 | return super.eGet(featureID, resolve, coreType); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void eSet(int featureID, Object newValue) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | ||
121 | setName((String)newValue); | ||
122 | return; | ||
123 | } | ||
124 | super.eSet(featureID, newValue); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public void eUnset(int featureID) | ||
134 | { | ||
135 | switch (featureID) | ||
136 | { | ||
137 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | ||
138 | setName(NAME_EDEFAULT); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case VampireLanguagePackage.VLS_VARIABLE__NAME: | ||
155 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
156 | } | ||
157 | return super.eIsSet(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public String toString() | ||
167 | { | ||
168 | if (eIsProxy()) return super.toString(); | ||
169 | |||
170 | StringBuffer result = new StringBuffer(super.toString()); | ||
171 | result.append(" (name: "); | ||
172 | result.append(name); | ||
173 | result.append(')'); | ||
174 | return result.toString(); | ||
175 | } | ||
176 | |||
177 | } //VLSVariableImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSXnorImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSXnorImpl.java new file mode 100644 index 00000000..0f9e5f5a --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VLSXnorImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSXnor; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
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 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>VLS Xnor</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSXnorImpl#getLeft <em>Left</em>}</li> | ||
27 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VLSXnorImpl#getRight <em>Right</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class VLSXnorImpl extends VLSTermImpl implements VLSXnor | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getLeft() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected VLSTerm left; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getRight() <em>Right</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getRight() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected VLSTerm right; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected VLSXnorImpl() | ||
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 VampireLanguagePackage.Literals.VLS_XNOR; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public VLSTerm getLeft() | ||
81 | { | ||
82 | return left; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public NotificationChain basicSetLeft(VLSTerm newLeft, NotificationChain msgs) | ||
91 | { | ||
92 | VLSTerm oldLeft = left; | ||
93 | left = newLeft; | ||
94 | if (eNotificationRequired()) | ||
95 | { | ||
96 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_XNOR__LEFT, oldLeft, newLeft); | ||
97 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
98 | } | ||
99 | return msgs; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public void setLeft(VLSTerm newLeft) | ||
108 | { | ||
109 | if (newLeft != left) | ||
110 | { | ||
111 | NotificationChain msgs = null; | ||
112 | if (left != null) | ||
113 | msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_XNOR__LEFT, null, msgs); | ||
114 | if (newLeft != null) | ||
115 | msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_XNOR__LEFT, null, msgs); | ||
116 | msgs = basicSetLeft(newLeft, msgs); | ||
117 | if (msgs != null) msgs.dispatch(); | ||
118 | } | ||
119 | else if (eNotificationRequired()) | ||
120 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_XNOR__LEFT, newLeft, newLeft)); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public VLSTerm getRight() | ||
129 | { | ||
130 | return right; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public NotificationChain basicSetRight(VLSTerm newRight, NotificationChain msgs) | ||
139 | { | ||
140 | VLSTerm oldRight = right; | ||
141 | right = newRight; | ||
142 | if (eNotificationRequired()) | ||
143 | { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_XNOR__RIGHT, oldRight, newRight); | ||
145 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
146 | } | ||
147 | return msgs; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public void setRight(VLSTerm newRight) | ||
156 | { | ||
157 | if (newRight != right) | ||
158 | { | ||
159 | NotificationChain msgs = null; | ||
160 | if (right != null) | ||
161 | msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_XNOR__RIGHT, null, msgs); | ||
162 | if (newRight != null) | ||
163 | msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VampireLanguagePackage.VLS_XNOR__RIGHT, null, msgs); | ||
164 | msgs = basicSetRight(newRight, msgs); | ||
165 | if (msgs != null) msgs.dispatch(); | ||
166 | } | ||
167 | else if (eNotificationRequired()) | ||
168 | eNotify(new ENotificationImpl(this, Notification.SET, VampireLanguagePackage.VLS_XNOR__RIGHT, newRight, newRight)); | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
178 | { | ||
179 | switch (featureID) | ||
180 | { | ||
181 | case VampireLanguagePackage.VLS_XNOR__LEFT: | ||
182 | return basicSetLeft(null, msgs); | ||
183 | case VampireLanguagePackage.VLS_XNOR__RIGHT: | ||
184 | return basicSetRight(null, msgs); | ||
185 | } | ||
186 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case VampireLanguagePackage.VLS_XNOR__LEFT: | ||
200 | return getLeft(); | ||
201 | case VampireLanguagePackage.VLS_XNOR__RIGHT: | ||
202 | return getRight(); | ||
203 | } | ||
204 | return super.eGet(featureID, resolve, coreType); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eSet(int featureID, Object newValue) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case VampireLanguagePackage.VLS_XNOR__LEFT: | ||
218 | setLeft((VLSTerm)newValue); | ||
219 | return; | ||
220 | case VampireLanguagePackage.VLS_XNOR__RIGHT: | ||
221 | setRight((VLSTerm)newValue); | ||
222 | return; | ||
223 | } | ||
224 | super.eSet(featureID, newValue); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public void eUnset(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case VampireLanguagePackage.VLS_XNOR__LEFT: | ||
238 | setLeft((VLSTerm)null); | ||
239 | return; | ||
240 | case VampireLanguagePackage.VLS_XNOR__RIGHT: | ||
241 | setRight((VLSTerm)null); | ||
242 | return; | ||
243 | } | ||
244 | super.eUnset(featureID); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public boolean eIsSet(int featureID) | ||
254 | { | ||
255 | switch (featureID) | ||
256 | { | ||
257 | case VampireLanguagePackage.VLS_XNOR__LEFT: | ||
258 | return left != null; | ||
259 | case VampireLanguagePackage.VLS_XNOR__RIGHT: | ||
260 | return right != null; | ||
261 | } | ||
262 | return super.eIsSet(featureID); | ||
263 | } | ||
264 | |||
265 | } //VLSXnorImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguageFactoryImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguageFactoryImpl.java new file mode 100644 index 00000000..630fa8ce --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguageFactoryImpl.java | |||
@@ -0,0 +1,491 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class VampireLanguageFactoryImpl extends EFactoryImpl implements VampireLanguageFactory | ||
23 | { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static VampireLanguageFactory init() | ||
31 | { | ||
32 | try | ||
33 | { | ||
34 | VampireLanguageFactory theVampireLanguageFactory = (VampireLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(VampireLanguagePackage.eNS_URI); | ||
35 | if (theVampireLanguageFactory != null) | ||
36 | { | ||
37 | return theVampireLanguageFactory; | ||
38 | } | ||
39 | } | ||
40 | catch (Exception exception) | ||
41 | { | ||
42 | EcorePlugin.INSTANCE.log(exception); | ||
43 | } | ||
44 | return new VampireLanguageFactoryImpl(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Creates an instance of the factory. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | public VampireLanguageFactoryImpl() | ||
54 | { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | public EObject create(EClass eClass) | ||
65 | { | ||
66 | switch (eClass.getClassifierID()) | ||
67 | { | ||
68 | case VampireLanguagePackage.VAMPIRE_MODEL: return createVampireModel(); | ||
69 | case VampireLanguagePackage.VLS_INCLUDE: return createVLSInclude(); | ||
70 | case VampireLanguagePackage.VLS_NAME: return createVLSName(); | ||
71 | case VampireLanguagePackage.VLS_COMMENT: return createVLSComment(); | ||
72 | case VampireLanguagePackage.VLS_FOF_FORMULA: return createVLSFofFormula(); | ||
73 | case VampireLanguagePackage.VLS_ANNOTATION: return createVLSAnnotation(); | ||
74 | case VampireLanguagePackage.VLS_TERM: return createVLSTerm(); | ||
75 | case VampireLanguagePackage.VLS_VARIABLE: return createVLSVariable(); | ||
76 | case VampireLanguagePackage.VLS_FUNCTION_FOF: return createVLSFunctionFof(); | ||
77 | case VampireLanguagePackage.VLS_DEFINED_TERM: return createVLSDefinedTerm(); | ||
78 | case VampireLanguagePackage.VLS_EQUIVALENT: return createVLSEquivalent(); | ||
79 | case VampireLanguagePackage.VLS_IMPLIES: return createVLSImplies(); | ||
80 | case VampireLanguagePackage.VLS_REV_IMPLIES: return createVLSRevImplies(); | ||
81 | case VampireLanguagePackage.VLS_XNOR: return createVLSXnor(); | ||
82 | case VampireLanguagePackage.VLS_NOR: return createVLSNor(); | ||
83 | case VampireLanguagePackage.VLS_NAND: return createVLSNand(); | ||
84 | case VampireLanguagePackage.VLS_AND: return createVLSAnd(); | ||
85 | case VampireLanguagePackage.VLS_OR: return createVLSOr(); | ||
86 | case VampireLanguagePackage.VLS_UNIVERSAL_QUANTIFIER: return createVLSUniversalQuantifier(); | ||
87 | case VampireLanguagePackage.VLS_EXISTENTIAL_QUANTIFIER: return createVLSExistentialQuantifier(); | ||
88 | case VampireLanguagePackage.VLS_UNARY_NEGATION: return createVLSUnaryNegation(); | ||
89 | case VampireLanguagePackage.VLS_INEQUALITY: return createVLSInequality(); | ||
90 | case VampireLanguagePackage.VLS_EQUALITY: return createVLSEquality(); | ||
91 | case VampireLanguagePackage.VLS_ASSIGNMENT: return createVLSAssignment(); | ||
92 | case VampireLanguagePackage.VLS_CONSTANT: return createVLSConstant(); | ||
93 | case VampireLanguagePackage.VLS_TRUE: return createVLSTrue(); | ||
94 | case VampireLanguagePackage.VLS_FALSE: return createVLSFalse(); | ||
95 | case VampireLanguagePackage.VLS_FUNCTION: return createVLSFunction(); | ||
96 | case VampireLanguagePackage.VLS_LESS: return createVLSLess(); | ||
97 | case VampireLanguagePackage.VLS_INT: return createVLSInt(); | ||
98 | case VampireLanguagePackage.VLS_REAL: return createVLSReal(); | ||
99 | case VampireLanguagePackage.VLS_RATIONAL: return createVLSRational(); | ||
100 | case VampireLanguagePackage.VLS_DOUBLE_QUOTE: return createVLSDoubleQuote(); | ||
101 | default: | ||
102 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
103 | } | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | public VampireModel createVampireModel() | ||
112 | { | ||
113 | VampireModelImpl vampireModel = new VampireModelImpl(); | ||
114 | return vampireModel; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | public VLSInclude createVLSInclude() | ||
123 | { | ||
124 | VLSIncludeImpl vlsInclude = new VLSIncludeImpl(); | ||
125 | return vlsInclude; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public VLSName createVLSName() | ||
134 | { | ||
135 | VLSNameImpl vlsName = new VLSNameImpl(); | ||
136 | return vlsName; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | public VLSComment createVLSComment() | ||
145 | { | ||
146 | VLSCommentImpl vlsComment = new VLSCommentImpl(); | ||
147 | return vlsComment; | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | public VLSFofFormula createVLSFofFormula() | ||
156 | { | ||
157 | VLSFofFormulaImpl vlsFofFormula = new VLSFofFormulaImpl(); | ||
158 | return vlsFofFormula; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | public VLSAnnotation createVLSAnnotation() | ||
167 | { | ||
168 | VLSAnnotationImpl vlsAnnotation = new VLSAnnotationImpl(); | ||
169 | return vlsAnnotation; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | public VLSTerm createVLSTerm() | ||
178 | { | ||
179 | VLSTermImpl vlsTerm = new VLSTermImpl(); | ||
180 | return vlsTerm; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public VLSVariable createVLSVariable() | ||
189 | { | ||
190 | VLSVariableImpl vlsVariable = new VLSVariableImpl(); | ||
191 | return vlsVariable; | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | public VLSFunctionFof createVLSFunctionFof() | ||
200 | { | ||
201 | VLSFunctionFofImpl vlsFunctionFof = new VLSFunctionFofImpl(); | ||
202 | return vlsFunctionFof; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | public VLSDefinedTerm createVLSDefinedTerm() | ||
211 | { | ||
212 | VLSDefinedTermImpl vlsDefinedTerm = new VLSDefinedTermImpl(); | ||
213 | return vlsDefinedTerm; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | public VLSEquivalent createVLSEquivalent() | ||
222 | { | ||
223 | VLSEquivalentImpl vlsEquivalent = new VLSEquivalentImpl(); | ||
224 | return vlsEquivalent; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | public VLSImplies createVLSImplies() | ||
233 | { | ||
234 | VLSImpliesImpl vlsImplies = new VLSImpliesImpl(); | ||
235 | return vlsImplies; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public VLSRevImplies createVLSRevImplies() | ||
244 | { | ||
245 | VLSRevImpliesImpl vlsRevImplies = new VLSRevImpliesImpl(); | ||
246 | return vlsRevImplies; | ||
247 | } | ||
248 | |||
249 | /** | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | */ | ||
254 | public VLSXnor createVLSXnor() | ||
255 | { | ||
256 | VLSXnorImpl vlsXnor = new VLSXnorImpl(); | ||
257 | return vlsXnor; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | public VLSNor createVLSNor() | ||
266 | { | ||
267 | VLSNorImpl vlsNor = new VLSNorImpl(); | ||
268 | return vlsNor; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | public VLSNand createVLSNand() | ||
277 | { | ||
278 | VLSNandImpl vlsNand = new VLSNandImpl(); | ||
279 | return vlsNand; | ||
280 | } | ||
281 | |||
282 | /** | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @generated | ||
286 | */ | ||
287 | public VLSAnd createVLSAnd() | ||
288 | { | ||
289 | VLSAndImpl vlsAnd = new VLSAndImpl(); | ||
290 | return vlsAnd; | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * <!-- begin-user-doc --> | ||
295 | * <!-- end-user-doc --> | ||
296 | * @generated | ||
297 | */ | ||
298 | public VLSOr createVLSOr() | ||
299 | { | ||
300 | VLSOrImpl vlsOr = new VLSOrImpl(); | ||
301 | return vlsOr; | ||
302 | } | ||
303 | |||
304 | /** | ||
305 | * <!-- begin-user-doc --> | ||
306 | * <!-- end-user-doc --> | ||
307 | * @generated | ||
308 | */ | ||
309 | public VLSUniversalQuantifier createVLSUniversalQuantifier() | ||
310 | { | ||
311 | VLSUniversalQuantifierImpl vlsUniversalQuantifier = new VLSUniversalQuantifierImpl(); | ||
312 | return vlsUniversalQuantifier; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | public VLSExistentialQuantifier createVLSExistentialQuantifier() | ||
321 | { | ||
322 | VLSExistentialQuantifierImpl vlsExistentialQuantifier = new VLSExistentialQuantifierImpl(); | ||
323 | return vlsExistentialQuantifier; | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | public VLSUnaryNegation createVLSUnaryNegation() | ||
332 | { | ||
333 | VLSUnaryNegationImpl vlsUnaryNegation = new VLSUnaryNegationImpl(); | ||
334 | return vlsUnaryNegation; | ||
335 | } | ||
336 | |||
337 | /** | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | public VLSInequality createVLSInequality() | ||
343 | { | ||
344 | VLSInequalityImpl vlsInequality = new VLSInequalityImpl(); | ||
345 | return vlsInequality; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | public VLSEquality createVLSEquality() | ||
354 | { | ||
355 | VLSEqualityImpl vlsEquality = new VLSEqualityImpl(); | ||
356 | return vlsEquality; | ||
357 | } | ||
358 | |||
359 | /** | ||
360 | * <!-- begin-user-doc --> | ||
361 | * <!-- end-user-doc --> | ||
362 | * @generated | ||
363 | */ | ||
364 | public VLSAssignment createVLSAssignment() | ||
365 | { | ||
366 | VLSAssignmentImpl vlsAssignment = new VLSAssignmentImpl(); | ||
367 | return vlsAssignment; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * <!-- begin-user-doc --> | ||
372 | * <!-- end-user-doc --> | ||
373 | * @generated | ||
374 | */ | ||
375 | public VLSConstant createVLSConstant() | ||
376 | { | ||
377 | VLSConstantImpl vlsConstant = new VLSConstantImpl(); | ||
378 | return vlsConstant; | ||
379 | } | ||
380 | |||
381 | /** | ||
382 | * <!-- begin-user-doc --> | ||
383 | * <!-- end-user-doc --> | ||
384 | * @generated | ||
385 | */ | ||
386 | public VLSTrue createVLSTrue() | ||
387 | { | ||
388 | VLSTrueImpl vlsTrue = new VLSTrueImpl(); | ||
389 | return vlsTrue; | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | public VLSFalse createVLSFalse() | ||
398 | { | ||
399 | VLSFalseImpl vlsFalse = new VLSFalseImpl(); | ||
400 | return vlsFalse; | ||
401 | } | ||
402 | |||
403 | /** | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @generated | ||
407 | */ | ||
408 | public VLSFunction createVLSFunction() | ||
409 | { | ||
410 | VLSFunctionImpl vlsFunction = new VLSFunctionImpl(); | ||
411 | return vlsFunction; | ||
412 | } | ||
413 | |||
414 | /** | ||
415 | * <!-- begin-user-doc --> | ||
416 | * <!-- end-user-doc --> | ||
417 | * @generated | ||
418 | */ | ||
419 | public VLSLess createVLSLess() | ||
420 | { | ||
421 | VLSLessImpl vlsLess = new VLSLessImpl(); | ||
422 | return vlsLess; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | public VLSInt createVLSInt() | ||
431 | { | ||
432 | VLSIntImpl vlsInt = new VLSIntImpl(); | ||
433 | return vlsInt; | ||
434 | } | ||
435 | |||
436 | /** | ||
437 | * <!-- begin-user-doc --> | ||
438 | * <!-- end-user-doc --> | ||
439 | * @generated | ||
440 | */ | ||
441 | public VLSReal createVLSReal() | ||
442 | { | ||
443 | VLSRealImpl vlsReal = new VLSRealImpl(); | ||
444 | return vlsReal; | ||
445 | } | ||
446 | |||
447 | /** | ||
448 | * <!-- begin-user-doc --> | ||
449 | * <!-- end-user-doc --> | ||
450 | * @generated | ||
451 | */ | ||
452 | public VLSRational createVLSRational() | ||
453 | { | ||
454 | VLSRationalImpl vlsRational = new VLSRationalImpl(); | ||
455 | return vlsRational; | ||
456 | } | ||
457 | |||
458 | /** | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | */ | ||
463 | public VLSDoubleQuote createVLSDoubleQuote() | ||
464 | { | ||
465 | VLSDoubleQuoteImpl vlsDoubleQuote = new VLSDoubleQuoteImpl(); | ||
466 | return vlsDoubleQuote; | ||
467 | } | ||
468 | |||
469 | /** | ||
470 | * <!-- begin-user-doc --> | ||
471 | * <!-- end-user-doc --> | ||
472 | * @generated | ||
473 | */ | ||
474 | public VampireLanguagePackage getVampireLanguagePackage() | ||
475 | { | ||
476 | return (VampireLanguagePackage)getEPackage(); | ||
477 | } | ||
478 | |||
479 | /** | ||
480 | * <!-- begin-user-doc --> | ||
481 | * <!-- end-user-doc --> | ||
482 | * @deprecated | ||
483 | * @generated | ||
484 | */ | ||
485 | @Deprecated | ||
486 | public static VampireLanguagePackage getPackage() | ||
487 | { | ||
488 | return VampireLanguagePackage.eINSTANCE; | ||
489 | } | ||
490 | |||
491 | } //VampireLanguageFactoryImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguagePackageImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguagePackageImpl.java new file mode 100644 index 00000000..86921032 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireLanguagePackageImpl.java | |||
@@ -0,0 +1,1505 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAnd; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAnnotation; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSAssignment; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSComment; | ||
10 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSConstant; | ||
11 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDefinedTerm; | ||
12 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSDoubleQuote; | ||
13 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquality; | ||
14 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSEquivalent; | ||
15 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSExistentialQuantifier; | ||
16 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFalse; | ||
17 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFofFormula; | ||
18 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunction; | ||
19 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFunctionFof; | ||
20 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSImplies; | ||
21 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInclude; | ||
22 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInequality; | ||
23 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInt; | ||
24 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSLess; | ||
25 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSName; | ||
26 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSNand; | ||
27 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSNor; | ||
28 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSOr; | ||
29 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSRational; | ||
30 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSReal; | ||
31 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSRevImplies; | ||
32 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTerm; | ||
33 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSTrue; | ||
34 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUnaryNegation; | ||
35 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSUniversalQuantifier; | ||
36 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSVariable; | ||
37 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSXnor; | ||
38 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguageFactory; | ||
39 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
40 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireModel; | ||
41 | |||
42 | import org.eclipse.emf.ecore.EAttribute; | ||
43 | import org.eclipse.emf.ecore.EClass; | ||
44 | import org.eclipse.emf.ecore.EPackage; | ||
45 | import org.eclipse.emf.ecore.EReference; | ||
46 | |||
47 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
48 | |||
49 | /** | ||
50 | * <!-- begin-user-doc --> | ||
51 | * An implementation of the model <b>Package</b>. | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | public class VampireLanguagePackageImpl extends EPackageImpl implements VampireLanguagePackage | ||
56 | { | ||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | private EClass vampireModelEClass = null; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | private EClass vlsIncludeEClass = null; | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | private EClass vlsNameEClass = null; | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | private EClass vlsCommentEClass = null; | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | private EClass vlsFofFormulaEClass = null; | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | private EClass vlsAnnotationEClass = null; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | private EClass vlsTermEClass = null; | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private EClass vlsVariableEClass = null; | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | private EClass vlsFunctionFofEClass = null; | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | private EClass vlsDefinedTermEClass = null; | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | private EClass vlsEquivalentEClass = null; | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | private EClass vlsImpliesEClass = null; | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | private EClass vlsRevImpliesEClass = null; | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | private EClass vlsXnorEClass = null; | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | private EClass vlsNorEClass = null; | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | private EClass vlsNandEClass = null; | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | private EClass vlsAndEClass = null; | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | private EClass vlsOrEClass = null; | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | private EClass vlsUniversalQuantifierEClass = null; | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | private EClass vlsExistentialQuantifierEClass = null; | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | private EClass vlsUnaryNegationEClass = null; | ||
203 | |||
204 | /** | ||
205 | * <!-- begin-user-doc --> | ||
206 | * <!-- end-user-doc --> | ||
207 | * @generated | ||
208 | */ | ||
209 | private EClass vlsInequalityEClass = null; | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | private EClass vlsEqualityEClass = null; | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | private EClass vlsAssignmentEClass = null; | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | private EClass vlsConstantEClass = null; | ||
231 | |||
232 | /** | ||
233 | * <!-- begin-user-doc --> | ||
234 | * <!-- end-user-doc --> | ||
235 | * @generated | ||
236 | */ | ||
237 | private EClass vlsTrueEClass = null; | ||
238 | |||
239 | /** | ||
240 | * <!-- begin-user-doc --> | ||
241 | * <!-- end-user-doc --> | ||
242 | * @generated | ||
243 | */ | ||
244 | private EClass vlsFalseEClass = null; | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | private EClass vlsFunctionEClass = null; | ||
252 | |||
253 | /** | ||
254 | * <!-- begin-user-doc --> | ||
255 | * <!-- end-user-doc --> | ||
256 | * @generated | ||
257 | */ | ||
258 | private EClass vlsLessEClass = null; | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | private EClass vlsIntEClass = null; | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | private EClass vlsRealEClass = null; | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | private EClass vlsRationalEClass = null; | ||
280 | |||
281 | /** | ||
282 | * <!-- begin-user-doc --> | ||
283 | * <!-- end-user-doc --> | ||
284 | * @generated | ||
285 | */ | ||
286 | private EClass vlsDoubleQuoteEClass = null; | ||
287 | |||
288 | /** | ||
289 | * Creates an instance of the model <b>Package</b>, registered with | ||
290 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
291 | * package URI value. | ||
292 | * <p>Note: the correct way to create the package is via the static | ||
293 | * factory method {@link #init init()}, which also performs | ||
294 | * initialization of the package, or returns the registered package, | ||
295 | * if one already exists. | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
299 | * @see ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage#eNS_URI | ||
300 | * @see #init() | ||
301 | * @generated | ||
302 | */ | ||
303 | private VampireLanguagePackageImpl() | ||
304 | { | ||
305 | super(eNS_URI, VampireLanguageFactory.eINSTANCE); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | private static boolean isInited = false; | ||
314 | |||
315 | /** | ||
316 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
317 | * | ||
318 | * <p>This method is used to initialize {@link VampireLanguagePackage#eINSTANCE} when that field is accessed. | ||
319 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @see #eNS_URI | ||
323 | * @see #createPackageContents() | ||
324 | * @see #initializePackageContents() | ||
325 | * @generated | ||
326 | */ | ||
327 | public static VampireLanguagePackage init() | ||
328 | { | ||
329 | if (isInited) return (VampireLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(VampireLanguagePackage.eNS_URI); | ||
330 | |||
331 | // Obtain or create and register package | ||
332 | VampireLanguagePackageImpl theVampireLanguagePackage = (VampireLanguagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof VampireLanguagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new VampireLanguagePackageImpl()); | ||
333 | |||
334 | isInited = true; | ||
335 | |||
336 | // Create package meta-data objects | ||
337 | theVampireLanguagePackage.createPackageContents(); | ||
338 | |||
339 | // Initialize created meta-data | ||
340 | theVampireLanguagePackage.initializePackageContents(); | ||
341 | |||
342 | // Mark meta-data to indicate it can't be changed | ||
343 | theVampireLanguagePackage.freeze(); | ||
344 | |||
345 | |||
346 | // Update the registry and return the package | ||
347 | EPackage.Registry.INSTANCE.put(VampireLanguagePackage.eNS_URI, theVampireLanguagePackage); | ||
348 | return theVampireLanguagePackage; | ||
349 | } | ||
350 | |||
351 | /** | ||
352 | * <!-- begin-user-doc --> | ||
353 | * <!-- end-user-doc --> | ||
354 | * @generated | ||
355 | */ | ||
356 | public EClass getVampireModel() | ||
357 | { | ||
358 | return vampireModelEClass; | ||
359 | } | ||
360 | |||
361 | /** | ||
362 | * <!-- begin-user-doc --> | ||
363 | * <!-- end-user-doc --> | ||
364 | * @generated | ||
365 | */ | ||
366 | public EReference getVampireModel_Includes() | ||
367 | { | ||
368 | return (EReference)vampireModelEClass.getEStructuralFeatures().get(0); | ||
369 | } | ||
370 | |||
371 | /** | ||
372 | * <!-- begin-user-doc --> | ||
373 | * <!-- end-user-doc --> | ||
374 | * @generated | ||
375 | */ | ||
376 | public EReference getVampireModel_Comments() | ||
377 | { | ||
378 | return (EReference)vampireModelEClass.getEStructuralFeatures().get(1); | ||
379 | } | ||
380 | |||
381 | /** | ||
382 | * <!-- begin-user-doc --> | ||
383 | * <!-- end-user-doc --> | ||
384 | * @generated | ||
385 | */ | ||
386 | public EReference getVampireModel_Formulas() | ||
387 | { | ||
388 | return (EReference)vampireModelEClass.getEStructuralFeatures().get(2); | ||
389 | } | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | public EClass getVLSInclude() | ||
397 | { | ||
398 | return vlsIncludeEClass; | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | public EAttribute getVLSInclude_FileName() | ||
407 | { | ||
408 | return (EAttribute)vlsIncludeEClass.getEStructuralFeatures().get(0); | ||
409 | } | ||
410 | |||
411 | /** | ||
412 | * <!-- begin-user-doc --> | ||
413 | * <!-- end-user-doc --> | ||
414 | * @generated | ||
415 | */ | ||
416 | public EReference getVLSInclude_Names() | ||
417 | { | ||
418 | return (EReference)vlsIncludeEClass.getEStructuralFeatures().get(1); | ||
419 | } | ||
420 | |||
421 | /** | ||
422 | * <!-- begin-user-doc --> | ||
423 | * <!-- end-user-doc --> | ||
424 | * @generated | ||
425 | */ | ||
426 | public EClass getVLSName() | ||
427 | { | ||
428 | return vlsNameEClass; | ||
429 | } | ||
430 | |||
431 | /** | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | */ | ||
436 | public EAttribute getVLSName_Name() | ||
437 | { | ||
438 | return (EAttribute)vlsNameEClass.getEStructuralFeatures().get(0); | ||
439 | } | ||
440 | |||
441 | /** | ||
442 | * <!-- begin-user-doc --> | ||
443 | * <!-- end-user-doc --> | ||
444 | * @generated | ||
445 | */ | ||
446 | public EClass getVLSComment() | ||
447 | { | ||
448 | return vlsCommentEClass; | ||
449 | } | ||
450 | |||
451 | /** | ||
452 | * <!-- begin-user-doc --> | ||
453 | * <!-- end-user-doc --> | ||
454 | * @generated | ||
455 | */ | ||
456 | public EAttribute getVLSComment_Comment() | ||
457 | { | ||
458 | return (EAttribute)vlsCommentEClass.getEStructuralFeatures().get(0); | ||
459 | } | ||
460 | |||
461 | /** | ||
462 | * <!-- begin-user-doc --> | ||
463 | * <!-- end-user-doc --> | ||
464 | * @generated | ||
465 | */ | ||
466 | public EClass getVLSFofFormula() | ||
467 | { | ||
468 | return vlsFofFormulaEClass; | ||
469 | } | ||
470 | |||
471 | /** | ||
472 | * <!-- begin-user-doc --> | ||
473 | * <!-- end-user-doc --> | ||
474 | * @generated | ||
475 | */ | ||
476 | public EAttribute getVLSFofFormula_Name() | ||
477 | { | ||
478 | return (EAttribute)vlsFofFormulaEClass.getEStructuralFeatures().get(0); | ||
479 | } | ||
480 | |||
481 | /** | ||
482 | * <!-- begin-user-doc --> | ||
483 | * <!-- end-user-doc --> | ||
484 | * @generated | ||
485 | */ | ||
486 | public EAttribute getVLSFofFormula_FofRole() | ||
487 | { | ||
488 | return (EAttribute)vlsFofFormulaEClass.getEStructuralFeatures().get(1); | ||
489 | } | ||
490 | |||
491 | /** | ||
492 | * <!-- begin-user-doc --> | ||
493 | * <!-- end-user-doc --> | ||
494 | * @generated | ||
495 | */ | ||
496 | public EReference getVLSFofFormula_FofFormula() | ||
497 | { | ||
498 | return (EReference)vlsFofFormulaEClass.getEStructuralFeatures().get(2); | ||
499 | } | ||
500 | |||
501 | /** | ||
502 | * <!-- begin-user-doc --> | ||
503 | * <!-- end-user-doc --> | ||
504 | * @generated | ||
505 | */ | ||
506 | public EReference getVLSFofFormula_Annotations() | ||
507 | { | ||
508 | return (EReference)vlsFofFormulaEClass.getEStructuralFeatures().get(3); | ||
509 | } | ||
510 | |||
511 | /** | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | */ | ||
516 | public EClass getVLSAnnotation() | ||
517 | { | ||
518 | return vlsAnnotationEClass; | ||
519 | } | ||
520 | |||
521 | /** | ||
522 | * <!-- begin-user-doc --> | ||
523 | * <!-- end-user-doc --> | ||
524 | * @generated | ||
525 | */ | ||
526 | public EAttribute getVLSAnnotation_Name() | ||
527 | { | ||
528 | return (EAttribute)vlsAnnotationEClass.getEStructuralFeatures().get(0); | ||
529 | } | ||
530 | |||
531 | /** | ||
532 | * <!-- begin-user-doc --> | ||
533 | * <!-- end-user-doc --> | ||
534 | * @generated | ||
535 | */ | ||
536 | public EReference getVLSAnnotation_Followup() | ||
537 | { | ||
538 | return (EReference)vlsAnnotationEClass.getEStructuralFeatures().get(1); | ||
539 | } | ||
540 | |||
541 | /** | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | */ | ||
546 | public EReference getVLSAnnotation_Terms() | ||
547 | { | ||
548 | return (EReference)vlsAnnotationEClass.getEStructuralFeatures().get(2); | ||
549 | } | ||
550 | |||
551 | /** | ||
552 | * <!-- begin-user-doc --> | ||
553 | * <!-- end-user-doc --> | ||
554 | * @generated | ||
555 | */ | ||
556 | public EClass getVLSTerm() | ||
557 | { | ||
558 | return vlsTermEClass; | ||
559 | } | ||
560 | |||
561 | /** | ||
562 | * <!-- begin-user-doc --> | ||
563 | * <!-- end-user-doc --> | ||
564 | * @generated | ||
565 | */ | ||
566 | public EClass getVLSVariable() | ||
567 | { | ||
568 | return vlsVariableEClass; | ||
569 | } | ||
570 | |||
571 | /** | ||
572 | * <!-- begin-user-doc --> | ||
573 | * <!-- end-user-doc --> | ||
574 | * @generated | ||
575 | */ | ||
576 | public EAttribute getVLSVariable_Name() | ||
577 | { | ||
578 | return (EAttribute)vlsVariableEClass.getEStructuralFeatures().get(0); | ||
579 | } | ||
580 | |||
581 | /** | ||
582 | * <!-- begin-user-doc --> | ||
583 | * <!-- end-user-doc --> | ||
584 | * @generated | ||
585 | */ | ||
586 | public EClass getVLSFunctionFof() | ||
587 | { | ||
588 | return vlsFunctionFofEClass; | ||
589 | } | ||
590 | |||
591 | /** | ||
592 | * <!-- begin-user-doc --> | ||
593 | * <!-- end-user-doc --> | ||
594 | * @generated | ||
595 | */ | ||
596 | public EAttribute getVLSFunctionFof_Functor() | ||
597 | { | ||
598 | return (EAttribute)vlsFunctionFofEClass.getEStructuralFeatures().get(0); | ||
599 | } | ||
600 | |||
601 | /** | ||
602 | * <!-- begin-user-doc --> | ||
603 | * <!-- end-user-doc --> | ||
604 | * @generated | ||
605 | */ | ||
606 | public EReference getVLSFunctionFof_Terms() | ||
607 | { | ||
608 | return (EReference)vlsFunctionFofEClass.getEStructuralFeatures().get(1); | ||
609 | } | ||
610 | |||
611 | /** | ||
612 | * <!-- begin-user-doc --> | ||
613 | * <!-- end-user-doc --> | ||
614 | * @generated | ||
615 | */ | ||
616 | public EClass getVLSDefinedTerm() | ||
617 | { | ||
618 | return vlsDefinedTermEClass; | ||
619 | } | ||
620 | |||
621 | /** | ||
622 | * <!-- begin-user-doc --> | ||
623 | * <!-- end-user-doc --> | ||
624 | * @generated | ||
625 | */ | ||
626 | public EAttribute getVLSDefinedTerm_Value() | ||
627 | { | ||
628 | return (EAttribute)vlsDefinedTermEClass.getEStructuralFeatures().get(0); | ||
629 | } | ||
630 | |||
631 | /** | ||
632 | * <!-- begin-user-doc --> | ||
633 | * <!-- end-user-doc --> | ||
634 | * @generated | ||
635 | */ | ||
636 | public EClass getVLSEquivalent() | ||
637 | { | ||
638 | return vlsEquivalentEClass; | ||
639 | } | ||
640 | |||
641 | /** | ||
642 | * <!-- begin-user-doc --> | ||
643 | * <!-- end-user-doc --> | ||
644 | * @generated | ||
645 | */ | ||
646 | public EReference getVLSEquivalent_Left() | ||
647 | { | ||
648 | return (EReference)vlsEquivalentEClass.getEStructuralFeatures().get(0); | ||
649 | } | ||
650 | |||
651 | /** | ||
652 | * <!-- begin-user-doc --> | ||
653 | * <!-- end-user-doc --> | ||
654 | * @generated | ||
655 | */ | ||
656 | public EReference getVLSEquivalent_Right() | ||
657 | { | ||
658 | return (EReference)vlsEquivalentEClass.getEStructuralFeatures().get(1); | ||
659 | } | ||
660 | |||
661 | /** | ||
662 | * <!-- begin-user-doc --> | ||
663 | * <!-- end-user-doc --> | ||
664 | * @generated | ||
665 | */ | ||
666 | public EClass getVLSImplies() | ||
667 | { | ||
668 | return vlsImpliesEClass; | ||
669 | } | ||
670 | |||
671 | /** | ||
672 | * <!-- begin-user-doc --> | ||
673 | * <!-- end-user-doc --> | ||
674 | * @generated | ||
675 | */ | ||
676 | public EReference getVLSImplies_Left() | ||
677 | { | ||
678 | return (EReference)vlsImpliesEClass.getEStructuralFeatures().get(0); | ||
679 | } | ||
680 | |||
681 | /** | ||
682 | * <!-- begin-user-doc --> | ||
683 | * <!-- end-user-doc --> | ||
684 | * @generated | ||
685 | */ | ||
686 | public EReference getVLSImplies_Right() | ||
687 | { | ||
688 | return (EReference)vlsImpliesEClass.getEStructuralFeatures().get(1); | ||
689 | } | ||
690 | |||
691 | /** | ||
692 | * <!-- begin-user-doc --> | ||
693 | * <!-- end-user-doc --> | ||
694 | * @generated | ||
695 | */ | ||
696 | public EClass getVLSRevImplies() | ||
697 | { | ||
698 | return vlsRevImpliesEClass; | ||
699 | } | ||
700 | |||
701 | /** | ||
702 | * <!-- begin-user-doc --> | ||
703 | * <!-- end-user-doc --> | ||
704 | * @generated | ||
705 | */ | ||
706 | public EReference getVLSRevImplies_Left() | ||
707 | { | ||
708 | return (EReference)vlsRevImpliesEClass.getEStructuralFeatures().get(0); | ||
709 | } | ||
710 | |||
711 | /** | ||
712 | * <!-- begin-user-doc --> | ||
713 | * <!-- end-user-doc --> | ||
714 | * @generated | ||
715 | */ | ||
716 | public EReference getVLSRevImplies_Right() | ||
717 | { | ||
718 | return (EReference)vlsRevImpliesEClass.getEStructuralFeatures().get(1); | ||
719 | } | ||
720 | |||
721 | /** | ||
722 | * <!-- begin-user-doc --> | ||
723 | * <!-- end-user-doc --> | ||
724 | * @generated | ||
725 | */ | ||
726 | public EClass getVLSXnor() | ||
727 | { | ||
728 | return vlsXnorEClass; | ||
729 | } | ||
730 | |||
731 | /** | ||
732 | * <!-- begin-user-doc --> | ||
733 | * <!-- end-user-doc --> | ||
734 | * @generated | ||
735 | */ | ||
736 | public EReference getVLSXnor_Left() | ||
737 | { | ||
738 | return (EReference)vlsXnorEClass.getEStructuralFeatures().get(0); | ||
739 | } | ||
740 | |||
741 | /** | ||
742 | * <!-- begin-user-doc --> | ||
743 | * <!-- end-user-doc --> | ||
744 | * @generated | ||
745 | */ | ||
746 | public EReference getVLSXnor_Right() | ||
747 | { | ||
748 | return (EReference)vlsXnorEClass.getEStructuralFeatures().get(1); | ||
749 | } | ||
750 | |||
751 | /** | ||
752 | * <!-- begin-user-doc --> | ||
753 | * <!-- end-user-doc --> | ||
754 | * @generated | ||
755 | */ | ||
756 | public EClass getVLSNor() | ||
757 | { | ||
758 | return vlsNorEClass; | ||
759 | } | ||
760 | |||
761 | /** | ||
762 | * <!-- begin-user-doc --> | ||
763 | * <!-- end-user-doc --> | ||
764 | * @generated | ||
765 | */ | ||
766 | public EReference getVLSNor_Left() | ||
767 | { | ||
768 | return (EReference)vlsNorEClass.getEStructuralFeatures().get(0); | ||
769 | } | ||
770 | |||
771 | /** | ||
772 | * <!-- begin-user-doc --> | ||
773 | * <!-- end-user-doc --> | ||
774 | * @generated | ||
775 | */ | ||
776 | public EReference getVLSNor_Right() | ||
777 | { | ||
778 | return (EReference)vlsNorEClass.getEStructuralFeatures().get(1); | ||
779 | } | ||
780 | |||
781 | /** | ||
782 | * <!-- begin-user-doc --> | ||
783 | * <!-- end-user-doc --> | ||
784 | * @generated | ||
785 | */ | ||
786 | public EClass getVLSNand() | ||
787 | { | ||
788 | return vlsNandEClass; | ||
789 | } | ||
790 | |||
791 | /** | ||
792 | * <!-- begin-user-doc --> | ||
793 | * <!-- end-user-doc --> | ||
794 | * @generated | ||
795 | */ | ||
796 | public EReference getVLSNand_Left() | ||
797 | { | ||
798 | return (EReference)vlsNandEClass.getEStructuralFeatures().get(0); | ||
799 | } | ||
800 | |||
801 | /** | ||
802 | * <!-- begin-user-doc --> | ||
803 | * <!-- end-user-doc --> | ||
804 | * @generated | ||
805 | */ | ||
806 | public EReference getVLSNand_Right() | ||
807 | { | ||
808 | return (EReference)vlsNandEClass.getEStructuralFeatures().get(1); | ||
809 | } | ||
810 | |||
811 | /** | ||
812 | * <!-- begin-user-doc --> | ||
813 | * <!-- end-user-doc --> | ||
814 | * @generated | ||
815 | */ | ||
816 | public EClass getVLSAnd() | ||
817 | { | ||
818 | return vlsAndEClass; | ||
819 | } | ||
820 | |||
821 | /** | ||
822 | * <!-- begin-user-doc --> | ||
823 | * <!-- end-user-doc --> | ||
824 | * @generated | ||
825 | */ | ||
826 | public EReference getVLSAnd_Left() | ||
827 | { | ||
828 | return (EReference)vlsAndEClass.getEStructuralFeatures().get(0); | ||
829 | } | ||
830 | |||
831 | /** | ||
832 | * <!-- begin-user-doc --> | ||
833 | * <!-- end-user-doc --> | ||
834 | * @generated | ||
835 | */ | ||
836 | public EReference getVLSAnd_Right() | ||
837 | { | ||
838 | return (EReference)vlsAndEClass.getEStructuralFeatures().get(1); | ||
839 | } | ||
840 | |||
841 | /** | ||
842 | * <!-- begin-user-doc --> | ||
843 | * <!-- end-user-doc --> | ||
844 | * @generated | ||
845 | */ | ||
846 | public EClass getVLSOr() | ||
847 | { | ||
848 | return vlsOrEClass; | ||
849 | } | ||
850 | |||
851 | /** | ||
852 | * <!-- begin-user-doc --> | ||
853 | * <!-- end-user-doc --> | ||
854 | * @generated | ||
855 | */ | ||
856 | public EReference getVLSOr_Left() | ||
857 | { | ||
858 | return (EReference)vlsOrEClass.getEStructuralFeatures().get(0); | ||
859 | } | ||
860 | |||
861 | /** | ||
862 | * <!-- begin-user-doc --> | ||
863 | * <!-- end-user-doc --> | ||
864 | * @generated | ||
865 | */ | ||
866 | public EReference getVLSOr_Right() | ||
867 | { | ||
868 | return (EReference)vlsOrEClass.getEStructuralFeatures().get(1); | ||
869 | } | ||
870 | |||
871 | /** | ||
872 | * <!-- begin-user-doc --> | ||
873 | * <!-- end-user-doc --> | ||
874 | * @generated | ||
875 | */ | ||
876 | public EClass getVLSUniversalQuantifier() | ||
877 | { | ||
878 | return vlsUniversalQuantifierEClass; | ||
879 | } | ||
880 | |||
881 | /** | ||
882 | * <!-- begin-user-doc --> | ||
883 | * <!-- end-user-doc --> | ||
884 | * @generated | ||
885 | */ | ||
886 | public EReference getVLSUniversalQuantifier_Variables() | ||
887 | { | ||
888 | return (EReference)vlsUniversalQuantifierEClass.getEStructuralFeatures().get(0); | ||
889 | } | ||
890 | |||
891 | /** | ||
892 | * <!-- begin-user-doc --> | ||
893 | * <!-- end-user-doc --> | ||
894 | * @generated | ||
895 | */ | ||
896 | public EReference getVLSUniversalQuantifier_Operand() | ||
897 | { | ||
898 | return (EReference)vlsUniversalQuantifierEClass.getEStructuralFeatures().get(1); | ||
899 | } | ||
900 | |||
901 | /** | ||
902 | * <!-- begin-user-doc --> | ||
903 | * <!-- end-user-doc --> | ||
904 | * @generated | ||
905 | */ | ||
906 | public EClass getVLSExistentialQuantifier() | ||
907 | { | ||
908 | return vlsExistentialQuantifierEClass; | ||
909 | } | ||
910 | |||
911 | /** | ||
912 | * <!-- begin-user-doc --> | ||
913 | * <!-- end-user-doc --> | ||
914 | * @generated | ||
915 | */ | ||
916 | public EReference getVLSExistentialQuantifier_Variables() | ||
917 | { | ||
918 | return (EReference)vlsExistentialQuantifierEClass.getEStructuralFeatures().get(0); | ||
919 | } | ||
920 | |||
921 | /** | ||
922 | * <!-- begin-user-doc --> | ||
923 | * <!-- end-user-doc --> | ||
924 | * @generated | ||
925 | */ | ||
926 | public EReference getVLSExistentialQuantifier_Operand() | ||
927 | { | ||
928 | return (EReference)vlsExistentialQuantifierEClass.getEStructuralFeatures().get(1); | ||
929 | } | ||
930 | |||
931 | /** | ||
932 | * <!-- begin-user-doc --> | ||
933 | * <!-- end-user-doc --> | ||
934 | * @generated | ||
935 | */ | ||
936 | public EClass getVLSUnaryNegation() | ||
937 | { | ||
938 | return vlsUnaryNegationEClass; | ||
939 | } | ||
940 | |||
941 | /** | ||
942 | * <!-- begin-user-doc --> | ||
943 | * <!-- end-user-doc --> | ||
944 | * @generated | ||
945 | */ | ||
946 | public EReference getVLSUnaryNegation_Operand() | ||
947 | { | ||
948 | return (EReference)vlsUnaryNegationEClass.getEStructuralFeatures().get(0); | ||
949 | } | ||
950 | |||
951 | /** | ||
952 | * <!-- begin-user-doc --> | ||
953 | * <!-- end-user-doc --> | ||
954 | * @generated | ||
955 | */ | ||
956 | public EClass getVLSInequality() | ||
957 | { | ||
958 | return vlsInequalityEClass; | ||
959 | } | ||
960 | |||
961 | /** | ||
962 | * <!-- begin-user-doc --> | ||
963 | * <!-- end-user-doc --> | ||
964 | * @generated | ||
965 | */ | ||
966 | public EReference getVLSInequality_Left() | ||
967 | { | ||
968 | return (EReference)vlsInequalityEClass.getEStructuralFeatures().get(0); | ||
969 | } | ||
970 | |||
971 | /** | ||
972 | * <!-- begin-user-doc --> | ||
973 | * <!-- end-user-doc --> | ||
974 | * @generated | ||
975 | */ | ||
976 | public EReference getVLSInequality_Right() | ||
977 | { | ||
978 | return (EReference)vlsInequalityEClass.getEStructuralFeatures().get(1); | ||
979 | } | ||
980 | |||
981 | /** | ||
982 | * <!-- begin-user-doc --> | ||
983 | * <!-- end-user-doc --> | ||
984 | * @generated | ||
985 | */ | ||
986 | public EClass getVLSEquality() | ||
987 | { | ||
988 | return vlsEqualityEClass; | ||
989 | } | ||
990 | |||
991 | /** | ||
992 | * <!-- begin-user-doc --> | ||
993 | * <!-- end-user-doc --> | ||
994 | * @generated | ||
995 | */ | ||
996 | public EReference getVLSEquality_Left() | ||
997 | { | ||
998 | return (EReference)vlsEqualityEClass.getEStructuralFeatures().get(0); | ||
999 | } | ||
1000 | |||
1001 | /** | ||
1002 | * <!-- begin-user-doc --> | ||
1003 | * <!-- end-user-doc --> | ||
1004 | * @generated | ||
1005 | */ | ||
1006 | public EReference getVLSEquality_Right() | ||
1007 | { | ||
1008 | return (EReference)vlsEqualityEClass.getEStructuralFeatures().get(1); | ||
1009 | } | ||
1010 | |||
1011 | /** | ||
1012 | * <!-- begin-user-doc --> | ||
1013 | * <!-- end-user-doc --> | ||
1014 | * @generated | ||
1015 | */ | ||
1016 | public EClass getVLSAssignment() | ||
1017 | { | ||
1018 | return vlsAssignmentEClass; | ||
1019 | } | ||
1020 | |||
1021 | /** | ||
1022 | * <!-- begin-user-doc --> | ||
1023 | * <!-- end-user-doc --> | ||
1024 | * @generated | ||
1025 | */ | ||
1026 | public EReference getVLSAssignment_Left() | ||
1027 | { | ||
1028 | return (EReference)vlsAssignmentEClass.getEStructuralFeatures().get(0); | ||
1029 | } | ||
1030 | |||
1031 | /** | ||
1032 | * <!-- begin-user-doc --> | ||
1033 | * <!-- end-user-doc --> | ||
1034 | * @generated | ||
1035 | */ | ||
1036 | public EReference getVLSAssignment_Right() | ||
1037 | { | ||
1038 | return (EReference)vlsAssignmentEClass.getEStructuralFeatures().get(1); | ||
1039 | } | ||
1040 | |||
1041 | /** | ||
1042 | * <!-- begin-user-doc --> | ||
1043 | * <!-- end-user-doc --> | ||
1044 | * @generated | ||
1045 | */ | ||
1046 | public EClass getVLSConstant() | ||
1047 | { | ||
1048 | return vlsConstantEClass; | ||
1049 | } | ||
1050 | |||
1051 | /** | ||
1052 | * <!-- begin-user-doc --> | ||
1053 | * <!-- end-user-doc --> | ||
1054 | * @generated | ||
1055 | */ | ||
1056 | public EAttribute getVLSConstant_Name() | ||
1057 | { | ||
1058 | return (EAttribute)vlsConstantEClass.getEStructuralFeatures().get(0); | ||
1059 | } | ||
1060 | |||
1061 | /** | ||
1062 | * <!-- begin-user-doc --> | ||
1063 | * <!-- end-user-doc --> | ||
1064 | * @generated | ||
1065 | */ | ||
1066 | public EClass getVLSTrue() | ||
1067 | { | ||
1068 | return vlsTrueEClass; | ||
1069 | } | ||
1070 | |||
1071 | /** | ||
1072 | * <!-- begin-user-doc --> | ||
1073 | * <!-- end-user-doc --> | ||
1074 | * @generated | ||
1075 | */ | ||
1076 | public EClass getVLSFalse() | ||
1077 | { | ||
1078 | return vlsFalseEClass; | ||
1079 | } | ||
1080 | |||
1081 | /** | ||
1082 | * <!-- begin-user-doc --> | ||
1083 | * <!-- end-user-doc --> | ||
1084 | * @generated | ||
1085 | */ | ||
1086 | public EClass getVLSFunction() | ||
1087 | { | ||
1088 | return vlsFunctionEClass; | ||
1089 | } | ||
1090 | |||
1091 | /** | ||
1092 | * <!-- begin-user-doc --> | ||
1093 | * <!-- end-user-doc --> | ||
1094 | * @generated | ||
1095 | */ | ||
1096 | public EAttribute getVLSFunction_Constant() | ||
1097 | { | ||
1098 | return (EAttribute)vlsFunctionEClass.getEStructuralFeatures().get(0); | ||
1099 | } | ||
1100 | |||
1101 | /** | ||
1102 | * <!-- begin-user-doc --> | ||
1103 | * <!-- end-user-doc --> | ||
1104 | * @generated | ||
1105 | */ | ||
1106 | public EReference getVLSFunction_Terms() | ||
1107 | { | ||
1108 | return (EReference)vlsFunctionEClass.getEStructuralFeatures().get(1); | ||
1109 | } | ||
1110 | |||
1111 | /** | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @generated | ||
1115 | */ | ||
1116 | public EClass getVLSLess() | ||
1117 | { | ||
1118 | return vlsLessEClass; | ||
1119 | } | ||
1120 | |||
1121 | /** | ||
1122 | * <!-- begin-user-doc --> | ||
1123 | * <!-- end-user-doc --> | ||
1124 | * @generated | ||
1125 | */ | ||
1126 | public EAttribute getVLSLess_Name() | ||
1127 | { | ||
1128 | return (EAttribute)vlsLessEClass.getEStructuralFeatures().get(0); | ||
1129 | } | ||
1130 | |||
1131 | /** | ||
1132 | * <!-- begin-user-doc --> | ||
1133 | * <!-- end-user-doc --> | ||
1134 | * @generated | ||
1135 | */ | ||
1136 | public EReference getVLSLess_Terms() | ||
1137 | { | ||
1138 | return (EReference)vlsLessEClass.getEStructuralFeatures().get(1); | ||
1139 | } | ||
1140 | |||
1141 | /** | ||
1142 | * <!-- begin-user-doc --> | ||
1143 | * <!-- end-user-doc --> | ||
1144 | * @generated | ||
1145 | */ | ||
1146 | public EClass getVLSInt() | ||
1147 | { | ||
1148 | return vlsIntEClass; | ||
1149 | } | ||
1150 | |||
1151 | /** | ||
1152 | * <!-- begin-user-doc --> | ||
1153 | * <!-- end-user-doc --> | ||
1154 | * @generated | ||
1155 | */ | ||
1156 | public EClass getVLSReal() | ||
1157 | { | ||
1158 | return vlsRealEClass; | ||
1159 | } | ||
1160 | |||
1161 | /** | ||
1162 | * <!-- begin-user-doc --> | ||
1163 | * <!-- end-user-doc --> | ||
1164 | * @generated | ||
1165 | */ | ||
1166 | public EClass getVLSRational() | ||
1167 | { | ||
1168 | return vlsRationalEClass; | ||
1169 | } | ||
1170 | |||
1171 | /** | ||
1172 | * <!-- begin-user-doc --> | ||
1173 | * <!-- end-user-doc --> | ||
1174 | * @generated | ||
1175 | */ | ||
1176 | public EClass getVLSDoubleQuote() | ||
1177 | { | ||
1178 | return vlsDoubleQuoteEClass; | ||
1179 | } | ||
1180 | |||
1181 | /** | ||
1182 | * <!-- begin-user-doc --> | ||
1183 | * <!-- end-user-doc --> | ||
1184 | * @generated | ||
1185 | */ | ||
1186 | public VampireLanguageFactory getVampireLanguageFactory() | ||
1187 | { | ||
1188 | return (VampireLanguageFactory)getEFactoryInstance(); | ||
1189 | } | ||
1190 | |||
1191 | /** | ||
1192 | * <!-- begin-user-doc --> | ||
1193 | * <!-- end-user-doc --> | ||
1194 | * @generated | ||
1195 | */ | ||
1196 | private boolean isCreated = false; | ||
1197 | |||
1198 | /** | ||
1199 | * Creates the meta-model objects for the package. This method is | ||
1200 | * guarded to have no affect on any invocation but its first. | ||
1201 | * <!-- begin-user-doc --> | ||
1202 | * <!-- end-user-doc --> | ||
1203 | * @generated | ||
1204 | */ | ||
1205 | public void createPackageContents() | ||
1206 | { | ||
1207 | if (isCreated) return; | ||
1208 | isCreated = true; | ||
1209 | |||
1210 | // Create classes and their features | ||
1211 | vampireModelEClass = createEClass(VAMPIRE_MODEL); | ||
1212 | createEReference(vampireModelEClass, VAMPIRE_MODEL__INCLUDES); | ||
1213 | createEReference(vampireModelEClass, VAMPIRE_MODEL__COMMENTS); | ||
1214 | createEReference(vampireModelEClass, VAMPIRE_MODEL__FORMULAS); | ||
1215 | |||
1216 | vlsIncludeEClass = createEClass(VLS_INCLUDE); | ||
1217 | createEAttribute(vlsIncludeEClass, VLS_INCLUDE__FILE_NAME); | ||
1218 | createEReference(vlsIncludeEClass, VLS_INCLUDE__NAMES); | ||
1219 | |||
1220 | vlsNameEClass = createEClass(VLS_NAME); | ||
1221 | createEAttribute(vlsNameEClass, VLS_NAME__NAME); | ||
1222 | |||
1223 | vlsCommentEClass = createEClass(VLS_COMMENT); | ||
1224 | createEAttribute(vlsCommentEClass, VLS_COMMENT__COMMENT); | ||
1225 | |||
1226 | vlsFofFormulaEClass = createEClass(VLS_FOF_FORMULA); | ||
1227 | createEAttribute(vlsFofFormulaEClass, VLS_FOF_FORMULA__NAME); | ||
1228 | createEAttribute(vlsFofFormulaEClass, VLS_FOF_FORMULA__FOF_ROLE); | ||
1229 | createEReference(vlsFofFormulaEClass, VLS_FOF_FORMULA__FOF_FORMULA); | ||
1230 | createEReference(vlsFofFormulaEClass, VLS_FOF_FORMULA__ANNOTATIONS); | ||
1231 | |||
1232 | vlsAnnotationEClass = createEClass(VLS_ANNOTATION); | ||
1233 | createEAttribute(vlsAnnotationEClass, VLS_ANNOTATION__NAME); | ||
1234 | createEReference(vlsAnnotationEClass, VLS_ANNOTATION__FOLLOWUP); | ||
1235 | createEReference(vlsAnnotationEClass, VLS_ANNOTATION__TERMS); | ||
1236 | |||
1237 | vlsTermEClass = createEClass(VLS_TERM); | ||
1238 | |||
1239 | vlsVariableEClass = createEClass(VLS_VARIABLE); | ||
1240 | createEAttribute(vlsVariableEClass, VLS_VARIABLE__NAME); | ||
1241 | |||
1242 | vlsFunctionFofEClass = createEClass(VLS_FUNCTION_FOF); | ||
1243 | createEAttribute(vlsFunctionFofEClass, VLS_FUNCTION_FOF__FUNCTOR); | ||
1244 | createEReference(vlsFunctionFofEClass, VLS_FUNCTION_FOF__TERMS); | ||
1245 | |||
1246 | vlsDefinedTermEClass = createEClass(VLS_DEFINED_TERM); | ||
1247 | createEAttribute(vlsDefinedTermEClass, VLS_DEFINED_TERM__VALUE); | ||
1248 | |||
1249 | vlsEquivalentEClass = createEClass(VLS_EQUIVALENT); | ||
1250 | createEReference(vlsEquivalentEClass, VLS_EQUIVALENT__LEFT); | ||
1251 | createEReference(vlsEquivalentEClass, VLS_EQUIVALENT__RIGHT); | ||
1252 | |||
1253 | vlsImpliesEClass = createEClass(VLS_IMPLIES); | ||
1254 | createEReference(vlsImpliesEClass, VLS_IMPLIES__LEFT); | ||
1255 | createEReference(vlsImpliesEClass, VLS_IMPLIES__RIGHT); | ||
1256 | |||
1257 | vlsRevImpliesEClass = createEClass(VLS_REV_IMPLIES); | ||
1258 | createEReference(vlsRevImpliesEClass, VLS_REV_IMPLIES__LEFT); | ||
1259 | createEReference(vlsRevImpliesEClass, VLS_REV_IMPLIES__RIGHT); | ||
1260 | |||
1261 | vlsXnorEClass = createEClass(VLS_XNOR); | ||
1262 | createEReference(vlsXnorEClass, VLS_XNOR__LEFT); | ||
1263 | createEReference(vlsXnorEClass, VLS_XNOR__RIGHT); | ||
1264 | |||
1265 | vlsNorEClass = createEClass(VLS_NOR); | ||
1266 | createEReference(vlsNorEClass, VLS_NOR__LEFT); | ||
1267 | createEReference(vlsNorEClass, VLS_NOR__RIGHT); | ||
1268 | |||
1269 | vlsNandEClass = createEClass(VLS_NAND); | ||
1270 | createEReference(vlsNandEClass, VLS_NAND__LEFT); | ||
1271 | createEReference(vlsNandEClass, VLS_NAND__RIGHT); | ||
1272 | |||
1273 | vlsAndEClass = createEClass(VLS_AND); | ||
1274 | createEReference(vlsAndEClass, VLS_AND__LEFT); | ||
1275 | createEReference(vlsAndEClass, VLS_AND__RIGHT); | ||
1276 | |||
1277 | vlsOrEClass = createEClass(VLS_OR); | ||
1278 | createEReference(vlsOrEClass, VLS_OR__LEFT); | ||
1279 | createEReference(vlsOrEClass, VLS_OR__RIGHT); | ||
1280 | |||
1281 | vlsUniversalQuantifierEClass = createEClass(VLS_UNIVERSAL_QUANTIFIER); | ||
1282 | createEReference(vlsUniversalQuantifierEClass, VLS_UNIVERSAL_QUANTIFIER__VARIABLES); | ||
1283 | createEReference(vlsUniversalQuantifierEClass, VLS_UNIVERSAL_QUANTIFIER__OPERAND); | ||
1284 | |||
1285 | vlsExistentialQuantifierEClass = createEClass(VLS_EXISTENTIAL_QUANTIFIER); | ||
1286 | createEReference(vlsExistentialQuantifierEClass, VLS_EXISTENTIAL_QUANTIFIER__VARIABLES); | ||
1287 | createEReference(vlsExistentialQuantifierEClass, VLS_EXISTENTIAL_QUANTIFIER__OPERAND); | ||
1288 | |||
1289 | vlsUnaryNegationEClass = createEClass(VLS_UNARY_NEGATION); | ||
1290 | createEReference(vlsUnaryNegationEClass, VLS_UNARY_NEGATION__OPERAND); | ||
1291 | |||
1292 | vlsInequalityEClass = createEClass(VLS_INEQUALITY); | ||
1293 | createEReference(vlsInequalityEClass, VLS_INEQUALITY__LEFT); | ||
1294 | createEReference(vlsInequalityEClass, VLS_INEQUALITY__RIGHT); | ||
1295 | |||
1296 | vlsEqualityEClass = createEClass(VLS_EQUALITY); | ||
1297 | createEReference(vlsEqualityEClass, VLS_EQUALITY__LEFT); | ||
1298 | createEReference(vlsEqualityEClass, VLS_EQUALITY__RIGHT); | ||
1299 | |||
1300 | vlsAssignmentEClass = createEClass(VLS_ASSIGNMENT); | ||
1301 | createEReference(vlsAssignmentEClass, VLS_ASSIGNMENT__LEFT); | ||
1302 | createEReference(vlsAssignmentEClass, VLS_ASSIGNMENT__RIGHT); | ||
1303 | |||
1304 | vlsConstantEClass = createEClass(VLS_CONSTANT); | ||
1305 | createEAttribute(vlsConstantEClass, VLS_CONSTANT__NAME); | ||
1306 | |||
1307 | vlsTrueEClass = createEClass(VLS_TRUE); | ||
1308 | |||
1309 | vlsFalseEClass = createEClass(VLS_FALSE); | ||
1310 | |||
1311 | vlsFunctionEClass = createEClass(VLS_FUNCTION); | ||
1312 | createEAttribute(vlsFunctionEClass, VLS_FUNCTION__CONSTANT); | ||
1313 | createEReference(vlsFunctionEClass, VLS_FUNCTION__TERMS); | ||
1314 | |||
1315 | vlsLessEClass = createEClass(VLS_LESS); | ||
1316 | createEAttribute(vlsLessEClass, VLS_LESS__NAME); | ||
1317 | createEReference(vlsLessEClass, VLS_LESS__TERMS); | ||
1318 | |||
1319 | vlsIntEClass = createEClass(VLS_INT); | ||
1320 | |||
1321 | vlsRealEClass = createEClass(VLS_REAL); | ||
1322 | |||
1323 | vlsRationalEClass = createEClass(VLS_RATIONAL); | ||
1324 | |||
1325 | vlsDoubleQuoteEClass = createEClass(VLS_DOUBLE_QUOTE); | ||
1326 | } | ||
1327 | |||
1328 | /** | ||
1329 | * <!-- begin-user-doc --> | ||
1330 | * <!-- end-user-doc --> | ||
1331 | * @generated | ||
1332 | */ | ||
1333 | private boolean isInitialized = false; | ||
1334 | |||
1335 | /** | ||
1336 | * Complete the initialization of the package and its meta-model. This | ||
1337 | * method is guarded to have no affect on any invocation but its first. | ||
1338 | * <!-- begin-user-doc --> | ||
1339 | * <!-- end-user-doc --> | ||
1340 | * @generated | ||
1341 | */ | ||
1342 | public void initializePackageContents() | ||
1343 | { | ||
1344 | if (isInitialized) return; | ||
1345 | isInitialized = true; | ||
1346 | |||
1347 | // Initialize package | ||
1348 | setName(eNAME); | ||
1349 | setNsPrefix(eNS_PREFIX); | ||
1350 | setNsURI(eNS_URI); | ||
1351 | |||
1352 | // Create type parameters | ||
1353 | |||
1354 | // Set bounds for type parameters | ||
1355 | |||
1356 | // Add supertypes to classes | ||
1357 | vlsVariableEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1358 | vlsFunctionFofEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1359 | vlsDefinedTermEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1360 | vlsEquivalentEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1361 | vlsImpliesEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1362 | vlsRevImpliesEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1363 | vlsXnorEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1364 | vlsNorEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1365 | vlsNandEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1366 | vlsAndEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1367 | vlsOrEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1368 | vlsUniversalQuantifierEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1369 | vlsExistentialQuantifierEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1370 | vlsUnaryNegationEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1371 | vlsInequalityEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1372 | vlsEqualityEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1373 | vlsAssignmentEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1374 | vlsConstantEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1375 | vlsTrueEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1376 | vlsFalseEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1377 | vlsFunctionEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1378 | vlsLessEClass.getESuperTypes().add(this.getVLSTerm()); | ||
1379 | vlsIntEClass.getESuperTypes().add(this.getVLSDefinedTerm()); | ||
1380 | vlsRealEClass.getESuperTypes().add(this.getVLSDefinedTerm()); | ||
1381 | vlsRationalEClass.getESuperTypes().add(this.getVLSDefinedTerm()); | ||
1382 | vlsDoubleQuoteEClass.getESuperTypes().add(this.getVLSDefinedTerm()); | ||
1383 | |||
1384 | // Initialize classes and features; add operations and parameters | ||
1385 | initEClass(vampireModelEClass, VampireModel.class, "VampireModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1386 | initEReference(getVampireModel_Includes(), this.getVLSInclude(), null, "includes", null, 0, -1, VampireModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1387 | initEReference(getVampireModel_Comments(), this.getVLSComment(), null, "comments", null, 0, -1, VampireModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1388 | initEReference(getVampireModel_Formulas(), this.getVLSFofFormula(), null, "formulas", null, 0, -1, VampireModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1389 | |||
1390 | initEClass(vlsIncludeEClass, VLSInclude.class, "VLSInclude", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1391 | initEAttribute(getVLSInclude_FileName(), ecorePackage.getEString(), "fileName", null, 0, 1, VLSInclude.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1392 | initEReference(getVLSInclude_Names(), this.getVLSName(), null, "names", null, 0, -1, VLSInclude.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1393 | |||
1394 | initEClass(vlsNameEClass, VLSName.class, "VLSName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1395 | initEAttribute(getVLSName_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1396 | |||
1397 | initEClass(vlsCommentEClass, VLSComment.class, "VLSComment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1398 | initEAttribute(getVLSComment_Comment(), ecorePackage.getEString(), "comment", null, 0, 1, VLSComment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1399 | |||
1400 | initEClass(vlsFofFormulaEClass, VLSFofFormula.class, "VLSFofFormula", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1401 | initEAttribute(getVLSFofFormula_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSFofFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1402 | initEAttribute(getVLSFofFormula_FofRole(), ecorePackage.getEString(), "fofRole", null, 0, 1, VLSFofFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1403 | initEReference(getVLSFofFormula_FofFormula(), this.getVLSTerm(), null, "fofFormula", null, 0, 1, VLSFofFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1404 | initEReference(getVLSFofFormula_Annotations(), this.getVLSAnnotation(), null, "annotations", null, 0, 1, VLSFofFormula.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1405 | |||
1406 | initEClass(vlsAnnotationEClass, VLSAnnotation.class, "VLSAnnotation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1407 | initEAttribute(getVLSAnnotation_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1408 | initEReference(getVLSAnnotation_Followup(), this.getVLSAnnotation(), null, "followup", null, 0, 1, VLSAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1409 | initEReference(getVLSAnnotation_Terms(), this.getVLSAnnotation(), null, "terms", null, 0, -1, VLSAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1410 | |||
1411 | initEClass(vlsTermEClass, VLSTerm.class, "VLSTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1412 | |||
1413 | initEClass(vlsVariableEClass, VLSVariable.class, "VLSVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1414 | initEAttribute(getVLSVariable_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1415 | |||
1416 | initEClass(vlsFunctionFofEClass, VLSFunctionFof.class, "VLSFunctionFof", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1417 | initEAttribute(getVLSFunctionFof_Functor(), ecorePackage.getEString(), "functor", null, 0, 1, VLSFunctionFof.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1418 | initEReference(getVLSFunctionFof_Terms(), this.getVLSTerm(), null, "terms", null, 0, -1, VLSFunctionFof.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1419 | |||
1420 | initEClass(vlsDefinedTermEClass, VLSDefinedTerm.class, "VLSDefinedTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1421 | initEAttribute(getVLSDefinedTerm_Value(), ecorePackage.getEString(), "value", null, 0, 1, VLSDefinedTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1422 | |||
1423 | initEClass(vlsEquivalentEClass, VLSEquivalent.class, "VLSEquivalent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1424 | initEReference(getVLSEquivalent_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSEquivalent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1425 | initEReference(getVLSEquivalent_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSEquivalent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1426 | |||
1427 | initEClass(vlsImpliesEClass, VLSImplies.class, "VLSImplies", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1428 | initEReference(getVLSImplies_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSImplies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1429 | initEReference(getVLSImplies_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSImplies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1430 | |||
1431 | initEClass(vlsRevImpliesEClass, VLSRevImplies.class, "VLSRevImplies", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1432 | initEReference(getVLSRevImplies_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSRevImplies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1433 | initEReference(getVLSRevImplies_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSRevImplies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1434 | |||
1435 | initEClass(vlsXnorEClass, VLSXnor.class, "VLSXnor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1436 | initEReference(getVLSXnor_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSXnor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1437 | initEReference(getVLSXnor_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSXnor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1438 | |||
1439 | initEClass(vlsNorEClass, VLSNor.class, "VLSNor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1440 | initEReference(getVLSNor_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSNor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1441 | initEReference(getVLSNor_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSNor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1442 | |||
1443 | initEClass(vlsNandEClass, VLSNand.class, "VLSNand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1444 | initEReference(getVLSNand_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSNand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1445 | initEReference(getVLSNand_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSNand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1446 | |||
1447 | initEClass(vlsAndEClass, VLSAnd.class, "VLSAnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1448 | initEReference(getVLSAnd_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1449 | initEReference(getVLSAnd_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1450 | |||
1451 | initEClass(vlsOrEClass, VLSOr.class, "VLSOr", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1452 | initEReference(getVLSOr_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1453 | initEReference(getVLSOr_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1454 | |||
1455 | initEClass(vlsUniversalQuantifierEClass, VLSUniversalQuantifier.class, "VLSUniversalQuantifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1456 | initEReference(getVLSUniversalQuantifier_Variables(), this.getVLSVariable(), null, "variables", null, 0, -1, VLSUniversalQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1457 | initEReference(getVLSUniversalQuantifier_Operand(), this.getVLSTerm(), null, "operand", null, 0, 1, VLSUniversalQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1458 | |||
1459 | initEClass(vlsExistentialQuantifierEClass, VLSExistentialQuantifier.class, "VLSExistentialQuantifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1460 | initEReference(getVLSExistentialQuantifier_Variables(), this.getVLSVariable(), null, "variables", null, 0, -1, VLSExistentialQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1461 | initEReference(getVLSExistentialQuantifier_Operand(), this.getVLSTerm(), null, "operand", null, 0, 1, VLSExistentialQuantifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1462 | |||
1463 | initEClass(vlsUnaryNegationEClass, VLSUnaryNegation.class, "VLSUnaryNegation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1464 | initEReference(getVLSUnaryNegation_Operand(), this.getVLSTerm(), null, "operand", null, 0, 1, VLSUnaryNegation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1465 | |||
1466 | initEClass(vlsInequalityEClass, VLSInequality.class, "VLSInequality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1467 | initEReference(getVLSInequality_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSInequality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1468 | initEReference(getVLSInequality_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSInequality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1469 | |||
1470 | initEClass(vlsEqualityEClass, VLSEquality.class, "VLSEquality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1471 | initEReference(getVLSEquality_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSEquality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1472 | initEReference(getVLSEquality_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSEquality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1473 | |||
1474 | initEClass(vlsAssignmentEClass, VLSAssignment.class, "VLSAssignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1475 | initEReference(getVLSAssignment_Left(), this.getVLSTerm(), null, "left", null, 0, 1, VLSAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1476 | initEReference(getVLSAssignment_Right(), this.getVLSTerm(), null, "right", null, 0, 1, VLSAssignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1477 | |||
1478 | initEClass(vlsConstantEClass, VLSConstant.class, "VLSConstant", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1479 | initEAttribute(getVLSConstant_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSConstant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1480 | |||
1481 | initEClass(vlsTrueEClass, VLSTrue.class, "VLSTrue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1482 | |||
1483 | initEClass(vlsFalseEClass, VLSFalse.class, "VLSFalse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1484 | |||
1485 | initEClass(vlsFunctionEClass, VLSFunction.class, "VLSFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1486 | initEAttribute(getVLSFunction_Constant(), ecorePackage.getEString(), "constant", null, 0, 1, VLSFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1487 | initEReference(getVLSFunction_Terms(), this.getVLSTerm(), null, "terms", null, 0, -1, VLSFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1488 | |||
1489 | initEClass(vlsLessEClass, VLSLess.class, "VLSLess", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1490 | initEAttribute(getVLSLess_Name(), ecorePackage.getEString(), "name", null, 0, 1, VLSLess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1491 | initEReference(getVLSLess_Terms(), this.getVLSTerm(), null, "terms", null, 0, -1, VLSLess.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
1492 | |||
1493 | initEClass(vlsIntEClass, VLSInt.class, "VLSInt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1494 | |||
1495 | initEClass(vlsRealEClass, VLSReal.class, "VLSReal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1496 | |||
1497 | initEClass(vlsRationalEClass, VLSRational.class, "VLSRational", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1498 | |||
1499 | initEClass(vlsDoubleQuoteEClass, VLSDoubleQuote.class, "VLSDoubleQuote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
1500 | |||
1501 | // Create resource | ||
1502 | createResource(eNS_URI); | ||
1503 | } | ||
1504 | |||
1505 | } //VampireLanguagePackageImpl | ||
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireModelImpl.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireModelImpl.java new file mode 100644 index 00000000..ea3dabc7 --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/vampireLanguage/impl/VampireModelImpl.java | |||
@@ -0,0 +1,246 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner.vampireLanguage.impl; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSComment; | ||
7 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSFofFormula; | ||
8 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VLSInclude; | ||
9 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireLanguagePackage; | ||
10 | import ca.mcgill.ecse.dslreasoner.vampireLanguage.VampireModel; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.NotificationChain; | ||
15 | |||
16 | import org.eclipse.emf.common.util.EList; | ||
17 | |||
18 | import org.eclipse.emf.ecore.EClass; | ||
19 | import org.eclipse.emf.ecore.InternalEObject; | ||
20 | |||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Vampire Model</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VampireModelImpl#getIncludes <em>Includes</em>}</li> | ||
35 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VampireModelImpl#getComments <em>Comments</em>}</li> | ||
36 | * <li>{@link ca.mcgill.ecse.dslreasoner.vampireLanguage.impl.VampireModelImpl#getFormulas <em>Formulas</em>}</li> | ||
37 | * </ul> | ||
38 | * | ||
39 | * @generated | ||
40 | */ | ||
41 | public class VampireModelImpl extends MinimalEObjectImpl.Container implements VampireModel | ||
42 | { | ||
43 | /** | ||
44 | * The cached value of the '{@link #getIncludes() <em>Includes</em>}' containment reference list. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getIncludes() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected EList<VLSInclude> includes; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getComments() <em>Comments</em>}' containment reference list. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getComments() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected EList<VLSComment> comments; | ||
62 | |||
63 | /** | ||
64 | * The cached value of the '{@link #getFormulas() <em>Formulas</em>}' containment reference list. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getFormulas() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected EList<VLSFofFormula> formulas; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | protected VampireModelImpl() | ||
79 | { | ||
80 | super(); | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | protected EClass eStaticClass() | ||
90 | { | ||
91 | return VampireLanguagePackage.Literals.VAMPIRE_MODEL; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public EList<VLSInclude> getIncludes() | ||
100 | { | ||
101 | if (includes == null) | ||
102 | { | ||
103 | includes = new EObjectContainmentEList<VLSInclude>(VLSInclude.class, this, VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES); | ||
104 | } | ||
105 | return includes; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public EList<VLSComment> getComments() | ||
114 | { | ||
115 | if (comments == null) | ||
116 | { | ||
117 | comments = new EObjectContainmentEList<VLSComment>(VLSComment.class, this, VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS); | ||
118 | } | ||
119 | return comments; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | public EList<VLSFofFormula> getFormulas() | ||
128 | { | ||
129 | if (formulas == null) | ||
130 | { | ||
131 | formulas = new EObjectContainmentEList<VLSFofFormula>(VLSFofFormula.class, this, VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS); | ||
132 | } | ||
133 | return formulas; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @generated | ||
140 | */ | ||
141 | @Override | ||
142 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
143 | { | ||
144 | switch (featureID) | ||
145 | { | ||
146 | case VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES: | ||
147 | return ((InternalEList<?>)getIncludes()).basicRemove(otherEnd, msgs); | ||
148 | case VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS: | ||
149 | return ((InternalEList<?>)getComments()).basicRemove(otherEnd, msgs); | ||
150 | case VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS: | ||
151 | return ((InternalEList<?>)getFormulas()).basicRemove(otherEnd, msgs); | ||
152 | } | ||
153 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
163 | { | ||
164 | switch (featureID) | ||
165 | { | ||
166 | case VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES: | ||
167 | return getIncludes(); | ||
168 | case VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS: | ||
169 | return getComments(); | ||
170 | case VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS: | ||
171 | return getFormulas(); | ||
172 | } | ||
173 | return super.eGet(featureID, resolve, coreType); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @SuppressWarnings("unchecked") | ||
182 | @Override | ||
183 | public void eSet(int featureID, Object newValue) | ||
184 | { | ||
185 | switch (featureID) | ||
186 | { | ||
187 | case VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES: | ||
188 | getIncludes().clear(); | ||
189 | getIncludes().addAll((Collection<? extends VLSInclude>)newValue); | ||
190 | return; | ||
191 | case VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS: | ||
192 | getComments().clear(); | ||
193 | getComments().addAll((Collection<? extends VLSComment>)newValue); | ||
194 | return; | ||
195 | case VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS: | ||
196 | getFormulas().clear(); | ||
197 | getFormulas().addAll((Collection<? extends VLSFofFormula>)newValue); | ||
198 | return; | ||
199 | } | ||
200 | super.eSet(featureID, newValue); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void eUnset(int featureID) | ||
210 | { | ||
211 | switch (featureID) | ||
212 | { | ||
213 | case VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES: | ||
214 | getIncludes().clear(); | ||
215 | return; | ||
216 | case VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS: | ||
217 | getComments().clear(); | ||
218 | return; | ||
219 | case VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS: | ||
220 | getFormulas().clear(); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case VampireLanguagePackage.VAMPIRE_MODEL__INCLUDES: | ||
237 | return includes != null && !includes.isEmpty(); | ||
238 | case VampireLanguagePackage.VAMPIRE_MODEL__COMMENTS: | ||
239 | return comments != null && !comments.isEmpty(); | ||
240 | case VampireLanguagePackage.VAMPIRE_MODEL__FORMULAS: | ||
241 | return formulas != null && !formulas.isEmpty(); | ||
242 | } | ||
243 | return super.eIsSet(featureID); | ||
244 | } | ||
245 | |||
246 | } //VampireModelImpl | ||