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

Method get

basex-core/src/main/java/org/basex/query/expr/CmpR.java:68–73  ·  view source on GitHub ↗

Tries to convert the specified expression into a range expression. @param cc compilation context @param info input info (can be null) @param expr expression to be compared @param min minimum position @param max minimum position (inclusive) @return expression @throws QueryException query exce

(final CompileContext cc, final InputInfo info, final Expr expr,
      final double min, final double max)

Source from the content-addressed store, hash-verified

66 * @throws QueryException query exception
67 */
68 static Expr get(final CompileContext cc, final InputInfo info, final Expr expr,
69 final double min, final double max) throws QueryException {
70 return min > max ? Bln.FALSE : min == NEGATIVE_INFINITY && max == POSITIVE_INFINITY ?
71 cc.function(Function.EXISTS, info, expr) :
72 new CmpR(expr, min, max, info).optimize(cc);
73 }
74
75 /**
76 * Tries to convert the specified expression into a range expression.

Callers 3

optBooleanMethod · 0.95
optimizeMethod · 0.95
mergeEbvMethod · 0.95

Calls 11

seqTypeMethod · 0.95
instanceOfMethod · 0.95
isUntypedMethod · 0.95
oneOfMethod · 0.95
functionMethod · 0.45
optimizeMethod · 0.45
hasMethod · 0.45
minMethod · 0.45
maxMethod · 0.45
dblMethod · 0.45
absMethod · 0.45

Tested by

no test coverage detected