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

Method ftOr

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

Parses the "FTOr" rule. @param prg pragma flag @return query expression @throws QueryException query exception

(final boolean prg)

Source from the content-addressed store, hash-verified

3927 * @throws QueryException query exception
3928 */
3929 private FTExpr ftOr(final boolean prg) throws QueryException {
3930 final FTExpr expr = ftAnd(prg);
3931 if(!wsConsumeWs(FTOR)) return expr;
3932
3933 FTExpr[] list = { expr };
3934 do list = Array.add(list, ftAnd(prg)); while(wsConsumeWs(FTOR));
3935 return new FTOr(info(), list);
3936 }
3937
3938 /**
3939 * Parses the "FTAnd" rule.

Callers 1

ftSelectionMethod · 0.95

Calls 4

ftAndMethod · 0.95
wsConsumeWsMethod · 0.95
addMethod · 0.95
infoMethod · 0.95

Tested by

no test coverage detected