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

Method parent

basex-core/src/main/java/org/basex/data/Data.java:321–323  ·  view source on GitHub ↗

Returns a PRE value of the parent node. @param pre PRE value @param kind node kind @return PRE value of the parent node

(final int pre, final int kind)

Source from the content-addressed store, hash-verified

319 * @return PRE value of the parent node
320 */
321 public final int parent(final int pre, final int kind) {
322 return pre - dist(pre, kind);
323 }
324
325 /**
326 * Returns the distance of the specified node.

Callers 15

insertTextAsOnly1Method · 0.95
insertTextAsOnly2Method · 0.95
insertTextAsOnly3Method · 0.95
insertTextMethod · 0.95
insertElementAsOnly1Method · 0.95
insertElementAsOnly2Method · 0.95
insertElementAsOnly3Method · 0.95

Calls 1

distMethod · 0.95

Tested by 15

insertTextAsOnly1Method · 0.76
insertTextAsOnly2Method · 0.76
insertTextAsOnly3Method · 0.76
insertTextMethod · 0.76
insertElementAsOnly1Method · 0.76
insertElementAsOnly2Method · 0.76
insertElementAsOnly3Method · 0.76