CodeQL library for Java/Kotlin
codeql/java-all 4.1.1-dev (changelog, source)
Search

Member predicate AnnotationType::getRetentionPolicy

Gets the retention policy of this annotation type, that is, the name of one of the enum constants of java.lang.annotation.RetentionPolicy. If this annotation type has no @Retention annotation, the result is CLASS.

string getRetentionPolicy()