com.twitter.common.checkstyle
Class NonOverriddenMethodNameCheck

java.lang.Object
  extended by com.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended by com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended by com.puppycrawl.tools.checkstyle.api.Check
              extended by com.puppycrawl.tools.checkstyle.checks.AbstractFormatCheck
                  extended by com.puppycrawl.tools.checkstyle.checks.naming.AbstractNameCheck
                      extended by com.puppycrawl.tools.checkstyle.checks.naming.AbstractAccessControlNameCheck
                          extended by com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck
                              extended by com.twitter.common.checkstyle.NonOverriddenMethodNameCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable

public class NonOverriddenMethodNameCheck
extends com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck

An extension to method name check that does not check-style the name of an overridden method because the programmer does not have a choice in renaming such methods. If the interface/base class definition is checkstyled, the bad name will always be caught over there.


Constructor Summary
NonOverriddenMethodNameCheck()
           
 
Method Summary
protected  String getMessageBundle()
          For human readable error messages
 void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
           
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck
getDefaultTokens, setAllowClassName
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.naming.AbstractAccessControlNameCheck
getApplyToPackage, getApplyToPrivate, getApplyToProtected, getApplyToPublic, mustCheckName, setApplyToPackage, setApplyToPrivate, setApplyToProtected, setApplyToPublic, shouldCheckInScope
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractFormatCheck
getFormat, getRegexp, setCompileFlags, setFormat
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getCustomMessages, getId, getSeverity, getSeverityLevel, log, setId, 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
 

Constructor Detail

NonOverriddenMethodNameCheck

public NonOverriddenMethodNameCheck()
Method Detail

visitToken

public void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
Overrides:
visitToken in class com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck

getMessageBundle

protected String getMessageBundle()
For human readable error messages

Overrides:
getMessageBundle in class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter