CodeQL library for Java
codeql/java-all 0.7.5 ( 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 )