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

Method union

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

Parses the "UnionExpr" rule. @return query expression or null @throws QueryException query exception

()

Source from the content-addressed store, hash-verified

1853 * @throws QueryException query exception
1854 */
1855 private Expr union() throws QueryException {
1856 final Expr expr = intersect();
1857 if(expr == null || !isUnion()) return expr;
1858 final ExprList el = new ExprList().add(expr);
1859 do add(el, intersect()); while(isUnion());
1860 return new Union(info(), el.finish());
1861 }
1862
1863 /**
1864 * Checks if a union operator is found.

Callers 2

ftContainsMethod · 0.95
multiplicativeMethod · 0.95

Calls 6

intersectMethod · 0.95
isUnionMethod · 0.95
addMethod · 0.95
infoMethod · 0.95
addMethod · 0.65
finishMethod · 0.45

Tested by

no test coverage detected