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

Method expr

basex-core/src/main/java/org/basex/query/expr/Switch.java:212–218  ·  view source on GitHub ↗

Tests the conditions and returns the expression to evaluate. @param qc query context @return case expression @throws QueryException query exception

(final QueryContext qc)

Source from the content-addressed store, hash-verified

210 * @throws QueryException query exception
211 */
212 private Expr expr(final QueryContext qc) throws QueryException {
213 final Item item = cond.atomItem(qc, info);
214 for(final SwitchGroup group : groups) {
215 if(group.match(item, qc)) return group.rtrn();
216 }
217 throw Util.notExpected();
218 }
219
220 @Override
221 public boolean vacuous() {

Callers 3

iterMethod · 0.95
valueMethod · 0.95
itemMethod · 0.95

Calls 4

notExpectedMethod · 0.95
rtrnMethod · 0.80
atomItemMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected