com.puppycrawl.tools.checkstyle.checks.coding
public abstract class AbstractNestedDepthCheck extends Check
| Constructor Summary | |
|---|---|
| AbstractNestedDepthCheck(int aMax)
Creates new instance of checks. | |
| Method Summary | |
|---|---|
| void | beginTree(DetailAST aRootAST) |
| int | getMax()
Getter for maximum allowed nesting depth. |
| int[] | getRequiredTokens() |
| protected void | nestIn(DetailAST aAST, String aMessageId)
Increasing current nesting depth. |
| protected void | nestOut() Decreasing current nesting depth |
| void | setMax(int aMax)
Setter for maximum allowed nesting depth. |
Parameters: aMax default allowed nesting depth.
Returns: maximum allowed nesting depth.
Parameters: aAST note which increases nesting. aMessageId message id for logging error.
Parameters: aMax maximum allowed nesting depth.