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

Method value

basex-core/src/main/java/org/basex/query/expr/DualMap.java:75–90  ·  view source on GitHub ↗
(final QueryContext qc)

Source from the content-addressed store, hash-verified

73 }
74
75 @Override
76 public Value value(final QueryContext qc) throws QueryException {
77 final QueryFocus qf = qc.focus;
78 final Value qv = qf.value;
79 final ValueBuilder vb = new ValueBuilder(qc, size());
80 final Iter iter = exprs[0].iter(qc);
81 for(Item item; (item = qc.next(iter)) != null;) {
82 qf.value = item;
83 try {
84 vb.add(exprs[1].item(qc, info));
85 } finally {
86 qf.value = qv;
87 }
88 }
89 return vb.value(this);
90 }
91
92 @Override
93 public DualMap copy(final CompileContext cc, final IntObjectMap<Var> vm) {

Callers

nothing calls this directly

Calls 6

sizeMethod · 0.95
addMethod · 0.95
valueMethod · 0.95
iterMethod · 0.65
nextMethod · 0.65
itemMethod · 0.45

Tested by

no test coverage detected