MCPcopy Create free account
hub / github.com/BaseXdb/basex / enter

Method enter

basex-core/src/main/java/org/basex/query/func/Closure.java:483–490  ·  view source on GitHub ↗

Runs code and avoids recursive executions of the same code. @param code code to be executed @return result

(final Supplier<Object> code)

Source from the content-addressed store, hash-verified

481 * @return result
482 */
483 private Object enter(final Supplier<Object> code) {
484 dontEnter = true;
485 try {
486 return code.get();
487 } finally {
488 dontEnter = false;
489 }
490 }
491
492 @Override
493 public boolean equals(final Object obj) {

Callers 4

acceptMethod · 0.95
exprSizeMethod · 0.95
toXmlMethod · 0.95
toStringMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected