public final class IllegalCatchCheck extends AbstractIllegalCheck
| Constructor and Description |
|---|
IllegalCatchCheck()
Creates new instance of the check.
|
| Modifier and Type | Method and Description |
|---|---|
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, setIllegalClassNamesbeginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic IllegalCatchCheck()
public int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic int[] getRequiredTokens()
CheckgetRequiredTokens in class CheckTokenTypespublic void visitToken(DetailAST detailAST)
CheckvisitToken in class CheckdetailAST - the token to processpublic List<DetailAST> getAllExceptionTypes(DetailAST parentToken)
parentToken - - parent node for types (TYPE or BOR)Copyright © 2001–2015. All rights reserved.