com.puppycrawl.tools.checkstyle.checks.j2ee
Class AbstractBeanCheck
- Configurable, Contextualizable
public abstract class AbstractBeanCheck
Abstract class for checks that verify Bean implementation.
Checks that a Bean implementation satisfies Bean
requirements:
- The class is defined as
public. - The class cannot be defined as
abstract or
final. - It contains a
public constructor with no parameters. - It must not define the
finalize method.
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity |
checkBean
protected void checkBean(DetailAST aAST,
String aBeanType,
boolean aAllowAbstract) Checks a bean class requirements.
- The class is defined as
public. - It contains a
public constructor with no parameters. - It must not define the
finalize method.
aAST - CLASS_DEF node for class definition to check.aBeanType - bean type for error messages.aAllowAbstract - if false, the class cannot be abstract.