Package edu.umd.cs.findbugs.ba.jsr305
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
Accumulate type qualifier annotations on method, taking supertype methods
into account.
- Author:
- David Hovemeyer
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMethodAnnotationAccumulator
(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod) -
Method Summary
Modifier and TypeMethodDescriptionabstract TypeQualifierAnnotationLookupResult
protected abstract TypeQualifierAnnotation
abstract boolean
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
-
Constructor Details
-
AbstractMethodAnnotationAccumulator
protected AbstractMethodAnnotationAccumulator(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod)
-
-
Method Details
-
getTypeQualifierValue
- Returns:
- Returns the typeQualifierValue.
-
visitOverriddenMethod
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 classOverriddenMethodsVisitor
- 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
-
lookupAnnotation
-
overrides
public abstract boolean overrides()
-