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

Method item

basex-core/src/main/java/org/basex/query/expr/constr/CDoc.java:32–45  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

30 }
31
32 @Override
33 public FNode item(final QueryContext qc, final InputInfo ii) throws QueryException {
34 final FBuilder doc = FDoc.build();
35
36 final Constr constr = new Constr(doc, info, qc).add(exprs);
37 if(constr.errAtt != null) throw DOCATTS_X.get(info, constr.errAtt);
38 if(constr.errNS != null) throw DOCNS_X.get(info, constr.errNS);
39 final Atts ns = doc.namespaces;
40 if(ns != null) throw DOCNS_X.get(info, ns.name(0));
41 final GNodeList attributes = doc.attributes;
42 if(attributes != null) throw DOCATTS_X.get(info, attributes.get(0).name());
43
44 return doc.finish();
45 }
46
47 @Override
48 public Expr copy(final CompileContext cc, final IntObjectMap<Var> vm) {

Callers

nothing calls this directly

Calls 7

buildMethod · 0.95
nameMethod · 0.95
getMethod · 0.95
finishMethod · 0.95
addMethod · 0.65
getMethod · 0.65
nameMethod · 0.65

Tested by

no test coverage detected