CodeQL library for Java/Kotlin
codeql/java-all 0.11.0 (changelog, source)

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.

Annotation getAnAssociatedAnnotation()