Class DoWhileHandler
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandler
com.puppycrawl.tools.checkstyle.checks.indentation.BlockParentHandler
com.puppycrawl.tools.checkstyle.checks.indentation.DoWhileHandler
Handler for do...while blocks.
- 
Constructor SummaryConstructorsConstructorDescriptionDoWhileHandler(IndentationCheck indentCheck, DetailAST ast, AbstractExpressionHandler parent) Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
- 
Method SummaryModifier and TypeMethodDescriptionvoidCheck the indentation of the expression we are handling.private voidCheck the indentation level of the while and conditional expression.protected DetailASTGet the child element that is not a list of statements.Methods inherited from class com.puppycrawl.tools.checkstyle.checks.indentation.BlockParentHandlercanChildrenBeNested, checkTopLevelToken, curlyIndent, getCheckedChildren, getChildrenExpectedIndent, getLeftCurly, getListChild, getRightCurly, getSuggestedChildIndent, getTopLevelAstMethods inherited from class com.puppycrawl.tools.checkstyle.checks.indentation.AbstractExpressionHandlercheckChildren, checkExpressionSubtree, checkLeftParen, checkModifiers, checkRightParen, checkWrappingIndentation, checkWrappingIndentation, expandedTabsColumnNo, findSubtreeAst, getBasicOffset, getBraceAdjustment, getFirstAstNode, getFirstLine, getFirstToken, getIndent, getIndentCheck, getIndentImpl, getLineStart, getLineStart, getMainAst, getParent, isOnStartOfLine, logError, logError, shouldIncreaseIndent
- 
Constructor Details- 
DoWhileHandlerpublic 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- 
checkWhileExprCheck the indentation level of the while and conditional expression.
- 
getNonListChildDescription copied from class:BlockParentHandlerGet the child element that is not a list of statements.- Overrides:
- getNonListChildin class- BlockParentHandler
- Returns:
- the non-list child element
 
- 
checkIndentationDescription copied from class:AbstractExpressionHandlerCheck the indentation of the expression we are handling.- Overrides:
- checkIndentationin class- BlockParentHandler
 
 
-