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

Method get

basex-core/src/main/java/org/basex/query/expr/SimplePos.java:40–43  ·  view source on GitHub ↗

Returns a position expression for the specified range, or an optimized boolean item. @param min minimum position @param max maximum position (inclusive, can be null) @param info input info (can be null) @return expression

(final Expr min, final Expr max, final InputInfo info)

Source from the content-addressed store, hash-verified

38 * @return expression
39 */
40 public static Expr get(final Expr min, final Expr max, final InputInfo info) {
41 return max == null || min.equals(max) ? new SimplePos(info, min) :
42 new SimplePos(info, min, max);
43 }
44
45 @Override
46 public Expr optimize(final CompileContext cc) throws QueryException {

Callers 2

mergeEbvMethod · 0.95
getMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected