diff options
author | 2021-06-27 01:43:59 +0200 | |
---|---|---|
committer | 2021-06-27 02:01:19 +0200 | |
commit | b88c842ba625753ea185e6166cd967e694160798 (patch) | |
tree | 51931f892dff12d253f7697179e137bdfe705155 /org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java | |
parent | Opposite reference scope (diff) | |
download | refinery-b88c842ba625753ea185e6166cd967e694160798.tar.gz refinery-b88c842ba625753ea185e6166cd967e694160798.tar.zst refinery-b88c842ba625753ea185e6166cd967e694160798.zip |
Add enum support
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java index 9f6bc7ae..f7d045ca 100644 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ArgumentImpl.java | |||
@@ -14,7 +14,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |||
14 | import org.eclipse.viatra.solver.language.model.problem.Argument; | 14 | import org.eclipse.viatra.solver.language.model.problem.Argument; |
15 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | 15 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; |
16 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | 16 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; |
17 | import org.eclipse.viatra.solver.language.model.problem.Variable; | 17 | import org.eclipse.viatra.solver.language.model.problem.VariableOrNode; |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * <!-- begin-user-doc --> | 20 | * <!-- begin-user-doc --> |
@@ -24,7 +24,7 @@ import org.eclipse.viatra.solver.language.model.problem.Variable; | |||
24 | * The following features are implemented: | 24 | * The following features are implemented: |
25 | * </p> | 25 | * </p> |
26 | * <ul> | 26 | * <ul> |
27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getVariable <em>Variable</em>}</li> | 27 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getVariableOrNode <em>Variable Or Node</em>}</li> |
28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getSingletonVariable <em>Singleton Variable</em>}</li> | 28 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ArgumentImpl#getSingletonVariable <em>Singleton Variable</em>}</li> |
29 | * </ul> | 29 | * </ul> |
30 | * | 30 | * |
@@ -32,14 +32,14 @@ import org.eclipse.viatra.solver.language.model.problem.Variable; | |||
32 | */ | 32 | */ |
33 | public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument { | 33 | public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argument { |
34 | /** | 34 | /** |
35 | * The cached value of the '{@link #getVariable() <em>Variable</em>}' reference. | 35 | * The cached value of the '{@link #getVariableOrNode() <em>Variable Or Node</em>}' reference. |
36 | * <!-- begin-user-doc --> | 36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> | 37 | * <!-- end-user-doc --> |
38 | * @see #getVariable() | 38 | * @see #getVariableOrNode() |
39 | * @generated | 39 | * @generated |
40 | * @ordered | 40 | * @ordered |
41 | */ | 41 | */ |
42 | protected Variable variable; | 42 | protected VariableOrNode variableOrNode; |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * The cached value of the '{@link #getSingletonVariable() <em>Singleton Variable</em>}' containment reference. | 45 | * The cached value of the '{@link #getSingletonVariable() <em>Singleton Variable</em>}' containment reference. |
@@ -75,17 +75,17 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
75 | * <!-- end-user-doc --> | 75 | * <!-- end-user-doc --> |
76 | * @generated | 76 | * @generated |
77 | */ | 77 | */ |
78 | public Variable getVariable() { | 78 | public VariableOrNode getVariableOrNode() { |
79 | if (variable != null && variable.eIsProxy()) { | 79 | if (variableOrNode != null && variableOrNode.eIsProxy()) { |
80 | InternalEObject oldVariable = (InternalEObject) variable; | 80 | InternalEObject oldVariableOrNode = (InternalEObject) variableOrNode; |
81 | variable = (Variable) eResolveProxy(oldVariable); | 81 | variableOrNode = (VariableOrNode) eResolveProxy(oldVariableOrNode); |
82 | if (variable != oldVariable) { | 82 | if (variableOrNode != oldVariableOrNode) { |
83 | if (eNotificationRequired()) | 83 | if (eNotificationRequired()) |
84 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ARGUMENT__VARIABLE, | 84 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE, |
85 | oldVariable, variable)); | 85 | oldVariableOrNode, variableOrNode)); |
86 | } | 86 | } |
87 | } | 87 | } |
88 | return variable; | 88 | return variableOrNode; |
89 | } | 89 | } |
90 | 90 | ||
91 | /** | 91 | /** |
@@ -93,8 +93,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
93 | * <!-- end-user-doc --> | 93 | * <!-- end-user-doc --> |
94 | * @generated | 94 | * @generated |
95 | */ | 95 | */ |
96 | public Variable basicGetVariable() { | 96 | public VariableOrNode basicGetVariableOrNode() { |
97 | return variable; | 97 | return variableOrNode; |
98 | } | 98 | } |
99 | 99 | ||
100 | /** | 100 | /** |
@@ -102,12 +102,12 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
102 | * <!-- end-user-doc --> | 102 | * <!-- end-user-doc --> |
103 | * @generated | 103 | * @generated |
104 | */ | 104 | */ |
105 | public void setVariable(Variable newVariable) { | 105 | public void setVariableOrNode(VariableOrNode newVariableOrNode) { |
106 | Variable oldVariable = variable; | 106 | VariableOrNode oldVariableOrNode = variableOrNode; |
107 | variable = newVariable; | 107 | variableOrNode = newVariableOrNode; |
108 | if (eNotificationRequired()) | 108 | if (eNotificationRequired()) |
109 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__VARIABLE, oldVariable, | 109 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.ARGUMENT__VARIABLE_OR_NODE, |
110 | variable)); | 110 | oldVariableOrNode, variableOrNode)); |
111 | } | 111 | } |
112 | 112 | ||
113 | /** | 113 | /** |
@@ -182,10 +182,10 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
182 | @Override | 182 | @Override |
183 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 183 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
184 | switch (featureID) { | 184 | switch (featureID) { |
185 | case ProblemPackage.ARGUMENT__VARIABLE: | 185 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: |
186 | if (resolve) | 186 | if (resolve) |
187 | return getVariable(); | 187 | return getVariableOrNode(); |
188 | return basicGetVariable(); | 188 | return basicGetVariableOrNode(); |
189 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | 189 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: |
190 | return getSingletonVariable(); | 190 | return getSingletonVariable(); |
191 | } | 191 | } |
@@ -200,8 +200,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
200 | @Override | 200 | @Override |
201 | public void eSet(int featureID, Object newValue) { | 201 | public void eSet(int featureID, Object newValue) { |
202 | switch (featureID) { | 202 | switch (featureID) { |
203 | case ProblemPackage.ARGUMENT__VARIABLE: | 203 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: |
204 | setVariable((Variable) newValue); | 204 | setVariableOrNode((VariableOrNode) newValue); |
205 | return; | 205 | return; |
206 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | 206 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: |
207 | setSingletonVariable((ImplicitVariable) newValue); | 207 | setSingletonVariable((ImplicitVariable) newValue); |
@@ -218,8 +218,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
218 | @Override | 218 | @Override |
219 | public void eUnset(int featureID) { | 219 | public void eUnset(int featureID) { |
220 | switch (featureID) { | 220 | switch (featureID) { |
221 | case ProblemPackage.ARGUMENT__VARIABLE: | 221 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: |
222 | setVariable((Variable) null); | 222 | setVariableOrNode((VariableOrNode) null); |
223 | return; | 223 | return; |
224 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | 224 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: |
225 | setSingletonVariable((ImplicitVariable) null); | 225 | setSingletonVariable((ImplicitVariable) null); |
@@ -236,8 +236,8 @@ public class ArgumentImpl extends MinimalEObjectImpl.Container implements Argume | |||
236 | @Override | 236 | @Override |
237 | public boolean eIsSet(int featureID) { | 237 | public boolean eIsSet(int featureID) { |
238 | switch (featureID) { | 238 | switch (featureID) { |
239 | case ProblemPackage.ARGUMENT__VARIABLE: | 239 | case ProblemPackage.ARGUMENT__VARIABLE_OR_NODE: |
240 | return variable != null; | 240 | return variableOrNode != null; |
241 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: | 241 | case ProblemPackage.ARGUMENT__SINGLETON_VARIABLE: |
242 | return singletonVariable != null; | 242 | return singletonVariable != null; |
243 | } | 243 | } |