public class LineWrappingHandler extends Object
Constructor and Description |
---|
LineWrappingHandler(IndentationCheck instance,
DetailAST firstNode,
DetailAST lastNode)
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.
|
protected int |
getCurrentIndentation() |
protected DetailAST |
getFirstNode()
Getter for firstNode field
|
protected int |
getIndentLevel()
Getter for indentLevel field
|
protected DetailAST |
getLastNode()
Getter for lastNode field
|
public LineWrappingHandler(IndentationCheck instance, DetailAST firstNode, DetailAST lastNode)
instance
- instance of IndentationCheck.firstNode
- root node for current expression.lastNode
- last node for current expression.protected int getCurrentIndentation()
protected final DetailAST getFirstNode()
protected final DetailAST getLastNode()
protected final int getIndentLevel()
public void checkIndentation()
Copyright © 2001–2015. All rights reserved.