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

Method run

src/main/java/org/codehaus/groovy/ast/query/AstQuery.java:306–315  ·  view source on GitHub ↗
(final boolean shortCircuit)

Source from the content-addressed store, hash-verified

304 }
305
306 @SuppressWarnings("unchecked")
307 private List<T> run(final boolean shortCircuit) {
308 QueryVisitor v = new QueryVisitor(shortCircuit, null);
309 try {
310 v.start(root);
311 } catch (Stop ignored) {
312 // short-circuit terminal reached its first match
313 }
314 return (List<T>) v.hits;
315 }
316
317 /** Control-flow signal used to abort the traversal for short-circuiting terminals. */
318 private static final class Stop extends RuntimeException {

Callers 7

listMethod · 0.95
anyMethod · 0.95
noneMethod · 0.95
countMethod · 0.95
findFirstMethod · 0.95
forEachMethod · 0.95
streamMethod · 0.95

Calls 1

startMethod · 0.95

Tested by

no test coverage detected