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/util/ProblemSwitch.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/util/ProblemSwitch.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/util/ProblemSwitch.java | 60 |
1 files changed, 60 insertions, 0 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/util/ProblemSwitch.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/util/ProblemSwitch.java index 361b663c..b74718b5 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/util/ProblemSwitch.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/util/ProblemSwitch.java | |||
@@ -134,6 +134,8 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
134 | if (result == null) | 134 | if (result == null) |
135 | result = caseVariable(parameter); | 135 | result = caseVariable(parameter); |
136 | if (result == null) | 136 | if (result == null) |
137 | result = caseVariableOrNode(parameter); | ||
138 | if (result == null) | ||
137 | result = caseNamedElement(parameter); | 139 | result = caseNamedElement(parameter); |
138 | if (result == null) | 140 | if (result == null) |
139 | result = defaultCase(theEObject); | 141 | result = defaultCase(theEObject); |
@@ -143,6 +145,8 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
143 | Variable variable = (Variable) theEObject; | 145 | Variable variable = (Variable) theEObject; |
144 | T result = caseVariable(variable); | 146 | T result = caseVariable(variable); |
145 | if (result == null) | 147 | if (result == null) |
148 | result = caseVariableOrNode(variable); | ||
149 | if (result == null) | ||
146 | result = caseNamedElement(variable); | 150 | result = caseNamedElement(variable); |
147 | if (result == null) | 151 | if (result == null) |
148 | result = defaultCase(theEObject); | 152 | result = defaultCase(theEObject); |
@@ -179,6 +183,8 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
179 | if (result == null) | 183 | if (result == null) |
180 | result = caseVariable(implicitVariable); | 184 | result = caseVariable(implicitVariable); |
181 | if (result == null) | 185 | if (result == null) |
186 | result = caseVariableOrNode(implicitVariable); | ||
187 | if (result == null) | ||
182 | result = caseNamedElement(implicitVariable); | 188 | result = caseNamedElement(implicitVariable); |
183 | if (result == null) | 189 | if (result == null) |
184 | result = defaultCase(theEObject); | 190 | result = defaultCase(theEObject); |
@@ -215,6 +221,8 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
215 | Node node = (Node) theEObject; | 221 | Node node = (Node) theEObject; |
216 | T result = caseNode(node); | 222 | T result = caseNode(node); |
217 | if (result == null) | 223 | if (result == null) |
224 | result = caseVariableOrNode(node); | ||
225 | if (result == null) | ||
218 | result = caseNamedElement(node); | 226 | result = caseNamedElement(node); |
219 | if (result == null) | 227 | if (result == null) |
220 | result = defaultCase(theEObject); | 228 | result = defaultCase(theEObject); |
@@ -284,6 +292,28 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
284 | result = defaultCase(theEObject); | 292 | result = defaultCase(theEObject); |
285 | return result; | 293 | return result; |
286 | } | 294 | } |
295 | case ProblemPackage.ENUM_DECLARATION: { | ||
296 | EnumDeclaration enumDeclaration = (EnumDeclaration) theEObject; | ||
297 | T result = caseEnumDeclaration(enumDeclaration); | ||
298 | if (result == null) | ||
299 | result = caseRelation(enumDeclaration); | ||
300 | if (result == null) | ||
301 | result = caseStatement(enumDeclaration); | ||
302 | if (result == null) | ||
303 | result = caseNamedElement(enumDeclaration); | ||
304 | if (result == null) | ||
305 | result = defaultCase(theEObject); | ||
306 | return result; | ||
307 | } | ||
308 | case ProblemPackage.VARIABLE_OR_NODE: { | ||
309 | VariableOrNode variableOrNode = (VariableOrNode) theEObject; | ||
310 | T result = caseVariableOrNode(variableOrNode); | ||
311 | if (result == null) | ||
312 | result = caseNamedElement(variableOrNode); | ||
313 | if (result == null) | ||
314 | result = defaultCase(theEObject); | ||
315 | return result; | ||
316 | } | ||
287 | default: | 317 | default: |
288 | return defaultCase(theEObject); | 318 | return defaultCase(theEObject); |
289 | } | 319 | } |
@@ -650,6 +680,36 @@ public class ProblemSwitch<T> extends Switch<T> { | |||
650 | } | 680 | } |
651 | 681 | ||
652 | /** | 682 | /** |
683 | * Returns the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
684 | * <!-- begin-user-doc --> | ||
685 | * This implementation returns null; | ||
686 | * returning a non-null result will terminate the switch. | ||
687 | * <!-- end-user-doc --> | ||
688 | * @param object the target of the switch. | ||
689 | * @return the result of interpreting the object as an instance of '<em>Enum Declaration</em>'. | ||
690 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
691 | * @generated | ||
692 | */ | ||
693 | public T caseEnumDeclaration(EnumDeclaration object) { | ||
694 | return null; | ||
695 | } | ||
696 | |||
697 | /** | ||
698 | * Returns the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
699 | * <!-- begin-user-doc --> | ||
700 | * This implementation returns null; | ||
701 | * returning a non-null result will terminate the switch. | ||
702 | * <!-- end-user-doc --> | ||
703 | * @param object the target of the switch. | ||
704 | * @return the result of interpreting the object as an instance of '<em>Variable Or Node</em>'. | ||
705 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
706 | * @generated | ||
707 | */ | ||
708 | public T caseVariableOrNode(VariableOrNode object) { | ||
709 | return null; | ||
710 | } | ||
711 | |||
712 | /** | ||
653 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | 713 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
654 | * <!-- begin-user-doc --> | 714 | * <!-- begin-user-doc --> |
655 | * This implementation returns null; | 715 | * This implementation returns null; |