aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java')
-rw-r--r--Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java240
1 files changed, 0 insertions, 240 deletions
diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
deleted file mode 100644
index 1321a1f1..00000000
--- a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSSumImpl.java
+++ /dev/null
@@ -1,240 +0,0 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl;
4
5import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSSum;
6import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm;
7import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSVariableDeclaration;
8import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
22import org.eclipse.emf.ecore.util.EObjectContainmentEList;
23import org.eclipse.emf.ecore.util.InternalEList;
24
25/**
26 * <!-- begin-user-doc -->
27 * An implementation of the model object '<em><b>ALS Sum</b></em>'.
28 * <!-- end-user-doc -->
29 * <p>
30 * The following features are implemented:
31 * </p>
32 * <ul>
33 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSumImpl#getVariables <em>Variables</em>}</li>
34 * <li>{@link hu.bme.mit.inf.dslreasoner.alloyLanguage.impl.ALSSumImpl#getExpression <em>Expression</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class ALSSumImpl extends ALSTermImpl implements ALSSum
40{
41 /**
42 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #getVariables()
46 * @generated
47 * @ordered
48 */
49 protected EList<ALSVariableDeclaration> variables;
50
51 /**
52 * The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getExpression()
56 * @generated
57 * @ordered
58 */
59 protected ALSTerm expression;
60
61 /**
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @generated
65 */
66 protected ALSSumImpl()
67 {
68 super();
69 }
70
71 /**
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @generated
75 */
76 @Override
77 protected EClass eStaticClass()
78 {
79 return AlloyLanguagePackage.Literals.ALS_SUM;
80 }
81
82 /**
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @generated
86 */
87 public EList<ALSVariableDeclaration> getVariables()
88 {
89 if (variables == null)
90 {
91 variables = new EObjectContainmentEList<ALSVariableDeclaration>(ALSVariableDeclaration.class, this, AlloyLanguagePackage.ALS_SUM__VARIABLES);
92 }
93 return variables;
94 }
95
96 /**
97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc -->
99 * @generated
100 */
101 public ALSTerm getExpression()
102 {
103 return expression;
104 }
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 public NotificationChain basicSetExpression(ALSTerm newExpression, NotificationChain msgs)
112 {
113 ALSTerm oldExpression = expression;
114 expression = newExpression;
115 if (eNotificationRequired())
116 {
117 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUM__EXPRESSION, oldExpression, newExpression);
118 if (msgs == null) msgs = notification; else msgs.add(notification);
119 }
120 return msgs;
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 public void setExpression(ALSTerm newExpression)
129 {
130 if (newExpression != expression)
131 {
132 NotificationChain msgs = null;
133 if (expression != null)
134 msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUM__EXPRESSION, null, msgs);
135 if (newExpression != null)
136 msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_SUM__EXPRESSION, null, msgs);
137 msgs = basicSetExpression(newExpression, msgs);
138 if (msgs != null) msgs.dispatch();
139 }
140 else if (eNotificationRequired())
141 eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_SUM__EXPRESSION, newExpression, newExpression));
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
151 {
152 switch (featureID)
153 {
154 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
155 return ((InternalEList<?>)getVariables()).basicRemove(otherEnd, msgs);
156 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
157 return basicSetExpression(null, msgs);
158 }
159 return super.eInverseRemove(otherEnd, featureID, msgs);
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public Object eGet(int featureID, boolean resolve, boolean coreType)
169 {
170 switch (featureID)
171 {
172 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
173 return getVariables();
174 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
175 return getExpression();
176 }
177 return super.eGet(featureID, resolve, coreType);
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 @SuppressWarnings("unchecked")
186 @Override
187 public void eSet(int featureID, Object newValue)
188 {
189 switch (featureID)
190 {
191 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
192 getVariables().clear();
193 getVariables().addAll((Collection<? extends ALSVariableDeclaration>)newValue);
194 return;
195 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
196 setExpression((ALSTerm)newValue);
197 return;
198 }
199 super.eSet(featureID, newValue);
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public void eUnset(int featureID)
209 {
210 switch (featureID)
211 {
212 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
213 getVariables().clear();
214 return;
215 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
216 setExpression((ALSTerm)null);
217 return;
218 }
219 super.eUnset(featureID);
220 }
221
222 /**
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public boolean eIsSet(int featureID)
229 {
230 switch (featureID)
231 {
232 case AlloyLanguagePackage.ALS_SUM__VARIABLES:
233 return variables != null && !variables.isEmpty();
234 case AlloyLanguagePackage.ALS_SUM__EXPRESSION:
235 return expression != null;
236 }
237 return super.eIsSet(featureID);
238 }
239
240} //ALSSumImpl