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

Method kind

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

Returns the node kind (#DOC, #ELEM, #TEXT, #ATTR, #COMM, #PI). @param pre PRE value @return node kind

(final int pre)

Source from the content-addressed store, hash-verified

309 * @return node kind
310 */
311 public final int kind(final int pre) {
312 return table.read1(pre, 0) & 0x07;
313 }
314
315 /**
316 * Returns a PRE value of the parent node.

Callers 15

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

Calls 1

read1Method · 0.45

Tested by 15

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