CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (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()