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

Method ftAnd

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

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

(final boolean prg)

Source from the content-addressed store, hash-verified

3942 * @throws QueryException query exception
3943 */
3944 private FTExpr ftAnd(final boolean prg) throws QueryException {
3945 final FTExpr expr = ftMildNot(prg);
3946 if(!wsConsumeWs(FTAND)) return expr;
3947
3948 FTExpr[] list = { expr };
3949 do list = Array.add(list, ftMildNot(prg)); while(wsConsumeWs(FTAND));
3950 return new FTAnd(info(), list);
3951 }
3952
3953 /**
3954 * Parses the "FTMildNot" rule.

Callers 1

ftOrMethod · 0.95

Calls 4

ftMildNotMethod · 0.95
wsConsumeWsMethod · 0.95
addMethod · 0.95
infoMethod · 0.95

Tested by

no test coverage detected