AbstractCheck
instead.@Deprecated public abstract class AbstractNestedDepthCheck extends AbstractCheck
Modifier | Constructor and Description |
---|---|
protected |
AbstractNestedDepthCheck(int max)
Deprecated.
Creates new instance of checks.
|
Modifier and Type | Method and Description |
---|---|
void |
beginTree(DetailAST rootAST)
Deprecated.
Called before the starting to process a tree.
|
int[] |
getRequiredTokens()
Deprecated.
The tokens that this check must be registered for.
|
protected void |
nestIn(DetailAST ast,
String messageId)
Deprecated.
Increasing current nesting depth.
|
protected void |
nestOut()
Deprecated.
Decreasing current nesting depth.
|
void |
setMax(int max)
Deprecated.
Setter for maximum allowed nesting depth.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
protected AbstractNestedDepthCheck(int max)
max
- default allowed nesting depth.public final int[] getRequiredTokens()
AbstractCheck
getRequiredTokens
in class AbstractCheck
TokenTypes
public void beginTree(DetailAST rootAST)
AbstractCheck
beginTree
in class AbstractCheck
rootAST
- the root of the treepublic final void setMax(int max)
max
- maximum allowed nesting depth.protected final void nestIn(DetailAST ast, String messageId)
ast
- note which increases nesting.messageId
- message id for logging error.protected final void nestOut()
Copyright © 2001-2017. All Rights Reserved.