Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.j2ee
Class AbstractJ2eeCheck  view AbstractJ2eeCheck download AbstractJ2eeCheck.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended bycom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended bycom.puppycrawl.tools.checkstyle.api.Check
              extended bycom.puppycrawl.tools.checkstyle.checks.j2ee.AbstractJ2eeCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable
Direct Known Subclasses:
AbstractBeanCheck, AbstractInterfaceCheck

public abstract class AbstractJ2eeCheck
extends com.puppycrawl.tools.checkstyle.api.Check

Abstract class for J2ee component checking.


Field Summary
private  MethodChecker mMethodChecker
          checks method requirements
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.Check
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
 
Constructor Summary
AbstractJ2eeCheck()
           
 
Method Summary
 MethodChecker getMethodChecker()
          Gets the method checker for this component check.
protected  void log(com.puppycrawl.tools.checkstyle.api.DetailAST aAST, java.lang.String aKey, java.lang.Object[] aArgs)
          Helper method to log a LocalizedMessage for an AST.
protected  void logName(com.puppycrawl.tools.checkstyle.api.DetailAST aAST, java.lang.String aKey, java.lang.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
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, setSeverity
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMethodChecker

private MethodChecker mMethodChecker
checks method requirements

Constructor Detail

AbstractJ2eeCheck

public AbstractJ2eeCheck()
Method Detail

log

protected void log(com.puppycrawl.tools.checkstyle.api.DetailAST aAST,
                   java.lang.String aKey,
                   java.lang.Object[] aArgs)
Helper method to log a LocalizedMessage for an AST.


logName

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


getMethodChecker

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


setMethodChecker

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