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

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.bcel.checks
Class UnusedMethodCheck  view UnusedMethodCheck download UnusedMethodCheck.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended bycom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended bycom.puppycrawl.tools.checkstyle.bcel.AbstractCheckVisitor
              extended bycom.puppycrawl.tools.checkstyle.bcel.checks.AbstractReferenceCheck
                  extended bycom.puppycrawl.tools.checkstyle.bcel.checks.UnusedMethodCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, com.puppycrawl.tools.checkstyle.bcel.IObjectSetVisitor

public class UnusedMethodCheck
extends AbstractReferenceCheck

Checks for unused methods


Field Summary
 
Fields inherited from class com.puppycrawl.tools.checkstyle.bcel.checks.AbstractReferenceCheck
 
Fields inherited from class com.puppycrawl.tools.checkstyle.bcel.AbstractCheckVisitor
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
 
Constructor Summary
UnusedMethodCheck()
           
 
Method Summary
 boolean ignore(java.lang.String aClassName, org.apache.bcel.classfile.Method aMethod)
           
 void leaveSet(java.util.Set aJavaClasses)
          Finish the visit of a set.
 void setScope(java.lang.String aScopeName)
          Sets the scope for recorded references.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.bcel.checks.AbstractReferenceCheck
findJavaClassDef, getReferenceDAO, getVisitor, ignore, setIgnoreClassName, setIgnoreName
 
Methods inherited from class com.puppycrawl.tools.checkstyle.bcel.AbstractCheckVisitor
destroy, getClassFileVisitor, getGenericVisitor, init, leaveObject, log, log, setMessages, visitObject, visitSet
 
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
 

Constructor Detail

UnusedMethodCheck

public UnusedMethodCheck()
Method Detail

setScope

public void setScope(java.lang.String aScopeName)
Description copied from class: AbstractReferenceCheck
Sets the scope for recorded references.

Overrides:
setScope in class AbstractReferenceCheck

leaveSet

public void leaveSet(java.util.Set aJavaClasses)
Description copied from interface: com.puppycrawl.tools.checkstyle.bcel.IObjectSetVisitor
Finish the visit of a set.


ignore

public boolean ignore(java.lang.String aClassName,
                      org.apache.bcel.classfile.Method aMethod)