public class LineWrappingHandler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LineWrappingHandler.LineWrappingOptions
Enum to be used for test if first line's indentation should be checked or not.
|
Constructor and Description |
---|
LineWrappingHandler(IndentationCheck instance)
Sets values of class field, finds last node and calculates indentation level.
|
Modifier and Type | Method and Description |
---|---|
void |
checkIndentation(DetailAST firstNode,
DetailAST lastNode)
Checks line wrapping into expressions and definitions using property
'lineWrappingIndentation'.
|
void |
checkIndentation(DetailAST firstNode,
DetailAST lastNode,
int indentLevel,
int startIndent,
LineWrappingHandler.LineWrappingOptions ignoreFirstLine)
Checks line wrapping into expressions and definitions.
|
public LineWrappingHandler(IndentationCheck instance)
instance
- instance of IndentationCheck.public void checkIndentation(DetailAST firstNode, DetailAST lastNode)
firstNode
- First node to start examining.lastNode
- Last node to examine inclusively.public void checkIndentation(DetailAST firstNode, DetailAST lastNode, int indentLevel, int startIndent, LineWrappingHandler.LineWrappingOptions ignoreFirstLine)
firstNode
- First node to start examining.lastNode
- Last node to examine inclusively.indentLevel
- Indentation all wrapped lines should use.startIndent
- Indentation first line before wrapped lines used.ignoreFirstLine
- Test if first line's indentation should be checked or not.Copyright © 2001–2018. All rights reserved.