com.puppycrawl.tools.checkstyle.checks.j2ee

Class AbstractJ2eeCheck

public abstract class AbstractJ2eeCheck extends Check

Abstract class for J2ee component checking.

Author: Rick Giles

Method Summary
MethodCheckergetMethodChecker()
Gets the method checker for this component check.
protected voidlog(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.
protected voidlogName(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.
voidsetMethodChecker(MethodChecker aMethodChecker)
Sets the method checker for this component check.

Method Detail

getMethodChecker

public MethodChecker getMethodChecker()
Gets the method checker for this component check.

Returns: the method checker for this component check.

log

protected void log(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.

Parameters: aAST the AST for the message. aKey key to locale message format aArgs arguments for message

logName

protected void logName(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST. Logs the name, line, and column of the AST.

Parameters: aAST the AST for the message. aKey key to locale message format aArgs arguments for message

setMethodChecker

public void setMethodChecker(MethodChecker aMethodChecker)
Sets the method checker for this component check.

Parameters: aMethodChecker the method checker for this component check.