public final class IllegalCatchCheck extends AbstractIllegalCheck
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 |
---|
IllegalCatchCheck()
Creates new instance of the check.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
List<DetailAST> |
getAllExceptionTypes(DetailAST parentToken)
Finds all exception types in current catch.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
visitToken(DetailAST detailAST)
Called to process a token.
|
isIllegalClassName, setIllegalClassNames
beginTree, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, 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 int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public int[] getRequiredTokens()
Check
getRequiredTokens
in class Check
TokenTypes
public int[] getAcceptableTokens()
Check
getAcceptableTokens
in class Check
TokenTypes
public void visitToken(DetailAST detailAST)
Check
visitToken
in class Check
detailAST
- the token to processpublic List<DetailAST> getAllExceptionTypes(DetailAST parentToken)
parentToken
- - parent node for types (TYPE or BOR)Copyright © 2001–2015. All rights reserved.