Class StatementsPrinterSwitch

    • 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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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 class StatementsSwitch<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)