Class AbstractIllegalCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractCheck
-
- com.puppycrawl.tools.checkstyle.checks.coding.AbstractIllegalCheck
-
- All Implemented Interfaces:
Configurable
,Contextualizable
@Deprecated public abstract class AbstractIllegalCheck extends AbstractCheck
Deprecated.Checkstyle will not support abstract checks anymore. UseAbstractCheck
instead.Support for checks that look for usage of illegal types.- Author:
- Oliver Burn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractIllegalCheck(String... initialNames)
Deprecated.Constructs an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
isIllegalClassName(String ident)
Deprecated.Checks if given class is illegal.void
setIllegalClassNames(String... classNames)
Deprecated.Set the list of illegal classes.-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractCheck
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
-
-
-
-
Constructor Detail
-
AbstractIllegalCheck
protected AbstractIllegalCheck(String... initialNames)
Deprecated.Constructs an object.- Parameters:
initialNames
- the initial class names to treat as illegal
-
-
Method Detail
-
isIllegalClassName
protected final boolean isIllegalClassName(String ident)
Deprecated.Checks if given class is illegal.- Parameters:
ident
- ident to check.- Returns:
- true if given ident is illegal.
-
setIllegalClassNames
public final void setIllegalClassNames(String... classNames)
Deprecated.Set the list of illegal classes.- Parameters:
classNames
- array of illegal exception classes
-
-