diff options
author | 2020-05-06 00:27:55 +0200 | |
---|---|---|
committer | 2020-05-06 00:27:55 +0200 | |
commit | 820151b6d27643ba0927ca84d1bccadbd695a55d (patch) | |
tree | 9d3a5786b7f90723a6af967875f861a89e5b897e /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java | |
parent | color update (diff) | |
download | VIATRA-Generator-820151b6d27643ba0927ca84d1bccadbd695a55d.tar.gz VIATRA-Generator-820151b6d27643ba0927ca84d1bccadbd695a55d.tar.zst VIATRA-Generator-820151b6d27643ba0927ca84d1bccadbd695a55d.zip |
PS language update
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java | 150 |
1 files changed, 150 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java index 947d74bb..d3c7366d 100644 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java +++ b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/PredicateImpl.java | |||
@@ -5,6 +5,7 @@ package org.eclipse.viatra.solver.language.solverLanguage.impl; | |||
5 | 5 | ||
6 | import java.util.Collection; | 6 | import java.util.Collection; |
7 | 7 | ||
8 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | 9 | import org.eclipse.emf.common.notify.NotificationChain; |
9 | 10 | ||
10 | import org.eclipse.emf.common.util.EList; | 11 | import org.eclipse.emf.common.util.EList; |
@@ -12,9 +13,12 @@ import org.eclipse.emf.common.util.EList; | |||
12 | import org.eclipse.emf.ecore.EClass; | 13 | import org.eclipse.emf.ecore.EClass; |
13 | import org.eclipse.emf.ecore.InternalEObject; | 14 | import org.eclipse.emf.ecore.InternalEObject; |
14 | 15 | ||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
15 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | 18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
16 | import org.eclipse.emf.ecore.util.InternalEList; | 19 | import org.eclipse.emf.ecore.util.InternalEList; |
17 | 20 | ||
21 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; | 22 | import org.eclipse.viatra.solver.language.solverLanguage.Parameter; |
19 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; | 23 | import org.eclipse.viatra.solver.language.solverLanguage.PatternBody; |
20 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; | 24 | import org.eclipse.viatra.solver.language.solverLanguage.Predicate; |
@@ -28,6 +32,8 @@ import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | |||
28 | * The following features are implemented: | 32 | * The following features are implemented: |
29 | * </p> | 33 | * </p> |
30 | * <ul> | 34 | * <ul> |
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#isIsError <em>Is Error</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getSymbol <em>Symbol</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getParameters <em>Parameters</em>}</li> | 37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getParameters <em>Parameters</em>}</li> |
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getBodies <em>Bodies</em>}</li> | 38 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.PredicateImpl#getBodies <em>Bodies</em>}</li> |
33 | * </ul> | 39 | * </ul> |
@@ -37,6 +43,36 @@ import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | |||
37 | public class PredicateImpl extends StatementImpl implements Predicate | 43 | public class PredicateImpl extends StatementImpl implements Predicate |
38 | { | 44 | { |
39 | /** | 45 | /** |
46 | * The default value of the '{@link #isIsError() <em>Is Error</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #isIsError() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected static final boolean IS_ERROR_EDEFAULT = false; | ||
54 | |||
55 | /** | ||
56 | * The cached value of the '{@link #isIsError() <em>Is Error</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #isIsError() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected boolean isError = IS_ERROR_EDEFAULT; | ||
64 | |||
65 | /** | ||
66 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @see #getSymbol() | ||
70 | * @generated | ||
71 | * @ordered | ||
72 | */ | ||
73 | protected ModelSymbol symbol; | ||
74 | |||
75 | /** | ||
40 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | 76 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. |
41 | * <!-- begin-user-doc --> | 77 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> | 78 | * <!-- end-user-doc --> |
@@ -83,6 +119,81 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
83 | * @generated | 119 | * @generated |
84 | */ | 120 | */ |
85 | @Override | 121 | @Override |
122 | public boolean isIsError() | ||
123 | { | ||
124 | return isError; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public void setIsError(boolean newIsError) | ||
134 | { | ||
135 | boolean oldIsError = isError; | ||
136 | isError = newIsError; | ||
137 | if (eNotificationRequired()) | ||
138 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE__IS_ERROR, oldIsError, isError)); | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public ModelSymbol getSymbol() | ||
148 | { | ||
149 | return symbol; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
158 | { | ||
159 | ModelSymbol oldSymbol = symbol; | ||
160 | symbol = newSymbol; | ||
161 | if (eNotificationRequired()) | ||
162 | { | ||
163 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE__SYMBOL, oldSymbol, newSymbol); | ||
164 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
165 | } | ||
166 | return msgs; | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void setSymbol(ModelSymbol newSymbol) | ||
176 | { | ||
177 | if (newSymbol != symbol) | ||
178 | { | ||
179 | NotificationChain msgs = null; | ||
180 | if (symbol != null) | ||
181 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE__SYMBOL, null, msgs); | ||
182 | if (newSymbol != null) | ||
183 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.PREDICATE__SYMBOL, null, msgs); | ||
184 | msgs = basicSetSymbol(newSymbol, msgs); | ||
185 | if (msgs != null) msgs.dispatch(); | ||
186 | } | ||
187 | else if (eNotificationRequired()) | ||
188 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.PREDICATE__SYMBOL, newSymbol, newSymbol)); | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
86 | public EList<Parameter> getParameters() | 197 | public EList<Parameter> getParameters() |
87 | { | 198 | { |
88 | if (parameters == null) | 199 | if (parameters == null) |
@@ -117,6 +228,8 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
117 | { | 228 | { |
118 | switch (featureID) | 229 | switch (featureID) |
119 | { | 230 | { |
231 | case SolverLanguagePackage.PREDICATE__SYMBOL: | ||
232 | return basicSetSymbol(null, msgs); | ||
120 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | 233 | case SolverLanguagePackage.PREDICATE__PARAMETERS: |
121 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | 234 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); |
122 | case SolverLanguagePackage.PREDICATE__BODIES: | 235 | case SolverLanguagePackage.PREDICATE__BODIES: |
@@ -135,6 +248,10 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
135 | { | 248 | { |
136 | switch (featureID) | 249 | switch (featureID) |
137 | { | 250 | { |
251 | case SolverLanguagePackage.PREDICATE__IS_ERROR: | ||
252 | return isIsError(); | ||
253 | case SolverLanguagePackage.PREDICATE__SYMBOL: | ||
254 | return getSymbol(); | ||
138 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | 255 | case SolverLanguagePackage.PREDICATE__PARAMETERS: |
139 | return getParameters(); | 256 | return getParameters(); |
140 | case SolverLanguagePackage.PREDICATE__BODIES: | 257 | case SolverLanguagePackage.PREDICATE__BODIES: |
@@ -154,6 +271,12 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
154 | { | 271 | { |
155 | switch (featureID) | 272 | switch (featureID) |
156 | { | 273 | { |
274 | case SolverLanguagePackage.PREDICATE__IS_ERROR: | ||
275 | setIsError((Boolean)newValue); | ||
276 | return; | ||
277 | case SolverLanguagePackage.PREDICATE__SYMBOL: | ||
278 | setSymbol((ModelSymbol)newValue); | ||
279 | return; | ||
157 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | 280 | case SolverLanguagePackage.PREDICATE__PARAMETERS: |
158 | getParameters().clear(); | 281 | getParameters().clear(); |
159 | getParameters().addAll((Collection<? extends Parameter>)newValue); | 282 | getParameters().addAll((Collection<? extends Parameter>)newValue); |
@@ -176,6 +299,12 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
176 | { | 299 | { |
177 | switch (featureID) | 300 | switch (featureID) |
178 | { | 301 | { |
302 | case SolverLanguagePackage.PREDICATE__IS_ERROR: | ||
303 | setIsError(IS_ERROR_EDEFAULT); | ||
304 | return; | ||
305 | case SolverLanguagePackage.PREDICATE__SYMBOL: | ||
306 | setSymbol((ModelSymbol)null); | ||
307 | return; | ||
179 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | 308 | case SolverLanguagePackage.PREDICATE__PARAMETERS: |
180 | getParameters().clear(); | 309 | getParameters().clear(); |
181 | return; | 310 | return; |
@@ -196,6 +325,10 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
196 | { | 325 | { |
197 | switch (featureID) | 326 | switch (featureID) |
198 | { | 327 | { |
328 | case SolverLanguagePackage.PREDICATE__IS_ERROR: | ||
329 | return isError != IS_ERROR_EDEFAULT; | ||
330 | case SolverLanguagePackage.PREDICATE__SYMBOL: | ||
331 | return symbol != null; | ||
199 | case SolverLanguagePackage.PREDICATE__PARAMETERS: | 332 | case SolverLanguagePackage.PREDICATE__PARAMETERS: |
200 | return parameters != null && !parameters.isEmpty(); | 333 | return parameters != null && !parameters.isEmpty(); |
201 | case SolverLanguagePackage.PREDICATE__BODIES: | 334 | case SolverLanguagePackage.PREDICATE__BODIES: |
@@ -204,4 +337,21 @@ public class PredicateImpl extends StatementImpl implements Predicate | |||
204 | return super.eIsSet(featureID); | 337 | return super.eIsSet(featureID); |
205 | } | 338 | } |
206 | 339 | ||
340 | /** | ||
341 | * <!-- begin-user-doc --> | ||
342 | * <!-- end-user-doc --> | ||
343 | * @generated | ||
344 | */ | ||
345 | @Override | ||
346 | public String toString() | ||
347 | { | ||
348 | if (eIsProxy()) return super.toString(); | ||
349 | |||
350 | StringBuilder result = new StringBuilder(super.toString()); | ||
351 | result.append(" (isError: "); | ||
352 | result.append(isError); | ||
353 | result.append(')'); | ||
354 | return result.toString(); | ||
355 | } | ||
356 | |||
207 | } //PredicateImpl | 357 | } //PredicateImpl |