Member predicate Annotatable::getAnAssociatedAnnotation
Gets an annotation associated with this element, that is:
- An annotation directly present on this element, or
- An annotation indirectly present on this element (in the form of a repeated annotation), or
- If an annotation of a type is neither directly nor indirectly present the result is an associated inherited annotation (recursively)
The retention policy of the annotation type is not considered.