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

Method item

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

Source from the content-addressed store, hash-verified

14 */
15public class FnName extends FnNodeName {
16 @Override
17 public final Str item(final QueryContext qc, final InputInfo ii) throws QueryException {
18 final XNode node = toNodeOrNull(context(qc), qc);
19 return node == null || empty(node.kind()) ? Str.EMPTY : Str.get(name(node));
20 }
21
22 @Override
23 protected final Expr opt(final CompileContext cc) {

Callers

nothing calls this directly

Calls 6

getMethod · 0.95
nameMethod · 0.95
toNodeOrNullMethod · 0.80
kindMethod · 0.65
contextMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected