public final class NestedIfDepthCheck extends AbstractNestedDepthCheck
| Modifier and Type | Field and Description |
|---|---|
static String |
MSG_KEY
A key is pointing to the warning message text in "messages.properties"
file.
|
| Constructor and Description |
|---|
NestedIfDepthCheck()
Creates new check instance with default allowed nesting depth.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
void |
leaveToken(DetailAST literalIf)
Called after all the child nodes have been process.
|
void |
visitToken(DetailAST literalIf)
Called to process a token.
|
beginTree, getRequiredTokens, nestIn, nestOut, setMaxdestroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic static final String MSG_KEY
public NestedIfDepthCheck()
public int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic int[] getAcceptableTokens()
CheckgetAcceptableTokens in class CheckTokenTypespublic void visitToken(DetailAST literalIf)
CheckvisitToken in class CheckliteralIf - the token to processpublic void leaveToken(DetailAST literalIf)
CheckleaveToken in class CheckliteralIf - the token leavingCopyright © 2001-2015. All Rights Reserved.