FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba.jsr305
Class AbstractMethodAnnotationAccumulator

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.ch.OverriddenMethodsVisitor
      extended by edu.umd.cs.findbugs.ba.jsr305.AbstractMethodAnnotationAccumulator
All Implemented Interfaces:
InheritanceGraphVisitor
Direct Known Subclasses:
ParameterAnnotationAccumulator

public abstract class AbstractMethodAnnotationAccumulator
extends OverriddenMethodsVisitor

Accumulate type qualifier annotations on method, taking supertype methods into account.

Author:
David Hovemeyer

Constructor Summary
protected AbstractMethodAnnotationAccumulator(TypeQualifierValue typeQualifierValue, XMethod xmethod)
           
 
Method Summary
abstract  TypeQualifierAnnotationLookupResult getResult()
           
 TypeQualifierValue getTypeQualifierValue()
           
protected abstract  TypeQualifierAnnotation lookupAnnotation(XMethod xm)
           
abstract  boolean overrides()
           
protected  boolean visitOverriddenMethod(XMethod xmethod)
          Downcall method: will be called for each method overridden by the derived method object passed to the constructor.
 
Methods inherited from class edu.umd.cs.findbugs.ba.ch.OverriddenMethodsVisitor
getXmethod, visitClass, visitEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMethodAnnotationAccumulator

protected AbstractMethodAnnotationAccumulator(TypeQualifierValue typeQualifierValue,
                                              XMethod xmethod)
Method Detail

getTypeQualifierValue

public TypeQualifierValue getTypeQualifierValue()
Returns:
Returns the typeQualifierValue.

visitOverriddenMethod

protected boolean visitOverriddenMethod(XMethod xmethod)
Description copied from class: OverriddenMethodsVisitor
Downcall method: will be called for each method overridden by the derived method object passed to the constructor. Note that this method will be called for the original derived method, since this is useful for some applications.

Specified by:
visitOverriddenMethod in class OverriddenMethodsVisitor
Parameters:
xmethod - a method which is overridden by the original derived method, or is the original derived method
Returns:
true if the traversal should continue into superclasses, false otherwise

getResult

public abstract TypeQualifierAnnotationLookupResult getResult()

lookupAnnotation

protected abstract TypeQualifierAnnotation lookupAnnotation(XMethod xm)

overrides

public abstract boolean overrides()

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.