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. UseAbstractCheckinstead.Support for checks that look for usage of illegal types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>illegalClassNamesDeprecated.Illegal class names.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIllegalCheck(java.lang.String... initialNames)Deprecated.Constructs an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanisIllegalClassName(java.lang.String ident)Deprecated.Checks if given class is illegal.voidsetIllegalClassNames(java.lang.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
-
-
-
-
Method Detail
-
isIllegalClassName
protected final boolean isIllegalClassName(java.lang.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(java.lang.String... classNames)
Deprecated.Set the list of illegal classes.- Parameters:
classNames- array of illegal exception classes
-
-