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

Method get

basex-core/src/main/java/org/basex/query/expr/List.java:41–45  ·  view source on GitHub ↗

Creates a new, optimized list expression. @param cc compilation context @param info input info (can be null) @param exprs expressions @return list, single expression or empty sequence @throws QueryException query exception

(final CompileContext cc, final InputInfo info, final Expr... exprs)

Source from the content-addressed store, hash-verified

39 * @throws QueryException query exception
40 */
41 public static Expr get(final CompileContext cc, final InputInfo info, final Expr... exprs)
42 throws QueryException {
43 final int el = exprs.length;
44 return el > 1 ? new List(info, exprs).optimize(cc) : el > 0 ? exprs[0] : Empty.VALUE;
45 }
46
47 @Override
48 public void checkUp() throws QueryException {

Callers 15

voidAndReturnMethod · 0.95
simplifyForMethod · 0.95
optimizeMethod · 0.95
mergeMethod · 0.95
optimizeMethod · 0.95
mergeEbvMethod · 0.95
toIfMethod · 0.95
optimizeMethod · 0.95
simplifyForMethod · 0.95
optimizeMethod · 0.95
mergeEbvMethod · 0.95
optMethod · 0.95

Calls 3

iterMethod · 0.95
getMethod · 0.65
optimizeMethod · 0.45

Tested by

no test coverage detected