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

Member predicate Annotation::getTypeValue

If the value type of the annotation element with the specified name is java.lang.Class, gets the type referred to by that Class. This includes default values in case no explicit value is specified.

If the element value type is a Class array, use getATypeArrayValue.

Type getTypeValue(string name)