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 BooleancaseAssert(Assert element)Returns the result of interpreting the object as an instance of 'Assert'.BooleancaseBlock(Block element)Returns the result of interpreting the object as an instance of 'Block'.BooleancaseBreak(Break element)Returns the result of interpreting the object as an instance of 'Break'.BooleancaseCatchBlock(CatchBlock element)Returns the result of interpreting the object as an instance of 'Catch Block'.BooleancaseCondition(Condition element)Returns the result of interpreting the object as an instance of 'Condition'.BooleancaseContinue(Continue element)Returns the result of interpreting the object as an instance of 'Continue'.BooleancaseDefaultSwitchCase(DefaultSwitchCase element)Returns the result of interpreting the object as an instance of 'Default Switch Case'.BooleancaseDefaultSwitchRule(DefaultSwitchRule element)Returns the result of interpreting the object as an instance of 'Default Switch Rule'.BooleancaseDoWhileLoop(DoWhileLoop element)Returns the result of interpreting the object as an instance of 'Do While Loop'.BooleancaseEmptyStatement(EmptyStatement element)Returns the result of interpreting the object as an instance of 'Empty Statement'.BooleancaseExpressionStatement(ExpressionStatement element)Returns the result of interpreting the object as an instance of 'Expression Statement'.BooleancaseForEachLoop(ForEachLoop element)Returns the result of interpreting the object as an instance of 'For Each Loop'.BooleancaseForLoop(ForLoop element)Returns the result of interpreting the object as an instance of 'For Loop'.BooleancaseJumpLabel(JumpLabel element)Returns the result of interpreting the object as an instance of 'Jump Label'.BooleancaseLocalVariableStatement(LocalVariableStatement element)Returns the result of interpreting the object as an instance of 'Local Variable Statement'.BooleancaseNormalSwitchCase(NormalSwitchCase element)Returns the result of interpreting the object as an instance of 'Normal Switch Case'.BooleancaseNormalSwitchRule(NormalSwitchRule element)Returns the result of interpreting the object as an instance of 'Normal Switch Rule'.BooleancaseReturn(Return element)Returns the result of interpreting the object as an instance of 'Return'.BooleancaseSwitch(Switch element)Returns the result of interpreting the object as an instance of 'Switch'.BooleancaseSynchronizedBlock(SynchronizedBlock element)Returns the result of interpreting the object as an instance of 'Synchronized Block'.BooleancaseThrow(Throw element)Returns the result of interpreting the object as an instance of 'Throw'.BooleancaseTryBlock(TryBlock element)Returns the result of interpreting the object as an instance of 'Try Block'.BooleancaseWhileLoop(WhileLoop element)Returns the result of interpreting the object as an instance of 'While Loop'.BooleancaseYieldStatement(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:StatementsSwitchReturns 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:
caseAssertin 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:StatementsSwitchReturns 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:
caseBreakin 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:StatementsSwitchReturns 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:
caseCatchBlockin 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:StatementsSwitchReturns 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:
caseContinuein 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:StatementsSwitchReturns 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:
caseDoWhileLoopin 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:StatementsSwitchReturns 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:
caseEmptyStatementin 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:StatementsSwitchReturns 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:
caseConditionin 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:StatementsSwitchReturns 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:
caseExpressionStatementin 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:StatementsSwitchReturns 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:
caseForLoopin 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:StatementsSwitchReturns 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:
caseForEachLoopin 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:StatementsSwitchReturns 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:
caseJumpLabelin 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:StatementsSwitchReturns 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:
caseLocalVariableStatementin 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:StatementsSwitchReturns 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:
caseBlockin 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:StatementsSwitchReturns 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:
caseReturnin 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:StatementsSwitchReturns 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:
caseSwitchin 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:StatementsSwitchReturns 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:
caseDefaultSwitchCasein 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:StatementsSwitchReturns 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:
caseNormalSwitchCasein 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:StatementsSwitchReturns 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:
caseDefaultSwitchRulein 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:StatementsSwitchReturns 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:
caseNormalSwitchRulein 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:StatementsSwitchReturns 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:
caseSynchronizedBlockin 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:StatementsSwitchReturns 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:
caseThrowin 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:StatementsSwitchReturns 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:
caseTryBlockin 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:StatementsSwitchReturns 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:
caseYieldStatementin 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:StatementsSwitchReturns 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:
caseWhileLoopin 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)
-
-