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

Method delete

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

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

()

Source from the content-addressed store, hash-verified

4289 * @throws QueryException query exception
4290 */
4291 private Expr delete() throws QueryException {
4292 final int p = pos;
4293 if(!wsConsumeWs(DELETE) || !wsConsumeWs(NODES) && !wsConsumeWs(NODE)) {
4294 pos = p;
4295 return null;
4296 }
4297 qc.updating();
4298 return new Delete(info(), check(single(), INCOMPLETE));
4299 }
4300
4301 /**
4302 * Parses the "RenameExpr" rule.

Callers 1

singleMethod · 0.95

Calls 5

wsConsumeWsMethod · 0.95
infoMethod · 0.95
checkMethod · 0.95
singleMethod · 0.95
updatingMethod · 0.45

Tested by

no test coverage detected