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
public abstract class AbstractMethodAnnotationAccumulator extends OverriddenMethodsVisitor
Accumulate type qualifier annotations on method, taking supertype methods into account.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMethodAnnotationAccumulator(TypeQualifierValue<?> typeQualifierValue, XMethod xmethod)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 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
public abstract TypeQualifierAnnotationLookupResult getResult()
-
lookupAnnotation
protected abstract TypeQualifierAnnotation lookupAnnotation(XMethod xm)
-
overrides
public abstract boolean overrides()
-
-