com.puppycrawl.tools.checkstyle.checks.j2ee

Class BeanMethodChecker

Known Direct Subclasses:
EntityBeanMethodChecker, MessageBeanMethodChecker, SessionBeanMethodChecker

public abstract class BeanMethodChecker
extends MethodChecker

Root class for bean method checks.

Author:
Rick Giles

Constructor Summary

BeanMethodChecker(AbstractBeanCheck aCheck)
Constructs a BeanMethodChecker for a bean check.

Method Summary

protected void
checkCreateMethod(DetailAST aMethodAST)
Checks whether an ejbCreate<METHOD>(...) method of a bean satisfies requirements.
void
checkMethod(DetailAST aMethodAST)

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.j2ee.MethodChecker

checkMethod, checkMethod, checkMethods, checkNotThrows, checkThrows, getCheck, log, logName

Constructor Details

BeanMethodChecker

public BeanMethodChecker(AbstractBeanCheck aCheck)
Constructs a BeanMethodChecker for a bean check.

Parameters:
aCheck - the bean check.

Method Details

checkCreateMethod

protected void checkCreateMethod(DetailAST aMethodAST)
Checks whether an ejbCreate<METHOD>(...) method of a bean satisfies requirements.

Parameters:
aMethodAST - the AST for the method definition.


checkMethod

public void checkMethod(DetailAST aMethodAST)
Overrides:
checkMethod in interface MethodChecker

See Also:
MethodChecker