public class LineWrappingHandler extends Object
| Constructor and Description |
|---|
LineWrappingHandler(IndentationCheck instance,
DetailAST firstNode)
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 firstNode)
Finds last node of AST subtree.
|
int |
getCurrentIndentation() |
DetailAST |
getFirstNode() |
int |
getIndentLevel() |
DetailAST |
getLastNode() |
public LineWrappingHandler(IndentationCheck instance, DetailAST firstNode)
instance - instance of IndentationCheck.firstNode - root node for current expression..public DetailAST findLastNode(DetailAST firstNode)
firstNode - 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–2015. All rights reserved.