com.puppycrawl.tools.checkstyle.checks.coding

Class AbstractIllegalCheck

public abstract class AbstractIllegalCheck extends Check

Support for checks that look for usage of illegal types.

Author: Oliver Burn

Constructor Summary
protected AbstractIllegalCheck(String[] aInitialNames)
Constructs an object.
Method Summary
protected booleanisIllegalClassName(String aIdent)
Checks if given class is illegal.
voidsetIllegalClassNames(String[] aClassNames)
Set the list of illegal classes.

Constructor Detail

AbstractIllegalCheck

protected AbstractIllegalCheck(String[] aInitialNames)
Constructs an object.

Parameters: aInitialNames the initial class names to treat as illegal

Method Detail

isIllegalClassName

protected final boolean isIllegalClassName(String aIdent)
Checks if given class is illegal.

Parameters: aIdent ident to check.

Returns: true if given ident is illegal.

setIllegalClassNames

public final void setIllegalClassNames(String[] aClassNames)
Set the list of illegal classes.

Parameters: aClassNames array of illegal exception classes