com.puppycrawl.tools.checkstyle.checks.j2ee

Class AbstractJ2eeCheck

Implemented Interfaces:
Configurable, Contextualizable
Known Direct Subclasses:
AbstractBeanCheck, AbstractInterfaceCheck

public abstract class AbstractJ2eeCheck
extends Check

Abstract class for J2ee component checking.
Author:
Rick Giles

Method Summary

MethodChecker
getMethodChecker()
Gets the method checker for this component check.
protected void
log(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.
protected void
logName(DetailAST aAST, String aKey, Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.
void
setMethodChecker(MethodChecker aMethodChecker)
Sets the method checker for this component check.

Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check

beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Method Details

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.