diff options
author | Kristóf Marussy <marussy@mit.bme.hu> | 2020-06-23 15:17:00 +0200 |
---|---|---|
committer | Kristóf Marussy <marussy@mit.bme.hu> | 2020-06-23 15:17:00 +0200 |
commit | 42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f (patch) | |
tree | 21d49c3a1dadc54dda399a4b8cfe8dc028563f51 /Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java | |
parent | Measurements framework fixes (diff) | |
download | VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.tar.gz VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.tar.zst VIATRA-Generator-42c58bbeead1dae09c51f47abc8e10dfbb9c3f9f.zip |
New configuration language parser WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java | 222 |
1 files changed, 222 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java new file mode 100644 index 00000000..6842754e --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/AggregationOperatorImpl.java | |||
@@ -0,0 +1,222 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.InternalEObject; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
11 | |||
12 | import org.eclipse.viatra.solver.language.solverLanguage.AggregationOperator; | ||
13 | import org.eclipse.viatra.solver.language.solverLanguage.Datatype; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Aggregation Operator</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationOperatorImpl#getArgumentType <em>Argument Type</em>}</li> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.AggregationOperatorImpl#getResultType <em>Result Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class AggregationOperatorImpl extends SymbolImpl implements AggregationOperator { | ||
31 | /** | ||
32 | * The cached value of the '{@link #getArgumentType() <em>Argument Type</em>}' reference. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getArgumentType() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected Datatype argumentType; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getResultType() <em>Result Type</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getResultType() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected Datatype resultType; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected AggregationOperatorImpl() { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() { | ||
67 | return SolverLanguagePackage.Literals.AGGREGATION_OPERATOR; | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | public Datatype getArgumentType() { | ||
76 | if (argumentType != null && argumentType.eIsProxy()) { | ||
77 | InternalEObject oldArgumentType = (InternalEObject) argumentType; | ||
78 | argumentType = (Datatype) eResolveProxy(oldArgumentType); | ||
79 | if (argumentType != oldArgumentType) { | ||
80 | if (eNotificationRequired()) | ||
81 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
82 | SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE, oldArgumentType, argumentType)); | ||
83 | } | ||
84 | } | ||
85 | return argumentType; | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | public Datatype basicGetArgumentType() { | ||
94 | return argumentType; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public void setArgumentType(Datatype newArgumentType) { | ||
103 | Datatype oldArgumentType = argumentType; | ||
104 | argumentType = newArgumentType; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
107 | SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE, oldArgumentType, argumentType)); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public Datatype getResultType() { | ||
116 | if (resultType != null && resultType.eIsProxy()) { | ||
117 | InternalEObject oldResultType = (InternalEObject) resultType; | ||
118 | resultType = (Datatype) eResolveProxy(oldResultType); | ||
119 | if (resultType != oldResultType) { | ||
120 | if (eNotificationRequired()) | ||
121 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
122 | SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE, oldResultType, resultType)); | ||
123 | } | ||
124 | } | ||
125 | return resultType; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | public Datatype basicGetResultType() { | ||
134 | return resultType; | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | public void setResultType(Datatype newResultType) { | ||
143 | Datatype oldResultType = resultType; | ||
144 | resultType = newResultType; | ||
145 | if (eNotificationRequired()) | ||
146 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
147 | SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE, oldResultType, resultType)); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
157 | switch (featureID) { | ||
158 | case SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE: | ||
159 | if (resolve) | ||
160 | return getArgumentType(); | ||
161 | return basicGetArgumentType(); | ||
162 | case SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE: | ||
163 | if (resolve) | ||
164 | return getResultType(); | ||
165 | return basicGetResultType(); | ||
166 | } | ||
167 | return super.eGet(featureID, resolve, coreType); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public void eSet(int featureID, Object newValue) { | ||
177 | switch (featureID) { | ||
178 | case SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE: | ||
179 | setArgumentType((Datatype) newValue); | ||
180 | return; | ||
181 | case SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE: | ||
182 | setResultType((Datatype) newValue); | ||
183 | return; | ||
184 | } | ||
185 | super.eSet(featureID, newValue); | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public void eUnset(int featureID) { | ||
195 | switch (featureID) { | ||
196 | case SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE: | ||
197 | setArgumentType((Datatype) null); | ||
198 | return; | ||
199 | case SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE: | ||
200 | setResultType((Datatype) null); | ||
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 | switch (featureID) { | ||
214 | case SolverLanguagePackage.AGGREGATION_OPERATOR__ARGUMENT_TYPE: | ||
215 | return argumentType != null; | ||
216 | case SolverLanguagePackage.AGGREGATION_OPERATOR__RESULT_TYPE: | ||
217 | return resultType != null; | ||
218 | } | ||
219 | return super.eIsSet(featureID); | ||
220 | } | ||
221 | |||
222 | } //AggregationOperatorImpl | ||