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