Class StatementsPrinterSwitch


public class StatementsPrinterSwitch extends StatementsSwitch<Boolean>
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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: