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/UnaryOperator.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/UnaryOperator.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/UnaryOperator.java | 250 |
1 files changed, 250 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/UnaryOperator.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/UnaryOperator.java new file mode 100644 index 00000000..ef404f46 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/UnaryOperator.java | |||
@@ -0,0 +1,250 @@ | |||
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>Unary Operator</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage#getUnaryOperator() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum UnaryOperator implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>NOT</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #NOT_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | NOT(0, "NOT", "NOT"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>PLUS</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #PLUS_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | PLUS(1, "PLUS", "PLUS"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>MINUS</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #MINUS_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | MINUS(2, "MINUS", "MINUS"), | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>MAYBE</b></em>' literal object. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #MAYBE_VALUE | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | MAYBE(3, "MAYBE", "MAYBE"); | ||
60 | |||
61 | /** | ||
62 | * The '<em><b>NOT</b></em>' literal value. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #NOT | ||
66 | * @model | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | public static final int NOT_VALUE = 0; | ||
71 | |||
72 | /** | ||
73 | * The '<em><b>PLUS</b></em>' literal value. | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @see #PLUS | ||
77 | * @model | ||
78 | * @generated | ||
79 | * @ordered | ||
80 | */ | ||
81 | public static final int PLUS_VALUE = 1; | ||
82 | |||
83 | /** | ||
84 | * The '<em><b>MINUS</b></em>' literal value. | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @see #MINUS | ||
88 | * @model | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | public static final int MINUS_VALUE = 2; | ||
93 | |||
94 | /** | ||
95 | * The '<em><b>MAYBE</b></em>' literal value. | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @see #MAYBE | ||
99 | * @model | ||
100 | * @generated | ||
101 | * @ordered | ||
102 | */ | ||
103 | public static final int MAYBE_VALUE = 3; | ||
104 | |||
105 | /** | ||
106 | * An array of all the '<em><b>Unary Operator</b></em>' enumerators. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | private static final UnaryOperator[] VALUES_ARRAY = new UnaryOperator[] { NOT, PLUS, MINUS, MAYBE, }; | ||
112 | |||
113 | /** | ||
114 | * A public read-only list of all the '<em><b>Unary Operator</b></em>' enumerators. | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | public static final List<UnaryOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
120 | |||
121 | /** | ||
122 | * Returns the '<em><b>Unary Operator</b></em>' literal with the specified literal value. | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @param literal the literal. | ||
126 | * @return the matching enumerator or <code>null</code>. | ||
127 | * @generated | ||
128 | */ | ||
129 | public static UnaryOperator get(String literal) { | ||
130 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
131 | UnaryOperator result = VALUES_ARRAY[i]; | ||
132 | if (result.toString().equals(literal)) { | ||
133 | return result; | ||
134 | } | ||
135 | } | ||
136 | return null; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * Returns the '<em><b>Unary Operator</b></em>' literal with the specified name. | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @param name the name. | ||
144 | * @return the matching enumerator or <code>null</code>. | ||
145 | * @generated | ||
146 | */ | ||
147 | public static UnaryOperator getByName(String name) { | ||
148 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
149 | UnaryOperator result = VALUES_ARRAY[i]; | ||
150 | if (result.getName().equals(name)) { | ||
151 | return result; | ||
152 | } | ||
153 | } | ||
154 | return null; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * Returns the '<em><b>Unary Operator</b></em>' literal with the specified integer value. | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @param value the integer value. | ||
162 | * @return the matching enumerator or <code>null</code>. | ||
163 | * @generated | ||
164 | */ | ||
165 | public static UnaryOperator get(int value) { | ||
166 | switch (value) { | ||
167 | case NOT_VALUE: | ||
168 | return NOT; | ||
169 | case PLUS_VALUE: | ||
170 | return PLUS; | ||
171 | case MINUS_VALUE: | ||
172 | return MINUS; | ||
173 | case MAYBE_VALUE: | ||
174 | return MAYBE; | ||
175 | } | ||
176 | return null; | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | private final int value; | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | private final String name; | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | private final String literal; | ||
199 | |||
200 | /** | ||
201 | * Only this class can construct instances. | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | private UnaryOperator(int value, String name, String literal) { | ||
207 | this.value = value; | ||
208 | this.name = name; | ||
209 | this.literal = literal; | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | public int getValue() { | ||
218 | return value; | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | public String getName() { | ||
227 | return name; | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | public String getLiteral() { | ||
236 | return literal; | ||
237 | } | ||
238 | |||
239 | /** | ||
240 | * Returns the literal value of the enumerator, which is its string representation. | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public String toString() { | ||
247 | return literal; | ||
248 | } | ||
249 | |||
250 | } //UnaryOperator | ||