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

Method expr

basex-core/src/main/java/org/basex/query/expr/If.java:172–174  ·  view source on GitHub ↗

Tests the condition and returns the expression to evaluate. @param qc query context @return branch offset @throws QueryException query exception

(final QueryContext qc)

Source from the content-addressed store, hash-verified

170 * @throws QueryException query exception
171 */
172 private Expr expr(final QueryContext qc) throws QueryException {
173 return exprs[cond.test(qc, info, 0) ? 0 : 1];
174 }
175
176 @Override
177 public boolean has(final Flag... flags) {

Callers 6

optMethod · 0.95
iterMethod · 0.95
valueMethod · 0.95
itemMethod · 0.95
optimizeMethod · 0.45
optimizeMethod · 0.45

Calls 1

testMethod · 0.65

Tested by

no test coverage detected