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
-
public class StatementsPrinterSwitch extends StatementsSwitch<Boolean>
-
-
Field Summary
-
Fields inherited from class org.emftext.language.java.statements.util.StatementsSwitch
modelPackage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
caseAssert(Assert element)
Returns the result of interpreting the object as an instance of 'Assert'.Boolean
caseBlock(Block element)
Returns the result of interpreting the object as an instance of 'Block'.Boolean
caseBreak(Break element)
Returns the result of interpreting the object as an instance of 'Break'.Boolean
caseCatchBlock(CatchBlock element)
Returns the result of interpreting the object as an instance of 'Catch Block'.Boolean
caseCondition(Condition element)
Returns the result of interpreting the object as an instance of 'Condition'.Boolean
caseContinue(Continue element)
Returns the result of interpreting the object as an instance of 'Continue'.Boolean
caseDefaultSwitchCase(DefaultSwitchCase element)
Returns the result of interpreting the object as an instance of 'Default Switch Case'.Boolean
caseDefaultSwitchRule(DefaultSwitchRule element)
Returns the result of interpreting the object as an instance of 'Default Switch Rule'.Boolean
caseDoWhileLoop(DoWhileLoop element)
Returns the result of interpreting the object as an instance of 'Do While Loop'.Boolean
caseEmptyStatement(EmptyStatement element)
Returns the result of interpreting the object as an instance of 'Empty Statement'.Boolean
caseExpressionStatement(ExpressionStatement element)
Returns the result of interpreting the object as an instance of 'Expression Statement'.Boolean
caseForEachLoop(ForEachLoop element)
Returns the result of interpreting the object as an instance of 'For Each Loop'.Boolean
caseForLoop(ForLoop element)
Returns the result of interpreting the object as an instance of 'For Loop'.Boolean
caseJumpLabel(JumpLabel element)
Returns the result of interpreting the object as an instance of 'Jump Label'.Boolean
caseLocalVariableStatement(LocalVariableStatement element)
Returns the result of interpreting the object as an instance of 'Local Variable Statement'.Boolean
caseNormalSwitchCase(NormalSwitchCase element)
Returns the result of interpreting the object as an instance of 'Normal Switch Case'.Boolean
caseNormalSwitchRule(NormalSwitchRule element)
Returns the result of interpreting the object as an instance of 'Normal Switch Rule'.Boolean
caseReturn(Return element)
Returns the result of interpreting the object as an instance of 'Return'.Boolean
caseSwitch(Switch element)
Returns the result of interpreting the object as an instance of 'Switch'.Boolean
caseSynchronizedBlock(SynchronizedBlock element)
Returns the result of interpreting the object as an instance of 'Synchronized Block'.Boolean
caseThrow(Throw element)
Returns the result of interpreting the object as an instance of 'Throw'.Boolean
caseTryBlock(TryBlock element)
Returns the result of interpreting the object as an instance of 'Try Block'.Boolean
caseWhileLoop(WhileLoop element)
Returns the result of interpreting the object as an instance of 'While Loop'.Boolean
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 Detail
-
caseAssert
public Boolean caseAssert(Assert element)
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:
doSwitch(EObject)
-
caseBreak
public Boolean caseBreak(Break element)
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:
doSwitch(EObject)
-
caseCatchBlock
public Boolean caseCatchBlock(CatchBlock element)
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:
doSwitch(EObject)
-
caseContinue
public Boolean caseContinue(Continue element)
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:
doSwitch(EObject)
-
caseDoWhileLoop
public Boolean caseDoWhileLoop(DoWhileLoop element)
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:
doSwitch(EObject)
-
caseEmptyStatement
public Boolean caseEmptyStatement(EmptyStatement element)
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:
doSwitch(EObject)
-
caseCondition
public Boolean caseCondition(Condition element)
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:
doSwitch(EObject)
-
caseExpressionStatement
public Boolean caseExpressionStatement(ExpressionStatement element)
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:
doSwitch(EObject)
-
caseForLoop
public Boolean caseForLoop(ForLoop element)
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:
doSwitch(EObject)
-
caseForEachLoop
public Boolean caseForEachLoop(ForEachLoop element)
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:
doSwitch(EObject)
-
caseJumpLabel
public Boolean caseJumpLabel(JumpLabel element)
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:
doSwitch(EObject)
-
caseLocalVariableStatement
public Boolean caseLocalVariableStatement(LocalVariableStatement element)
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:
doSwitch(EObject)
-
caseBlock
public Boolean caseBlock(Block element)
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:
doSwitch(EObject)
-
caseReturn
public Boolean caseReturn(Return element)
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:
doSwitch(EObject)
-
caseSwitch
public Boolean caseSwitch(Switch element)
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:
doSwitch(EObject)
-
caseDefaultSwitchCase
public Boolean caseDefaultSwitchCase(DefaultSwitchCase element)
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:
doSwitch(EObject)
-
caseNormalSwitchCase
public Boolean caseNormalSwitchCase(NormalSwitchCase element)
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:
doSwitch(EObject)
-
caseDefaultSwitchRule
public Boolean caseDefaultSwitchRule(DefaultSwitchRule element)
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:
doSwitch(EObject)
-
caseNormalSwitchRule
public Boolean caseNormalSwitchRule(NormalSwitchRule element)
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:
doSwitch(EObject)
-
caseSynchronizedBlock
public Boolean caseSynchronizedBlock(SynchronizedBlock element)
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:
doSwitch(EObject)
-
caseThrow
public Boolean caseThrow(Throw element)
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:
doSwitch(EObject)
-
caseTryBlock
public Boolean caseTryBlock(TryBlock element)
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:
doSwitch(EObject)
-
caseYieldStatement
public Boolean caseYieldStatement(YieldStatement element)
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:
doSwitch(EObject)
-
caseWhileLoop
public Boolean caseWhileLoop(WhileLoop element)
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:
doSwitch(EObject)
-
-