Package edu.umd.cs.findbugs.ba.jsr305
Class TypeQualifierAnnotationLookupResult
java.lang.Object
edu.umd.cs.findbugs.ba.jsr305.TypeQualifierAnnotationLookupResult
- Direct Known Subclasses:
ParameterAnnotationLookupResult
,ReturnTypeAnnotationLookupResult
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Partial result of looking up a TypeQualifierAnnotation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<TypeQualifierAnnotationLookupResult.PartialResult> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
protected TypeQualifierAnnotation
Subclasses must override this method to combine TypeQualifierAnnotations found in multiple superclasses.Get the effective TypeQualifierAnnotation.toString()
-
Field Details
-
partialResultList
-
-
Constructor Details
-
TypeQualifierAnnotationLookupResult
TypeQualifierAnnotationLookupResult()
-
-
Method Details
-
addPartialResult
-
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
-