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

Method children

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

Returns the number of child elements (excluding the root). @return the number of children

()

Source from the content-addressed store, hash-verified

248 * @return the number of children
249 */
250 public int children() {
251 int size = size();
252 if (size > 1) {
253 return size - 1;
254 }
255 return 0;
256 }
257
258 /**
259 * Returns the element at the specified index, or {@code null} if not found.

Callers 2

hasChildrenMethod · 0.95
writeMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected