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

Method item

basex-core/src/main/java/org/basex/query/func/map/MapPut.java:20–27  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

18 */
19public final class MapPut extends MapFn {
20 @Override
21 public XQMap item(final QueryContext qc, final InputInfo ii) throws QueryException {
22 final XQMap map = toMap(arg(0), qc);
23 final Item key = toAtomItem(arg(1), qc);
24 final Value value = arg(2).value(qc);
25
26 return map.put(key, value);
27 }
28
29 @Override
30 protected Expr opt(final CompileContext cc) throws QueryException {

Callers 1

getMethod · 0.45

Calls 5

putMethod · 0.95
toAtomItemMethod · 0.80
toMapMethod · 0.45
argMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected