Package jamopp.printer
Class StatementsPrinterSwitch
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.emftext.language.java.statements.util.StatementsSwitch<Boolean>
jamopp.printer.StatementsPrinterSwitch
-
Field Summary
Fields inherited from class org.emftext.language.java.statements.util.StatementsSwitch
modelPackage
-
Method Summary
Modifier and TypeMethodDescriptioncaseAssert
(Assert element) Returns the result of interpreting the object as an instance of 'Assert'.Returns the result of interpreting the object as an instance of 'Block'.Returns the result of interpreting the object as an instance of 'Break'.caseCatchBlock
(CatchBlock element) Returns the result of interpreting the object as an instance of 'Catch Block'.caseCondition
(Condition element) Returns the result of interpreting the object as an instance of 'Condition'.caseContinue
(Continue element) Returns the result of interpreting the object as an instance of 'Continue'.caseDefaultSwitchCase
(DefaultSwitchCase element) Returns the result of interpreting the object as an instance of 'Default Switch Case'.caseDefaultSwitchRule
(DefaultSwitchRule element) Returns the result of interpreting the object as an instance of 'Default Switch Rule'.caseDoWhileLoop
(DoWhileLoop element) Returns the result of interpreting the object as an instance of 'Do While Loop'.caseEmptyStatement
(EmptyStatement element) Returns the result of interpreting the object as an instance of 'Empty Statement'.Returns the result of interpreting the object as an instance of 'Expression Statement'.caseForEachLoop
(ForEachLoop element) Returns the result of interpreting the object as an instance of 'For Each Loop'.caseForLoop
(ForLoop element) Returns the result of interpreting the object as an instance of 'For Loop'.caseJumpLabel
(JumpLabel element) Returns the result of interpreting the object as an instance of 'Jump Label'.Returns the result of interpreting the object as an instance of 'Local Variable Statement'.caseNormalSwitchCase
(NormalSwitchCase element) Returns the result of interpreting the object as an instance of 'Normal Switch Case'.caseNormalSwitchRule
(NormalSwitchRule element) Returns the result of interpreting the object as an instance of 'Normal Switch Rule'.caseReturn
(Return element) Returns the result of interpreting the object as an instance of 'Return'.caseSwitch
(Switch element) Returns the result of interpreting the object as an instance of 'Switch'.caseSynchronizedBlock
(SynchronizedBlock element) 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 element) Returns the result of interpreting the object as an instance of 'Try Block'.caseWhileLoop
(WhileLoop element) Returns the result of interpreting the object as an instance of 'While Loop'.caseYieldStatement
(YieldStatement element) Returns the result of interpreting the object as an instance of 'Yield Statement'.Methods inherited from class org.emftext.language.java.statements.util.StatementsSwitch
caseAdditiveExpressionChild, caseAndExpressionChild, caseAnnotationValue, caseArrayInitializationValue, caseAssignmentExpressionChild, caseBlockContainer, caseCommentable, caseConditional, caseConditionalAndExpressionChild, caseConditionalExpressionChild, caseConditionalOrExpressionChild, caseEqualityExpressionChild, caseExclusiveOrExpressionChild, caseExpression, caseForLoopInitializer, caseInclusiveOrExpressionChild, caseInstanceOfExpressionChild, caseJump, caseLambdaBody, caseMember, caseModifiable, caseMultiplicativeExpressionChild, caseNamedElement, caseRelationExpressionChild, caseShiftExpressionChild, caseStatement, caseStatementContainer, caseStatementListContainer, caseSwitchCase, caseSwitchRule, caseUnaryExpressionChild, caseUnaryModificationExpressionChild, defaultCase, doSwitch, isSwitchFor
-
Method Details
-
caseAssert
Description copied from class:StatementsSwitch
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.- Overrides:
caseAssert
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Assert'.
- See Also:
-
caseBreak
Description copied from class:StatementsSwitch
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.- Overrides:
caseBreak
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Break'.
- See Also:
-
caseCatchBlock
Description copied from class:StatementsSwitch
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.- Overrides:
caseCatchBlock
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Catch Block'.
- See Also:
-
caseContinue
Description copied from class:StatementsSwitch
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.- Overrides:
caseContinue
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Continue'.
- See Also:
-
caseDoWhileLoop
Description copied from class:StatementsSwitch
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.- Overrides:
caseDoWhileLoop
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Do While Loop'.
- See Also:
-
caseEmptyStatement
Description copied from class:StatementsSwitch
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.- Overrides:
caseEmptyStatement
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Empty Statement'.
- See Also:
-
caseCondition
Description copied from class:StatementsSwitch
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.- Overrides:
caseCondition
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Condition'.
- See Also:
-
caseExpressionStatement
Description copied from class:StatementsSwitch
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.- Overrides:
caseExpressionStatement
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Expression Statement'.
- See Also:
-
caseForLoop
Description copied from class:StatementsSwitch
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.- Overrides:
caseForLoop
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'For Loop'.
- See Also:
-
caseForEachLoop
Description copied from class:StatementsSwitch
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.- Overrides:
caseForEachLoop
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'For Each Loop'.
- See Also:
-
caseJumpLabel
Description copied from class:StatementsSwitch
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.- Overrides:
caseJumpLabel
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Jump Label'.
- See Also:
-
caseLocalVariableStatement
Description copied from class:StatementsSwitch
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.- Overrides:
caseLocalVariableStatement
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Local Variable Statement'.
- See Also:
-
caseBlock
Description copied from class:StatementsSwitch
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.- Overrides:
caseBlock
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Block'.
- See Also:
-
caseReturn
Description copied from class:StatementsSwitch
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.- Overrides:
caseReturn
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Return'.
- See Also:
-
caseSwitch
Description copied from class:StatementsSwitch
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.- Overrides:
caseSwitch
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Switch'.
- See Also:
-
caseDefaultSwitchCase
Description copied from class:StatementsSwitch
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.- Overrides:
caseDefaultSwitchCase
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Default Switch Case'.
- See Also:
-
caseNormalSwitchCase
Description copied from class:StatementsSwitch
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.- Overrides:
caseNormalSwitchCase
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Normal Switch Case'.
- See Also:
-
caseDefaultSwitchRule
Description copied from class:StatementsSwitch
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.- Overrides:
caseDefaultSwitchRule
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Default Switch Rule'.
- See Also:
-
caseNormalSwitchRule
Description copied from class:StatementsSwitch
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.- Overrides:
caseNormalSwitchRule
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Normal Switch Rule'.
- See Also:
-
caseSynchronizedBlock
Description copied from class:StatementsSwitch
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.- Overrides:
caseSynchronizedBlock
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Synchronized Block'.
- See Also:
-
caseThrow
Description copied from class:StatementsSwitch
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.- Overrides:
caseThrow
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Throw'.
- See Also:
-
caseTryBlock
Description copied from class:StatementsSwitch
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.- Overrides:
caseTryBlock
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Try Block'.
- See Also:
-
caseYieldStatement
Description copied from class:StatementsSwitch
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.- Overrides:
caseYieldStatement
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Yield Statement'.
- See Also:
-
caseWhileLoop
Description copied from class:StatementsSwitch
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.- Overrides:
caseWhileLoop
in classStatementsSwitch<Boolean>
- Parameters:
element
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'While Loop'.
- See Also:
-