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/BinaryOperator.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/BinaryOperator.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/BinaryOperator.java | 435 |
1 files changed, 435 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/BinaryOperator.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/BinaryOperator.java new file mode 100644 index 00000000..58d01fd7 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/BinaryOperator.java | |||
@@ -0,0 +1,435 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import org.eclipse.emf.common.util.Enumerator; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * A representation of the literals of the enumeration '<em><b>Binary Operator</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#getBinaryOperator() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum BinaryOperator implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>PLUS</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #PLUS_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | PLUS(0, "PLUS", "PLUS"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>MINUS</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #MINUS_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | MINUS(1, "MINUS", "MINUS"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>MULTIPLY</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #MULTIPLY_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | MULTIPLY(2, "MULTIPLY", "MULTIPLY"), | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>DIVIDE</b></em>' literal object. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #DIVIDE_VALUE | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | DIVIDE(3, "DIVIDE", "DIVIDE"), | ||
60 | |||
61 | /** | ||
62 | * The '<em><b>POW</b></em>' literal object. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #POW_VALUE | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | POW(4, "POW", "POW"), | ||
70 | |||
71 | /** | ||
72 | * The '<em><b>IN</b></em>' literal object. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #IN_VALUE | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | IN(5, "IN", "IN"), | ||
80 | |||
81 | /** | ||
82 | * The '<em><b>EQUALS</b></em>' literal object. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #EQUALS_VALUE | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | EQUALS(6, "EQUALS", "EQUALS"), | ||
90 | |||
91 | /** | ||
92 | * The '<em><b>NOT EQUALS</b></em>' literal object. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #NOT_EQUALS_VALUE | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | NOT_EQUALS(7, "NOT_EQUALS", "NOT_EQUALS"), | ||
100 | |||
101 | /** | ||
102 | * The '<em><b>LESS</b></em>' literal object. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #LESS_VALUE | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | LESS(8, "LESS", "LESS"), | ||
110 | |||
111 | /** | ||
112 | * The '<em><b>LESS EQUALS</b></em>' literal object. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #LESS_EQUALS_VALUE | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | LESS_EQUALS(9, "LESS_EQUALS", "LESS_EQUALS"), | ||
120 | |||
121 | /** | ||
122 | * The '<em><b>GREATER</b></em>' literal object. | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @see #GREATER_VALUE | ||
126 | * @generated | ||
127 | * @ordered | ||
128 | */ | ||
129 | GREATER(10, "GREATER", "GREATER"), | ||
130 | |||
131 | /** | ||
132 | * The '<em><b>GREATER EQUALS</b></em>' literal object. | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @see #GREATER_EQUALS_VALUE | ||
136 | * @generated | ||
137 | * @ordered | ||
138 | */ | ||
139 | GREATER_EQUALS(11, "GREATER_EQUALS", "GREATER_EQUALS"); | ||
140 | |||
141 | /** | ||
142 | * The '<em><b>PLUS</b></em>' literal value. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @see #PLUS | ||
146 | * @model | ||
147 | * @generated | ||
148 | * @ordered | ||
149 | */ | ||
150 | public static final int PLUS_VALUE = 0; | ||
151 | |||
152 | /** | ||
153 | * The '<em><b>MINUS</b></em>' literal value. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @see #MINUS | ||
157 | * @model | ||
158 | * @generated | ||
159 | * @ordered | ||
160 | */ | ||
161 | public static final int MINUS_VALUE = 1; | ||
162 | |||
163 | /** | ||
164 | * The '<em><b>MULTIPLY</b></em>' literal value. | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @see #MULTIPLY | ||
168 | * @model | ||
169 | * @generated | ||
170 | * @ordered | ||
171 | */ | ||
172 | public static final int MULTIPLY_VALUE = 2; | ||
173 | |||
174 | /** | ||
175 | * The '<em><b>DIVIDE</b></em>' literal value. | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @see #DIVIDE | ||
179 | * @model | ||
180 | * @generated | ||
181 | * @ordered | ||
182 | */ | ||
183 | public static final int DIVIDE_VALUE = 3; | ||
184 | |||
185 | /** | ||
186 | * The '<em><b>POW</b></em>' literal value. | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @see #POW | ||
190 | * @model | ||
191 | * @generated | ||
192 | * @ordered | ||
193 | */ | ||
194 | public static final int POW_VALUE = 4; | ||
195 | |||
196 | /** | ||
197 | * The '<em><b>IN</b></em>' literal value. | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @see #IN | ||
201 | * @model | ||
202 | * @generated | ||
203 | * @ordered | ||
204 | */ | ||
205 | public static final int IN_VALUE = 5; | ||
206 | |||
207 | /** | ||
208 | * The '<em><b>EQUALS</b></em>' literal value. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @see #EQUALS | ||
212 | * @model | ||
213 | * @generated | ||
214 | * @ordered | ||
215 | */ | ||
216 | public static final int EQUALS_VALUE = 6; | ||
217 | |||
218 | /** | ||
219 | * The '<em><b>NOT EQUALS</b></em>' literal value. | ||
220 | * <!-- begin-user-doc --> | ||
221 | * <!-- end-user-doc --> | ||
222 | * @see #NOT_EQUALS | ||
223 | * @model | ||
224 | * @generated | ||
225 | * @ordered | ||
226 | */ | ||
227 | public static final int NOT_EQUALS_VALUE = 7; | ||
228 | |||
229 | /** | ||
230 | * The '<em><b>LESS</b></em>' literal value. | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @see #LESS | ||
234 | * @model | ||
235 | * @generated | ||
236 | * @ordered | ||
237 | */ | ||
238 | public static final int LESS_VALUE = 8; | ||
239 | |||
240 | /** | ||
241 | * The '<em><b>LESS EQUALS</b></em>' literal value. | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @see #LESS_EQUALS | ||
245 | * @model | ||
246 | * @generated | ||
247 | * @ordered | ||
248 | */ | ||
249 | public static final int LESS_EQUALS_VALUE = 9; | ||
250 | |||
251 | /** | ||
252 | * The '<em><b>GREATER</b></em>' literal value. | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @see #GREATER | ||
256 | * @model | ||
257 | * @generated | ||
258 | * @ordered | ||
259 | */ | ||
260 | public static final int GREATER_VALUE = 10; | ||
261 | |||
262 | /** | ||
263 | * The '<em><b>GREATER EQUALS</b></em>' literal value. | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @see #GREATER_EQUALS | ||
267 | * @model | ||
268 | * @generated | ||
269 | * @ordered | ||
270 | */ | ||
271 | public static final int GREATER_EQUALS_VALUE = 11; | ||
272 | |||
273 | /** | ||
274 | * An array of all the '<em><b>Binary Operator</b></em>' enumerators. | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | private static final BinaryOperator[] VALUES_ARRAY = new BinaryOperator[] { PLUS, MINUS, MULTIPLY, DIVIDE, POW, IN, | ||
280 | EQUALS, NOT_EQUALS, LESS, LESS_EQUALS, GREATER, GREATER_EQUALS, }; | ||
281 | |||
282 | /** | ||
283 | * A public read-only list of all the '<em><b>Binary Operator</b></em>' enumerators. | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | public static final List<BinaryOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
289 | |||
290 | /** | ||
291 | * Returns the '<em><b>Binary Operator</b></em>' literal with the specified literal value. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @param literal the literal. | ||
295 | * @return the matching enumerator or <code>null</code>. | ||
296 | * @generated | ||
297 | */ | ||
298 | public static BinaryOperator get(String literal) { | ||
299 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
300 | BinaryOperator result = VALUES_ARRAY[i]; | ||
301 | if (result.toString().equals(literal)) { | ||
302 | return result; | ||
303 | } | ||
304 | } | ||
305 | return null; | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * Returns the '<em><b>Binary Operator</b></em>' literal with the specified name. | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @param name the name. | ||
313 | * @return the matching enumerator or <code>null</code>. | ||
314 | * @generated | ||
315 | */ | ||
316 | public static BinaryOperator getByName(String name) { | ||
317 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
318 | BinaryOperator result = VALUES_ARRAY[i]; | ||
319 | if (result.getName().equals(name)) { | ||
320 | return result; | ||
321 | } | ||
322 | } | ||
323 | return null; | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * Returns the '<em><b>Binary Operator</b></em>' literal with the specified integer value. | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @param value the integer value. | ||
331 | * @return the matching enumerator or <code>null</code>. | ||
332 | * @generated | ||
333 | */ | ||
334 | public static BinaryOperator get(int value) { | ||
335 | switch (value) { | ||
336 | case PLUS_VALUE: | ||
337 | return PLUS; | ||
338 | case MINUS_VALUE: | ||
339 | return MINUS; | ||
340 | case MULTIPLY_VALUE: | ||
341 | return MULTIPLY; | ||
342 | case DIVIDE_VALUE: | ||
343 | return DIVIDE; | ||
344 | case POW_VALUE: | ||
345 | return POW; | ||
346 | case IN_VALUE: | ||
347 | return IN; | ||
348 | case EQUALS_VALUE: | ||
349 | return EQUALS; | ||
350 | case NOT_EQUALS_VALUE: | ||
351 | return NOT_EQUALS; | ||
352 | case LESS_VALUE: | ||
353 | return LESS; | ||
354 | case LESS_EQUALS_VALUE: | ||
355 | return LESS_EQUALS; | ||
356 | case GREATER_VALUE: | ||
357 | return GREATER; | ||
358 | case GREATER_EQUALS_VALUE: | ||
359 | return GREATER_EQUALS; | ||
360 | } | ||
361 | return null; | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * <!-- begin-user-doc --> | ||
366 | * <!-- end-user-doc --> | ||
367 | * @generated | ||
368 | */ | ||
369 | private final int value; | ||
370 | |||
371 | /** | ||
372 | * <!-- begin-user-doc --> | ||
373 | * <!-- end-user-doc --> | ||
374 | * @generated | ||
375 | */ | ||
376 | private final String name; | ||
377 | |||
378 | /** | ||
379 | * <!-- begin-user-doc --> | ||
380 | * <!-- end-user-doc --> | ||
381 | * @generated | ||
382 | */ | ||
383 | private final String literal; | ||
384 | |||
385 | /** | ||
386 | * Only this class can construct instances. | ||
387 | * <!-- begin-user-doc --> | ||
388 | * <!-- end-user-doc --> | ||
389 | * @generated | ||
390 | */ | ||
391 | private BinaryOperator(int value, String name, String literal) { | ||
392 | this.value = value; | ||
393 | this.name = name; | ||
394 | this.literal = literal; | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * <!-- begin-user-doc --> | ||
399 | * <!-- end-user-doc --> | ||
400 | * @generated | ||
401 | */ | ||
402 | public int getValue() { | ||
403 | return value; | ||
404 | } | ||
405 | |||
406 | /** | ||
407 | * <!-- begin-user-doc --> | ||
408 | * <!-- end-user-doc --> | ||
409 | * @generated | ||
410 | */ | ||
411 | public String getName() { | ||
412 | return name; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | public String getLiteral() { | ||
421 | return literal; | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * Returns the literal value of the enumerator, which is its string representation. | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | @Override | ||
431 | public String toString() { | ||
432 | return literal; | ||
433 | } | ||
434 | |||
435 | } //BinaryOperator | ||