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

Method item

basex-core/src/main/java/org/basex/query/expr/CmpN.java:46–53  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

44 }
45
46 @Override
47 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
48 final GNode n1 = toGNodeOrNull(exprs[0], qc);
49 if(n1 == null) return Empty.VALUE;
50 final GNode n2 = toGNodeOrNull(exprs[1], qc);
51 if(n2 == null) return Empty.VALUE;
52 return Bln.get(op.eval(n1, n2));
53 }
54
55 @Override
56 public boolean test(final QueryContext qc, final InputInfo ii, final long pos)

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
toGNodeOrNullMethod · 0.80
evalMethod · 0.65

Tested by

no test coverage detected