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

Method single

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

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

()

Source from the content-addressed store, hash-verified

1123 * @throws QueryException query exception
1124 */
1125 private Expr single() throws QueryException {
1126 alter = null;
1127 Expr expr = flwor();
1128 if(expr == null) expr = quantified();
1129 if(expr == null) expr = switchh();
1130 if(expr == null) expr = typeswitch();
1131 if(expr == null) expr = iff();
1132 if(expr == null) expr = tryCatch();
1133 if(expr == null) expr = insert();
1134 if(expr == null) expr = delete();
1135 if(expr == null) expr = rename();
1136 if(expr == null) expr = replace();
1137 if(expr == null) expr = updatingFunctionCall();
1138 if(expr == null) expr = copyModify();
1139 if(expr == null) expr = or();
1140 return expr;
1141 }
1142
1143 /**
1144 * Parses the "FLWORExpr" rule.

Callers 15

contextValueDeclMethod · 0.95
varDeclMethod · 0.95
namedRecordTypeDeclMethod · 0.95
paramListMethod · 0.95
exprMethod · 0.95
flworMethod · 0.95
forClauseMethod · 0.95
letValueBindingMethod · 0.95
letStructBindingMethod · 0.95
windowClauseMethod · 0.95
windowCondMethod · 0.95
orderSpecMethod · 0.95

Calls 13

flworMethod · 0.95
quantifiedMethod · 0.95
switchhMethod · 0.95
typeswitchMethod · 0.95
iffMethod · 0.95
tryCatchMethod · 0.95
insertMethod · 0.95
deleteMethod · 0.95
renameMethod · 0.95
replaceMethod · 0.95
updatingFunctionCallMethod · 0.95
copyModifyMethod · 0.95

Tested by

no test coverage detected