CodeQL library for Java/Kotlin
codeql/java-all 4.2.1-dev (changelog, source)
Search

Member predicate Element::hasChildElement

Holds if this element is the immediate parent of the specified element e.

It is usually preferable to use more specific predicates such as getEnclosingCallable(), getDeclaringType() and/or getEnclosingType() instead of this general predicate.

predicate hasChildElement(Element e)