MCPcopy Index your code
hub / github.com/processing/processing / getChildrenRecursive

Method getChildrenRecursive

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

Source from the content-addressed store, hash-verified

544
545
546 protected XML[] getChildrenRecursive(String[] items, int offset) {
547 if (offset == items.length-1) {
548 return getChildren(items[offset]);
549 }
550 XML[] matches = getChildren(items[offset]);
551 XML[] outgoing = new XML[0];
552 for (int i = 0; i < matches.length; i++) {
553 XML[] kidMatches = matches[i].getChildrenRecursive(items, offset+1);
554 outgoing = (XML[]) PApplet.concat(outgoing, kidMatches);
555 }
556 return outgoing;
557 }
558
559
560 /**

Callers 1

getChildrenMethod · 0.95

Calls 2

getChildrenMethod · 0.95
concatMethod · 0.95

Tested by

no test coverage detected