com.puppycrawl.tools.checkstyle.checks.coding

Class IllegalThrowsCheck

Implemented Interfaces:
Configurable, Contextualizable

public final class IllegalThrowsCheck
extends AbstractIllegalCheck

Throwing java.lang.Error or java.lang.RuntimeException is almost never acceptable.
Author:
Oliver Burn

Constructor Summary

IllegalThrowsCheck()
Creates new instance of the check.

Method Summary

int[]
getDefaultTokens()
int[]
getRequiredTokens()
void
visitToken(DetailAST aDetailAST)

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.AbstractIllegalCheck

isIllegalClassName, setIllegalClassNames

Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check

beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Constructor Details

IllegalThrowsCheck

public IllegalThrowsCheck()
Creates new instance of the check.

Method Details

getDefaultTokens

public int[] getDefaultTokens()
Overrides:
getDefaultTokens in interface Check

getRequiredTokens

public int[] getRequiredTokens()
Overrides:
getRequiredTokens in interface Check

visitToken

public void visitToken(DetailAST aDetailAST)
Overrides:
visitToken in interface Check