diff options
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')
2 files changed, 98 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/ProblemAdapterFactory.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/ProblemAdapterFactory.java index c41a4034..3fc3ca75 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/ProblemAdapterFactory.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/ProblemAdapterFactory.java | |||
@@ -187,6 +187,16 @@ public class ProblemAdapterFactory extends AdapterFactoryImpl { | |||
187 | } | 187 | } |
188 | 188 | ||
189 | @Override | 189 | @Override |
190 | public Adapter caseEnumDeclaration(EnumDeclaration object) { | ||
191 | return createEnumDeclarationAdapter(); | ||
192 | } | ||
193 | |||
194 | @Override | ||
195 | public Adapter caseVariableOrNode(VariableOrNode object) { | ||
196 | return createVariableOrNodeAdapter(); | ||
197 | } | ||
198 | |||
199 | @Override | ||
190 | public Adapter defaultCase(EObject object) { | 200 | public Adapter defaultCase(EObject object) { |
191 | return createEObjectAdapter(); | 201 | return createEObjectAdapter(); |
192 | } | 202 | } |
@@ -542,6 +552,34 @@ public class ProblemAdapterFactory extends AdapterFactoryImpl { | |||
542 | } | 552 | } |
543 | 553 | ||
544 | /** | 554 | /** |
555 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration <em>Enum Declaration</em>}'. | ||
556 | * <!-- begin-user-doc --> | ||
557 | * This default implementation returns null so that we can easily ignore cases; | ||
558 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
559 | * <!-- end-user-doc --> | ||
560 | * @return the new adapter. | ||
561 | * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration | ||
562 | * @generated | ||
563 | */ | ||
564 | public Adapter createEnumDeclarationAdapter() { | ||
565 | return null; | ||
566 | } | ||
567 | |||
568 | /** | ||
569 | * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.VariableOrNode <em>Variable Or Node</em>}'. | ||
570 | * <!-- begin-user-doc --> | ||
571 | * This default implementation returns null so that we can easily ignore cases; | ||
572 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
573 | * <!-- end-user-doc --> | ||
574 | * @return the new adapter. | ||
575 | * @see org.eclipse.viatra.solver.language.model.problem.VariableOrNode | ||
576 | * @generated | ||
577 | */ | ||
578 | public Adapter createVariableOrNodeAdapter() { | ||
579 | return null; | ||
580 | } | ||
581 | |||
582 | /** | ||
545 | * Creates a new adapter for the default case. | 583 | * Creates a new adapter for the default case. |
546 | * <!-- begin-user-doc --> | 584 | * <!-- begin-user-doc --> |
547 | * This default implementation returns null. | 585 | * This default implementation returns null. |
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; |