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

Method and

basex-core/src/main/java/org/basex/query/QueryParser.java:1718–1726  ·  view source on GitHub ↗

Parses the "AndExpr" rule. @return query expression @throws QueryException query exception

()

Source from the content-addressed store, hash-verified

1716 * @throws QueryException query exception
1717 */
1718 private Expr and() throws QueryException {
1719 final Expr expr = comparison();
1720 if(!wsConsumeWs(AND)) return expr;
1721
1722 final InputInfo ii = info();
1723 final ExprList el = new ExprList(2).add(expr);
1724 do add(el, comparison()); while(wsConsumeWs(AND));
1725 return new And(ii, el.finish());
1726 }
1727
1728 /**
1729 * Parses the "ComparisonExpr" rule.

Callers 1

orMethod · 0.95

Calls 6

comparisonMethod · 0.95
wsConsumeWsMethod · 0.95
infoMethod · 0.95
addMethod · 0.95
addMethod · 0.65
finishMethod · 0.45

Tested by

no test coverage detected