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