Class ProblemSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
tools.refinery.language.model.problem.util.ProblemSwitch<T>
public class ProblemSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
The Switch for the model's inheritance hierarchy.
It supports the call
doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Abstract Assertion'.caseAction
(Action object) Returns the result of interpreting the object as an instance of 'Action'.caseAggregationExpr
(AggregationExpr object) Returns the result of interpreting the object as an instance of 'Aggregation Expr'.Returns the result of interpreting the object as an instance of 'Aggregator Declaration'.caseAnnotatedElement
(AnnotatedElement object) Returns the result of interpreting the object as an instance of 'Annotated Element'.caseAnnotation
(Annotation object) Returns the result of interpreting the object as an instance of 'Annotation'.Returns the result of interpreting the object as an instance of 'Annotation Argument'.Returns the result of interpreting the object as an instance of 'Annotation Container'.Returns the result of interpreting the object as an instance of 'Annotation Declaration'.Returns the result of interpreting the object as an instance of 'Arithmetic Binary Expr'.Returns the result of interpreting the object as an instance of 'Arithmetic Unary Expr'.caseAssertion
(Assertion object) Returns the result of interpreting the object as an instance of 'Assertion'.caseAssertionAction
(AssertionAction object) Returns the result of interpreting the object as an instance of 'Assertion Action'.Returns the result of interpreting the object as an instance of 'Assertion Argument'.caseAssignmentExpr
(AssignmentExpr object) Returns the result of interpreting the object as an instance of 'Assignment Expr'.Returns the result of interpreting the object as an instance of 'Atom'.caseBinaryExpr
(BinaryExpr object) Returns the result of interpreting the object as an instance of 'Binary Expr'.Returns the result of interpreting the object as an instance of 'Case'.caseCastExpr
(CastExpr object) Returns the result of interpreting the object as an instance of 'Cast Expr'.caseClassDeclaration
(ClassDeclaration object) Returns the result of interpreting the object as an instance of 'Class Declaration'.caseComparisonExpr
(ComparisonExpr object) Returns the result of interpreting the object as an instance of 'Comparison Expr'.caseConjunction
(Conjunction object) Returns the result of interpreting the object as an instance of 'Conjunction'.caseConsequent
(Consequent object) Returns the result of interpreting the object as an instance of 'Consequent'.caseConstant
(Constant object) Returns the result of interpreting the object as an instance of 'Constant'.caseCountExpr
(CountExpr object) Returns the result of interpreting the object as an instance of 'Count Expr'.Returns the result of interpreting the object as an instance of 'Datatype Declaration'.caseEnumDeclaration
(EnumDeclaration object) Returns the result of interpreting the object as an instance of 'Enum Declaration'.Returns the result of interpreting the object as an instance of 'Exact Multiplicity'.Returns the result of interpreting the object as an instance of 'Existential Quantifier'.Returns the result of interpreting the object as an instance of 'Expr'.Returns the result of interpreting the object as an instance of 'Function Definition'.caseImplicitVariable
(ImplicitVariable object) Returns the result of interpreting the object as an instance of 'Implicit Variable'.caseImportStatement
(ImportStatement object) Returns the result of interpreting the object as an instance of 'Import Statement'.caseInfiniteConstant
(InfiniteConstant object) Returns the result of interpreting the object as an instance of 'Infinite Constant'.caseIntConstant
(IntConstant object) Returns the result of interpreting the object as an instance of 'Int Constant'.Returns the result of interpreting the object as an instance of 'Lattice Binary Expr'.caseLogicConstant
(LogicConstant object) Returns the result of interpreting the object as an instance of 'Logic Constant'.Returns the result of interpreting the object as an instance of 'Match'.caseModalExpr
(ModalExpr object) Returns the result of interpreting the object as an instance of 'Modal Expr'.caseMultiplicity
(Multiplicity object) Returns the result of interpreting the object as an instance of 'Multiplicity'.caseNamedElement
(NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.caseNegationExpr
(NegationExpr object) Returns the result of interpreting the object as an instance of 'Negation Expr'.Returns the result of interpreting the object as an instance of 'Node'.Returns the result of interpreting the object as an instance of 'Node Assertion Argument'.caseNodeDeclaration
(NodeDeclaration object) Returns the result of interpreting the object as an instance of 'Node Declaration'.caseParameter
(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.Returns the result of interpreting the object as an instance of 'Parametric Definition'.Returns the result of interpreting the object as an instance of 'Predicate Definition'.caseProblem
(Problem object) Returns the result of interpreting the object as an instance of 'Problem'.Returns the result of interpreting the object as an instance of 'Quantified Unary Expr'.caseRangeExpr
(RangeExpr object) Returns the result of interpreting the object as an instance of 'Range Expr'.Returns the result of interpreting the object as an instance of 'Range Multiplicity'.caseRealConstant
(RealConstant object) Returns the result of interpreting the object as an instance of 'Real Constant'.Returns the result of interpreting the object as an instance of 'Reference Declaration'.caseRelation
(Relation object) Returns the result of interpreting the object as an instance of 'Relation'.caseRuleDefinition
(RuleDefinition object) Returns the result of interpreting the object as an instance of 'Rule Definition'.caseScopeDeclaration
(ScopeDeclaration object) Returns the result of interpreting the object as an instance of 'Scope Declaration'.caseStatement
(Statement object) Returns the result of interpreting the object as an instance of 'Statement'.caseStringConstant
(StringConstant object) Returns the result of interpreting the object as an instance of 'String Constant'.Returns the result of interpreting the object as an instance of 'Top Level Annotation'.caseTypeScope
(TypeScope object) Returns the result of interpreting the object as an instance of 'Type Scope'.caseUnaryExpr
(UnaryExpr object) Returns the result of interpreting the object as an instance of 'Unary Expr'.Returns the result of interpreting the object as an instance of 'Unbounded Multiplicity'.caseVariable
(Variable object) Returns the result of interpreting the object as an instance of 'Variable'.caseVariableOrNode
(VariableOrNode object) Returns the result of interpreting the object as an instance of 'Variable Or Node'.Returns the result of interpreting the object as an instance of 'Variable Or Node Expr'.Returns the result of interpreting the object as an instance of 'Wildcard Assertion Argument'.defaultCase
(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch
(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
ProblemSwitch
public ProblemSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseProblem
Returns the result of interpreting the object as an instance of 'Problem'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Problem'.
- See Also:
-
caseClassDeclaration
Returns the result of interpreting the object as an instance of 'Class Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Class Declaration'.
- See Also:
-
caseReferenceDeclaration
Returns the result of interpreting the object as an instance of 'Reference Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Reference Declaration'.
- See Also:
-
caseNamedElement
Returns the result of interpreting the object as an instance of 'Named Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Named Element'.
- See Also:
-
casePredicateDefinition
Returns the result of interpreting the object as an instance of 'Predicate Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Predicate Definition'.
- See Also:
-
caseParameter
Returns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter'.
- See Also:
-
caseVariable
Returns the result of interpreting the object as an instance of 'Variable'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable'.
- See Also:
-
caseAtom
Returns the result of interpreting the object as an instance of 'Atom'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Atom'.
- See Also:
-
caseImplicitVariable
Returns the result of interpreting the object as an instance of 'Implicit Variable'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Implicit Variable'.
- See Also:
-
caseExistentialQuantifier
Returns the result of interpreting the object as an instance of 'Existential Quantifier'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Existential Quantifier'.
- See Also:
-
caseAbstractAssertion
Returns the result of interpreting the object as an instance of 'Abstract Assertion'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Abstract Assertion'.
- See Also:
-
caseNode
Returns the result of interpreting the object as an instance of 'Node'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Node'.
- See Also:
-
caseScopeDeclaration
Returns the result of interpreting the object as an instance of 'Scope Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Scope Declaration'.
- See Also:
-
caseStatement
Returns the result of interpreting the object as an instance of 'Statement'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Statement'.
- See Also:
-
caseTypeScope
Returns the result of interpreting the object as an instance of 'Type Scope'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Type Scope'.
- See Also:
-
caseMultiplicity
Returns the result of interpreting the object as an instance of 'Multiplicity'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Multiplicity'.
- See Also:
-
caseRangeMultiplicity
Returns the result of interpreting the object as an instance of 'Range Multiplicity'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Range Multiplicity'.
- See Also:
-
caseExactMultiplicity
Returns the result of interpreting the object as an instance of 'Exact Multiplicity'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exact Multiplicity'.
- See Also:
-
caseUnboundedMultiplicity
Returns the result of interpreting the object as an instance of 'Unbounded Multiplicity'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Unbounded Multiplicity'.
- See Also:
-
caseEnumDeclaration
Returns the result of interpreting the object as an instance of 'Enum Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Enum Declaration'.
- See Also:
-
caseVariableOrNode
Returns the result of interpreting the object as an instance of 'Variable Or Node'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Or Node'.
- See Also:
-
caseConstant
Returns the result of interpreting the object as an instance of 'Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Constant'.
- See Also:
-
caseIntConstant
Returns the result of interpreting the object as an instance of 'Int Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Int Constant'.
- See Also:
-
caseRealConstant
Returns the result of interpreting the object as an instance of 'Real Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Real Constant'.
- See Also:
-
caseStringConstant
Returns the result of interpreting the object as an instance of 'String Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Constant'.
- See Also:
-
caseNodeAssertionArgument
Returns the result of interpreting the object as an instance of 'Node Assertion Argument'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Node Assertion Argument'.
- See Also:
-
caseAssertionArgument
Returns the result of interpreting the object as an instance of 'Assertion Argument'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assertion Argument'.
- See Also:
-
caseNodeDeclaration
Returns the result of interpreting the object as an instance of 'Node Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Node Declaration'.
- See Also:
-
caseWildcardAssertionArgument
Returns the result of interpreting the object as an instance of 'Wildcard Assertion Argument'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Wildcard Assertion Argument'.
- See Also:
-
caseParametricDefinition
Returns the result of interpreting the object as an instance of 'Parametric Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parametric Definition'.
- See Also:
-
caseRuleDefinition
Returns the result of interpreting the object as an instance of 'Rule Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Rule Definition'.
- See Also:
-
caseConsequent
Returns the result of interpreting the object as an instance of 'Consequent'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Consequent'.
- See Also:
-
caseAction
Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action'.
- See Also:
-
caseAssertionAction
Returns the result of interpreting the object as an instance of 'Assertion Action'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assertion Action'.
- See Also:
-
caseExpr
Returns the result of interpreting the object as an instance of 'Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Expr'.
- See Also:
-
caseVariableOrNodeExpr
Returns the result of interpreting the object as an instance of 'Variable Or Node Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Or Node Expr'.
- See Also:
-
caseBinaryExpr
Returns the result of interpreting the object as an instance of 'Binary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Binary Expr'.
- See Also:
-
caseUnaryExpr
Returns the result of interpreting the object as an instance of 'Unary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Unary Expr'.
- See Also:
-
caseArithmeticUnaryExpr
Returns the result of interpreting the object as an instance of 'Arithmetic Unary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Arithmetic Unary Expr'.
- See Also:
-
caseAggregationExpr
Returns the result of interpreting the object as an instance of 'Aggregation Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Aggregation Expr'.
- See Also:
-
caseComparisonExpr
Returns the result of interpreting the object as an instance of 'Comparison Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Comparison Expr'.
- See Also:
-
caseQuantifiedUnaryExpr
Returns the result of interpreting the object as an instance of 'Quantified Unary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Quantified Unary Expr'.
- See Also:
-
caseFunctionDefinition
Returns the result of interpreting the object as an instance of 'Function Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Function Definition'.
- See Also:
-
caseCase
Returns the result of interpreting the object as an instance of 'Case'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Case'.
- See Also:
-
caseConjunction
Returns the result of interpreting the object as an instance of 'Conjunction'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Conjunction'.
- See Also:
-
caseMatch
Returns the result of interpreting the object as an instance of 'Match'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Match'.
- See Also:
-
caseArithmeticBinaryExpr
Returns the result of interpreting the object as an instance of 'Arithmetic Binary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Arithmetic Binary Expr'.
- See Also:
-
caseNegationExpr
Returns the result of interpreting the object as an instance of 'Negation Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Negation Expr'.
- See Also:
-
caseCountExpr
Returns the result of interpreting the object as an instance of 'Count Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Count Expr'.
- See Also:
-
caseRelation
Returns the result of interpreting the object as an instance of 'Relation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Relation'.
- See Also:
-
caseRangeExpr
Returns the result of interpreting the object as an instance of 'Range Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Range Expr'.
- See Also:
-
caseLogicConstant
Returns the result of interpreting the object as an instance of 'Logic Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Logic Constant'.
- See Also:
-
caseImportStatement
Returns the result of interpreting the object as an instance of 'Import Statement'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Import Statement'.
- See Also:
-
caseDatatypeDeclaration
Returns the result of interpreting the object as an instance of 'Datatype Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Datatype Declaration'.
- See Also:
-
caseLatticeBinaryExpr
Returns the result of interpreting the object as an instance of 'Lattice Binary Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Lattice Binary Expr'.
- See Also:
-
caseCastExpr
Returns the result of interpreting the object as an instance of 'Cast Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Cast Expr'.
- See Also:
-
caseAssignmentExpr
Returns the result of interpreting the object as an instance of 'Assignment Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assignment Expr'.
- See Also:
-
caseInfiniteConstant
Returns the result of interpreting the object as an instance of 'Infinite Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Infinite Constant'.
- See Also:
-
caseAggregatorDeclaration
Returns the result of interpreting the object as an instance of 'Aggregator Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Aggregator Declaration'.
- See Also:
-
caseModalExpr
Returns the result of interpreting the object as an instance of 'Modal Expr'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Modal Expr'.
- See Also:
-
caseAssertion
Returns the result of interpreting the object as an instance of 'Assertion'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assertion'.
- See Also:
-
caseAnnotatedElement
Returns the result of interpreting the object as an instance of 'Annotated Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotated Element'.
- See Also:
-
caseAnnotationContainer
Returns the result of interpreting the object as an instance of 'Annotation Container'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation Container'.
- See Also:
-
caseAnnotationDeclaration
Returns the result of interpreting the object as an instance of 'Annotation Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation Declaration'.
- See Also:
-
caseAnnotation
Returns the result of interpreting the object as an instance of 'Annotation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation'.
- See Also:
-
caseAnnotationArgument
Returns the result of interpreting the object as an instance of 'Annotation Argument'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation Argument'.
- See Also:
-
caseTopLevelAnnotation
Returns the result of interpreting the object as an instance of 'Top Level Annotation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Top Level Annotation'.
- See Also:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCase
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-