public class LineWrappingHandler extends Object
Constructor and Description |
---|
LineWrappingHandler(IndentationCheck aInstance,
DetailAST aFirstNode)
Sets values of class field, finds last node and calculates indentation level.
|
Modifier and Type | Method and Description |
---|---|
void |
checkIndentation()
Checks line wrapping into expressions and definitions.
|
DetailAST |
findLastNode(DetailAST aFirstNode)
Finds last node of AST subtree.
|
int |
getCurrentIndentation() |
DetailAST |
getFirstNode() |
int |
getIndentLevel() |
DetailAST |
getLastNode() |
public LineWrappingHandler(IndentationCheck aInstance, DetailAST aFirstNode)
aInstance
- instance of IndentationCheck.aFirstNode
- root node for current expression..public DetailAST findLastNode(DetailAST aFirstNode)
aFirstNode
- the first node of expression or definition.public int getCurrentIndentation()
public final DetailAST getFirstNode()
public final DetailAST getLastNode()
public final int getIndentLevel()
public void checkIndentation()
Copyright © 2001–2014. All rights reserved.