public class DoWhileHandler extends BlockParentHandler
Handler for do...while blocks.
  • Constructor Details

    • DoWhileHandler

      public DoWhileHandler(IndentationCheck indentCheck, DetailAST ast, AbstractExpressionHandler parent)
      Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
      Parameters:
      indentCheck - the indentation check
      ast - the abstract syntax tree
      parent - the parent handler
  • Method Details

    • checkWhileExpr

      private void checkWhileExpr()
      Check the indentation level of the while and conditional expression.
    • getNonListChild

      protected DetailAST getNonListChild()
      Description copied from class: BlockParentHandler
      Get the child element that is not a list of statements.
      Overrides:
      getNonListChild in class BlockParentHandler
      Returns:
      the non-list child element
    • checkIndentation

      public void checkIndentation()
      Description copied from class: AbstractExpressionHandler
      Check the indentation of the expression we are handling.
      Overrides:
      checkIndentation in class BlockParentHandler