Class AbstractMethodAnnotationAccumulator

java.lang.Object
edu.umd.cs.findbugs.ba.ch.OverriddenMethodsVisitor
edu.umd.cs.findbugs.ba.jsr305.AbstractMethodAnnotationAccumulator
All Implemented Interfaces:
SupertypeTraversalVisitor
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 Details

    • AbstractMethodAnnotationAccumulator

      protected AbstractMethodAnnotationAccumulator(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod)
  • Method Details

    • 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()