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

Method get

basex-core/src/main/java/org/basex/query/func/fn/SeqRange.java:37–40  ·  view source on GitHub ↗

Returns an instance for the specified range expression. @param expr sequence expression @param cc compilation context @return range or null @throws QueryException query exception

(final Expr expr, final CompileContext cc)

Source from the content-addressed store, hash-verified

35 * @throws QueryException query exception
36 */
37 public static SeqRange get(final Expr expr, final CompileContext cc) throws QueryException {
38 // check if expression is fn:subsequence or util:range
39 return expr instanceof final FnSubsequence sub ? sub.range(cc) : null;
40 }
41
42 /**
43 * Adjusts the range values by applying the result size.

Callers 3

optMethod · 0.95
optMethod · 0.95
optMethod · 0.95

Calls 1

rangeMethod · 0.45

Tested by

no test coverage detected