public final class NestedTryDepthCheck 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 |
---|
NestedTryDepthCheck()
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 literalTry)
Called after all the child nodes have been process.
|
void |
visitToken(DetailAST literalTry)
Called to process a token.
|
beginTree, getRequiredTokens, nestIn, nestOut, setMax
destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public static final String MSG_KEY
public NestedTryDepthCheck()
public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public int[] getAcceptableTokens()
Check
getAcceptableTokens
in class Check
TokenTypes
public void visitToken(DetailAST literalTry)
Check
visitToken
in class Check
literalTry
- the token to processpublic void leaveToken(DetailAST literalTry)
Check
leaveToken
in class Check
literalTry
- the token leavingCopyright © 2001–2015. All rights reserved.