com.puppycrawl.tools.checkstyle.checks.design
public final class InterfaceIsTypeCheck extends Check
An interface should describe a type, it is therefore inappropriate to define an interface that does not contain any methods but only constants.
The check can be configured to also disallow marker interfaces like
java.io.Serializable, that do not contain methods or
constants at all.
Version: $Revision: 1.7 $
| Method Summary | |
|---|---|
| int[] | getDefaultTokens() |
| int[] | getRequiredTokens() |
| void | setAllowMarkerInterfaces(boolean aFlag)
Controls whether marker interfaces like Serializable are allowed. |
| void | visitToken(DetailAST aAST) |
Parameters: aFlag whether to allow marker interfaces or not