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

Method children

src/main/java/groovy/util/Node.java:430–441  ·  view source on GitHub ↗

Returns a List of the nodes children. @return the nodes children

()

Source from the content-addressed store, hash-verified

428 * @return the nodes children
429 */
430 public List children() {
431 if (value == null) {
432 return new NodeList();
433 }
434 if (value instanceof List) {
435 return (List) value;
436 }
437 // we're probably just a String
438 List result = new NodeList();
439 result.add(value);
440 return result;
441 }
442
443 /**
444 * Returns a <code>Map</code> of the attributes of the node or an empty <code>Map</code>

Callers 11

iteratorMethod · 0.95
getMethod · 0.95
getAtMethod · 0.95
getByNameMethod · 0.95
toMapMethod · 0.95
isLeafMethod · 0.95
replaceNodeMethod · 0.45
getTailMethod · 0.45
appendNodesMethod · 0.45
insert_result_linksFunction · 0.45

Calls 1

addMethod · 0.65

Tested by

no test coverage detected