public class ElseHandler extends BlockParentHandler
Constructor and Description |
---|
ElseHandler(IndentationCheck aIndentCheck,
DetailAST aAst,
ExpressionHandler aParent)
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.
|
checkIndentation, checkLCurly, checkRCurly, childrenMayNest, curlyLevel, getCheckedChildren, getChildrenExpectedLevel, getLCurly, getListChild, getLParen, getRCurly, getRParen, getToplevelAST, hasCurlys, hasLabelBefore, rcurlyMustStart, suggestedChildLevel, toplevelMustStartLine
checkChildren, checkExpressionSubtree, checkLinesIndent, checkLParen, checkModifiers, checkRParen, expandedTabsColumnNo, findSubtreeLines, getBasicOffset, getBraceAdjustement, getFirstLine, getIndentCheck, getLevel, getLevelImpl, getLineStart, getLineStart, getMainAst, getParent, logError, logError, shouldIncreaseIndent, startsLine
public ElseHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
aIndentCheck
- the indentation checkaAst
- the abstract syntax treeaParent
- the parent handlerprotected void checkToplevelToken()
BlockParentHandler
checkToplevelToken
in class BlockParentHandler
protected DetailAST getNonlistChild()
BlockParentHandler
getNonlistChild
in class BlockParentHandler
Copyright © 2001–2020. All rights reserved.