MCPcopy Create free account
hub / github.com/benfry/processing4 / getChildrenRecursive

Method getChildrenRecursive

core/src/processing/data/XML.java:559–570  ·  view source on GitHub ↗
(String[] items, int offset)

Source from the content-addressed store, hash-verified

557
558
559 protected XML[] getChildrenRecursive(String[] items, int offset) {
560 if (offset == items.length-1) {
561 return getChildren(items[offset]);
562 }
563 XML[] matches = getChildren(items[offset]);
564 XML[] outgoing = new XML[0];
565 for (int i = 0; i < matches.length; i++) {
566 XML[] kidMatches = matches[i].getChildrenRecursive(items, offset+1);
567 outgoing = (XML[]) PApplet.concat(outgoing, kidMatches);
568 }
569 return outgoing;
570 }
571
572
573 /**

Callers 1

getChildrenMethod · 0.95

Calls 2

getChildrenMethod · 0.95
concatMethod · 0.95

Tested by

no test coverage detected