Class StatementsSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.emftext.language.java.statements.util.StatementsSwitch<T>
- Direct Known Subclasses:
StatementsPrinterSwitch
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:
- Generated class or method.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Additive Expression Child'.Returns the result of interpreting the object as an instance of 'And Expression Child'.caseAnnotationValue
(AnnotationValue object) Returns the result of interpreting the object as an instance of 'Annotation Value'.Returns the result of interpreting the object as an instance of 'Array Initialization Value'.caseAssert
(Assert object) Returns the result of interpreting the object as an instance of 'Assert'.Returns the result of interpreting the object as an instance of 'Assignment Expression Child'.Returns the result of interpreting the object as an instance of 'Block'.caseBlockContainer
(BlockContainer object) Returns the result of interpreting the object as an instance of 'Block Container'.Returns the result of interpreting the object as an instance of 'Break'.caseCatchBlock
(CatchBlock object) Returns the result of interpreting the object as an instance of 'Catch Block'.caseCommentable
(Commentable object) Returns the result of interpreting the object as an instance of 'Commentable'.caseCondition
(Condition object) Returns the result of interpreting the object as an instance of 'Condition'.caseConditional
(Conditional object) Returns the result of interpreting the object as an instance of 'Conditional'.Returns the result of interpreting the object as an instance of 'Conditional And Expression Child'.Returns the result of interpreting the object as an instance of 'Conditional Expression Child'.Returns the result of interpreting the object as an instance of 'Conditional Or Expression Child'.caseContinue
(Continue object) Returns the result of interpreting the object as an instance of 'Continue'.Returns the result of interpreting the object as an instance of 'Default Switch Case'.Returns the result of interpreting the object as an instance of 'Default Switch Rule'.caseDoWhileLoop
(DoWhileLoop object) Returns the result of interpreting the object as an instance of 'Do While Loop'.caseEmptyStatement
(EmptyStatement object) Returns the result of interpreting the object as an instance of 'Empty Statement'.Returns the result of interpreting the object as an instance of 'Equality Expression Child'.Returns the result of interpreting the object as an instance of 'Exclusive Or Expression Child'.caseExpression
(Expression object) Returns the result of interpreting the object as an instance of 'Expression'.Returns the result of interpreting the object as an instance of 'Expression Statement'.caseForEachLoop
(ForEachLoop object) Returns the result of interpreting the object as an instance of 'For Each Loop'.caseForLoop
(ForLoop object) Returns the result of interpreting the object as an instance of 'For Loop'.Returns the result of interpreting the object as an instance of 'For Loop Initializer'.Returns the result of interpreting the object as an instance of 'Inclusive Or Expression Child'.Returns the result of interpreting the object as an instance of 'Instance Of Expression Child'.Returns the result of interpreting the object as an instance of 'Jump'.caseJumpLabel
(JumpLabel object) Returns the result of interpreting the object as an instance of 'Jump Label'.caseLambdaBody
(LambdaBody object) Returns the result of interpreting the object as an instance of 'Lambda Body'.Returns the result of interpreting the object as an instance of 'Local Variable Statement'.caseMember
(Member object) Returns the result of interpreting the object as an instance of 'Member'.caseModifiable
(Modifiable object) Returns the result of interpreting the object as an instance of 'Modifiable'.Returns the result of interpreting the object as an instance of 'Multiplicative Expression Child'.caseNamedElement
(NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.caseNormalSwitchCase
(NormalSwitchCase object) Returns the result of interpreting the object as an instance of 'Normal Switch Case'.caseNormalSwitchRule
(NormalSwitchRule object) Returns the result of interpreting the object as an instance of 'Normal Switch Rule'.Returns the result of interpreting the object as an instance of 'Relation Expression Child'.caseReturn
(Return object) Returns the result of interpreting the object as an instance of 'Return'.Returns the result of interpreting the object as an instance of 'Shift Expression Child'.caseStatement
(Statement object) Returns the result of interpreting the object as an instance of 'Statement'.Returns the result of interpreting the object as an instance of 'Statement Container'.Returns the result of interpreting the object as an instance of 'Statement List Container'.caseSwitch
(Switch object) Returns the result of interpreting the object as an instance of 'Switch'.caseSwitchCase
(SwitchCase object) Returns the result of interpreting the object as an instance of 'Switch Case'.caseSwitchRule
(SwitchRule object) Returns the result of interpreting the object as an instance of 'Switch Rule'.Returns the result of interpreting the object as an instance of 'Synchronized Block'.Returns the result of interpreting the object as an instance of 'Throw'.caseTryBlock
(TryBlock object) Returns the result of interpreting the object as an instance of 'Try Block'.Returns the result of interpreting the object as an instance of 'Unary Expression Child'.Returns the result of interpreting the object as an instance of 'Unary Modification Expression Child'.caseWhileLoop
(WhileLoop object) Returns the result of interpreting the object as an instance of 'While Loop'.caseYieldStatement
(YieldStatement object) Returns the result of interpreting the object as an instance of 'Yield Statement'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
StatementsSwitch
public StatementsSwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
- Generated class or method.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result. -
caseStatementContainer
Returns the result of interpreting the object as an instance of 'Statement 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 'Statement Container'.
- See Also:
- Generated class or method.
-
caseStatementListContainer
Returns the result of interpreting the object as an instance of 'Statement List 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 'Statement List Container'.
- See Also:
- Generated class or method.
-
caseConditional
Returns the result of interpreting the object as an instance of 'Conditional'. 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 'Conditional'.
- See Also:
- Generated class or method.
-
caseForLoopInitializer
Returns the result of interpreting the object as an instance of 'For Loop Initializer'. 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 'For Loop Initializer'.
- See Also:
- Generated class or method.
-
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:
- Generated class or method.
-
caseSwitchCase
Returns the result of interpreting the object as an instance of 'Switch 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 'Switch Case'.
- See Also:
- Generated class or method.
-
caseAssert
Returns the result of interpreting the object as an instance of 'Assert'. 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 'Assert'.
- See Also:
- Generated class or method.
-
caseBreak
Returns the result of interpreting the object as an instance of 'Break'. 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 'Break'.
- See Also:
- Generated class or method.
-
caseBlock
Returns the result of interpreting the object as an instance of 'Block'. 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 'Block'.
- See Also:
- Generated class or method.
-
caseCatchBlock
Returns the result of interpreting the object as an instance of 'Catch Block'. 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 'Catch Block'.
- See Also:
- Generated class or method.
-
caseCondition
Returns the result of interpreting the object as an instance of 'Condition'. 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 'Condition'.
- See Also:
- Generated class or method.
-
caseContinue
Returns the result of interpreting the object as an instance of 'Continue'. 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 'Continue'.
- See Also:
- Generated class or method.
-
caseDefaultSwitchCase
Returns the result of interpreting the object as an instance of 'Default Switch 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 'Default Switch Case'.
- See Also:
- Generated class or method.
-
caseDoWhileLoop
Returns the result of interpreting the object as an instance of 'Do While Loop'. 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 'Do While Loop'.
- See Also:
- Generated class or method.
-
caseEmptyStatement
Returns the result of interpreting the object as an instance of 'Empty 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 'Empty Statement'.
- See Also:
- Generated class or method.
-
caseExpressionStatement
Returns the result of interpreting the object as an instance of 'Expression 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 'Expression Statement'.
- See Also:
- Generated class or method.
-
caseForLoop
Returns the result of interpreting the object as an instance of 'For Loop'. 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 'For Loop'.
- See Also:
- Generated class or method.
-
caseForEachLoop
Returns the result of interpreting the object as an instance of 'For Each Loop'. 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 'For Each Loop'.
- See Also:
- Generated class or method.
-
caseJump
Returns the result of interpreting the object as an instance of 'Jump'. 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 'Jump'.
- See Also:
- Generated class or method.
-
caseJumpLabel
Returns the result of interpreting the object as an instance of 'Jump Label'. 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 'Jump Label'.
- See Also:
- Generated class or method.
-
caseLocalVariableStatement
Returns the result of interpreting the object as an instance of 'Local Variable 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 'Local Variable Statement'.
- See Also:
- Generated class or method.
-
caseNormalSwitchCase
Returns the result of interpreting the object as an instance of 'Normal Switch 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 'Normal Switch Case'.
- See Also:
- Generated class or method.
-
caseReturn
Returns the result of interpreting the object as an instance of 'Return'. 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 'Return'.
- See Also:
- Generated class or method.
-
caseSwitch
Returns the result of interpreting the object as an instance of 'Switch'. 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 'Switch'.
- See Also:
- Generated class or method.
-
caseSynchronizedBlock
Returns the result of interpreting the object as an instance of 'Synchronized Block'. 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 'Synchronized Block'.
- See Also:
- Generated class or method.
-
caseThrow
Returns the result of interpreting the object as an instance of 'Throw'. 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 'Throw'.
- See Also:
- Generated class or method.
-
caseTryBlock
Returns the result of interpreting the object as an instance of 'Try Block'. 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 'Try Block'.
- See Also:
- Generated class or method.
-
caseWhileLoop
Returns the result of interpreting the object as an instance of 'While Loop'. 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 'While Loop'.
- See Also:
- Generated class or method.
-
caseBlockContainer
Returns the result of interpreting the object as an instance of 'Block 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 'Block Container'.
- See Also:
- Generated class or method.
-
caseYieldStatement
Returns the result of interpreting the object as an instance of 'Yield 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 'Yield Statement'.
- See Also:
- Generated class or method.
-
caseSwitchRule
Returns the result of interpreting the object as an instance of 'Switch Rule'. 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 'Switch Rule'.
- See Also:
- Generated class or method.
-
caseDefaultSwitchRule
Returns the result of interpreting the object as an instance of 'Default Switch Rule'. 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 'Default Switch Rule'.
- See Also:
- Generated class or method.
-
caseNormalSwitchRule
Returns the result of interpreting the object as an instance of 'Normal Switch Rule'. 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 'Normal Switch Rule'.
- See Also:
- Generated class or method.
-
caseCommentable
Returns the result of interpreting the object as an instance of 'Commentable'. 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 'Commentable'.
- See Also:
- Generated class or method.
-
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:
- Generated class or method.
-
caseMember
Returns the result of interpreting the object as an instance of 'Member'. 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 'Member'.
- See Also:
- Generated class or method.
-
caseModifiable
Returns the result of interpreting the object as an instance of 'Modifiable'. 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 'Modifiable'.
- See Also:
- Generated class or method.
-
caseLambdaBody
Returns the result of interpreting the object as an instance of 'Lambda Body'. 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 'Lambda Body'.
- See Also:
- Generated class or method.
-
caseArrayInitializationValue
Returns the result of interpreting the object as an instance of 'Array Initialization Value'. 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 'Array Initialization Value'.
- See Also:
- Generated class or method.
-
caseExpression
Returns the result of interpreting the object as an instance of 'Expression'. 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 'Expression'.
- See Also:
- Generated class or method.
-
caseAnnotationValue
Returns the result of interpreting the object as an instance of 'Annotation Value'. 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 Value'.
- See Also:
- Generated class or method.
-
caseAssignmentExpressionChild
Returns the result of interpreting the object as an instance of 'Assignment Expression Child'. 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 Expression Child'.
- See Also:
- Generated class or method.
-
caseConditionalExpressionChild
Returns the result of interpreting the object as an instance of 'Conditional Expression Child'. 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 'Conditional Expression Child'.
- See Also:
- Generated class or method.
-
caseConditionalOrExpressionChild
Returns the result of interpreting the object as an instance of 'Conditional Or Expression Child'. 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 'Conditional Or Expression Child'.
- See Also:
- Generated class or method.
-
caseConditionalAndExpressionChild
Returns the result of interpreting the object as an instance of 'Conditional And Expression Child'. 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 'Conditional And Expression Child'.
- See Also:
- Generated class or method.
-
caseInclusiveOrExpressionChild
Returns the result of interpreting the object as an instance of 'Inclusive Or Expression Child'. 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 'Inclusive Or Expression Child'.
- See Also:
- Generated class or method.
-
caseExclusiveOrExpressionChild
Returns the result of interpreting the object as an instance of 'Exclusive Or Expression Child'. 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 'Exclusive Or Expression Child'.
- See Also:
- Generated class or method.
-
caseAndExpressionChild
Returns the result of interpreting the object as an instance of 'And Expression Child'. 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 'And Expression Child'.
- See Also:
- Generated class or method.
-
caseEqualityExpressionChild
Returns the result of interpreting the object as an instance of 'Equality Expression Child'. 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 'Equality Expression Child'.
- See Also:
- Generated class or method.
-
caseInstanceOfExpressionChild
Returns the result of interpreting the object as an instance of 'Instance Of Expression Child'. 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 'Instance Of Expression Child'.
- See Also:
- Generated class or method.
-
caseRelationExpressionChild
Returns the result of interpreting the object as an instance of 'Relation Expression Child'. 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 Expression Child'.
- See Also:
- Generated class or method.
-
caseShiftExpressionChild
Returns the result of interpreting the object as an instance of 'Shift Expression Child'. 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 'Shift Expression Child'.
- See Also:
- Generated class or method.
-
caseAdditiveExpressionChild
Returns the result of interpreting the object as an instance of 'Additive Expression Child'. 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 'Additive Expression Child'.
- See Also:
- Generated class or method.
-
caseMultiplicativeExpressionChild
Returns the result of interpreting the object as an instance of 'Multiplicative Expression Child'. 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 'Multiplicative Expression Child'.
- See Also:
- Generated class or method.
-
caseUnaryExpressionChild
Returns the result of interpreting the object as an instance of 'Unary Expression Child'. 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 Expression Child'.
- See Also:
- Generated class or method.
-
caseUnaryModificationExpressionChild
Returns the result of interpreting the object as an instance of 'Unary Modification Expression Child'. 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 Modification Expression Child'.
- See Also:
- Generated class or method.
-
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 classSwitch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
- Generated class or method.
-