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

Member predicate TargetAnnotation::getATargetExpression

DEPRECATED: Getting the field access expression is rarely useful. Use getATargetElementType() to get the name of the target element.

Gets a target expression within this annotation.

For example, the field access ElementType.FIELD is a target expression in @Target({ElementType.FIELD, ElementType.METHOD}).

Expr getATargetExpression()