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

Member predicate Annotatable :: getAnAnnotation

Gets an annotation that applies to this element, including inherited annotations. The results only include direct annotations; indirect annotations, that is repeated annotations in an (implicit) container annotation, are not included. The retention policy of the annotation type is not considered.

Annotation getAnAnnotation ( )