Parses the "UnionExpr" rule. @return query expression or null @throws QueryException query exception
()
| 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. |