public class IfHandler extends BlockParentHandler
コンストラクタと説明 |
---|
IfHandler(IndentationCheck aIndentCheck,
DetailAST aAst,
ExpressionHandler aParent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
checkIndentation()
Check the indentation of the expression we are handling.
|
protected void |
checkToplevelToken()
Check the indent of the top level token.
|
protected IndentLevel |
getLevelImpl()
Compute the indentation amount for this handler.
|
IndentLevel |
suggestedChildLevel(ExpressionHandler aChild)
Indentation level suggested for a child element.
|
checkLCurly, checkRCurly, childrenMayNest, getCheckedChildren, getChildrenExpectedLevel, getLCurly, getListChild, getLParen, getNonlistChild, getRCurly, getRParen, getToplevelAST, hasCurlys, rcurlyMustStart, toplevelMustStartLine
checkChildren, checkExpressionSubtree, checkLinesIndent, checkLParen, checkModifiers, checkRParen, expandedTabsColumnNo, findSubtreeLines, getBasicOffset, getBraceAdjustement, getFirstLine, getIndentCheck, getLevel, getLineStart, getLineStart, getMainAst, getParent, logError, logError, shouldIncreaseIndent, startsLine
public IfHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
aIndentCheck
- the indentation checkaAst
- the abstract syntax treeaParent
- the parent handlerpublic IndentLevel suggestedChildLevel(ExpressionHandler aChild)
ExpressionHandler
suggestedChildLevel
クラス内 BlockParentHandler
aChild
- child AST (so suggestion level can differ based on child
type)protected IndentLevel getLevelImpl()
ExpressionHandler
getLevelImpl
クラス内 ExpressionHandler
protected void checkToplevelToken()
BlockParentHandler
checkToplevelToken
クラス内 BlockParentHandler
public void checkIndentation()
ExpressionHandler
checkIndentation
クラス内 BlockParentHandler
Copyright © 2001-2013. All Rights Reserved.