Package edu.umd.cs.findbugs.ba.jsr305
Class TypeQualifierAnnotationLookupResult
java.lang.Object
edu.umd.cs.findbugs.ba.jsr305.TypeQualifierAnnotationLookupResult
The result of looking up a TypeQualifierAnnotation. Because type qualifiers
are inherited, a full result of looking resolving a TypeQualifierAnnotation
may include annotations on one or more supertypes. Potentially, the supertype
annotations may conflict with each other, and/or conflict with the annotation
on the annotated entity. This object makes it possible to report such
conflicts, while still providing a convenient interface for getting the
"effective" TypeQualifierAnnotation.
- Author:
- David Hovemeyer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Partial result of looking up a TypeQualifierAnnotation. -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeQualifierAnnotation
Subclasses must override this method to combine TypeQualifierAnnotations found in multiple superclasses.Get the effective TypeQualifierAnnotation.toString()
-
Method Details
-
getEffectiveTypeQualifierAnnotation
Get the effective TypeQualifierAnnotation.- Returns:
- the effective TypeQualifierAnnotation, or null if no effective TypeQualifierAnnotation can be found
-
combine
Subclasses must override this method to combine TypeQualifierAnnotations found in multiple superclasses.- Parameters:
a
- a TypeQualifierAnnotationb
- another TypeQualifierAnnotation- Returns:
- combined TypeQualifierAnnotation compatible with both input TypeQualifierAnnotations, or null if no such TypeQualifierAnnotation exists
-
toString
-