MCPcopy Index your code
hub / github.com/apache/groovy / hasChildren

Method hasChildren

src/main/java/org/codehaus/groovy/syntax/CSTNode.java:241–243  ·  view source on GitHub ↗

Returns true if this node has any children (non-root elements). @return true if the node has children

()

Source from the content-addressed store, hash-verified

239 * @return {@code true} if the node has children
240 */
241 public boolean hasChildren() {
242 return children() > 0;
243 }
244
245 /**
246 * Returns the number of child elements (excluding the root).

Callers

nothing calls this directly

Calls 1

childrenMethod · 0.95

Tested by

no test coverage detected