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

Member predicate RetentionAnnotation::getRetentionPolicyExpression

DEPRECATED: Getting the field access expression is rarely useful. Use getRetentionPolicy() to get the name of the retention policy.

Gets the retention policy expression within this annotation.

For example, the field access RetentionPolicy.RUNTIME is the retention policy expression in @Retention(RetentionPolicy.RUNTIME).

Expr getRetentionPolicyExpression()