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

Method callClosureForNode

src/main/java/groovy/util/Node.java:646–651  ·  view source on GitHub ↗
(Closure<T> closure, Object node, int level)

Source from the content-addressed store, hash-verified

644 }
645
646 private static <T> T callClosureForNode(Closure<T> closure, Object node, int level) {
647 if (closure.getMaximumNumberOfParameters() == 2) {
648 return closure.call(node, level);
649 }
650 return closure.call(node);
651 }
652
653 private void depthFirstRest(boolean preorder, int level, Closure c) {
654 for (Iterator iter = InvokerHelper.asIterator(value); iter.hasNext(); ) {

Callers 4

depthFirstMethod · 0.95
depthFirstRestMethod · 0.95
breadthFirstMethod · 0.95
breadthFirstRestMethod · 0.95

Calls 2

callMethod · 0.65

Tested by

no test coverage detected