Files
codeql/java/ql/test/library-tests/annotations/GetLibraryAnnotationElement.ql
2018-08-30 10:48:05 +01:00

12 lines
333 B
Plaintext

/**
* @name GetLibraryAnnotationElement
*/
import default
from Class cl, Annotation ann, AnnotationType anntp, AnnotationElement anne
where cl.fromSource() and
ann = cl.getAnAnnotation() and
anntp = ann.getType() and
anne = anntp.getAnAnnotationElement()
select cl, ann, anntp.getQualifiedName(), anne.getName()