public class ElseHandler extends BlockParentHandler
Constructor and Description |
---|
ElseHandler(IndentationCheck indentCheck,
DetailAST ast,
AbstractExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkTopLevelToken()
Check the indent of the top level token.
|
protected DetailAST |
getNonListChild()
Get the child element that is not a list of statements.
|
canChildrenBeNested, checkIndentation, curlyIndent, getCheckedChildren, getChildrenExpectedIndent, getLeftCurly, getListChild, getRightCurly, getSuggestedChildIndent, getTopLevelAst, shouldTopLevelStartLine
areOnSameLine, checkChildren, checkExpressionSubtree, checkLeftParen, checkModifiers, checkRightParen, checkWrappingIndentation, checkWrappingIndentation, expandedTabsColumnNo, findSubtreeLines, getBasicOffset, getBraceAdjustment, getFirstLine, getFirstToken, getIndent, getIndentCheck, getIndentImpl, getLineStart, getLineStart, getMainAst, getParent, isOnStartOfLine, logError, logError, shouldIncreaseIndent
public ElseHandler(IndentationCheck indentCheck, DetailAST ast, AbstractExpressionHandler parent)
indentCheck
- the indentation checkast
- the abstract syntax treeparent
- the parent handlerprotected void checkTopLevelToken()
BlockParentHandler
checkTopLevelToken
in class BlockParentHandler
protected DetailAST getNonListChild()
BlockParentHandler
getNonListChild
in class BlockParentHandler
Copyright © 2001–2018. All rights reserved.