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

Method next

basex-core/src/main/java/org/basex/query/expr/Expr.java:145–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 private Iter unwrapped;
144
145 @Override
146 public Item next() throws QueryException {
147 while(true) {
148 if(unwrapped == null) {
149 final Item item = iter.next();
150 if(item == null) return null;
151 if(item instanceof final JNode jnode) {
152 unwrapped = jnode.value.unwrappedIter(qc);
153 } else {
154 return item;
155 }
156 }
157 final Item item = unwrapped.next();
158 if(item != null) return item;
159 unwrapped = null;
160 }
161 }
162 };
163 }
164

Callers

nothing calls this directly

Calls 2

nextMethod · 0.65
unwrappedIterMethod · 0.45

Tested by

no test coverage detected