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

Method isLeaf

basex-core/src/main/java/org/basex/query/expr/path/Step.java:447–450  ·  view source on GitHub ↗

Checks if the specified type refers to a leaf node. @param kind kind (can be null) @return result of check

(final Kind kind)

Source from the content-addressed store, hash-verified

445 * @return result of check
446 */
447 private boolean isLeaf(final Kind kind) {
448 return kind != null && kind.oneOf(Kind.ATTRIBUTE, Kind.COMMENT,
449 Kind.NAMESPACE, Kind.PROCESSING_INSTRUCTION, Kind.TEXT);
450 }
451
452 @Override
453 public boolean accept(final ASTVisitor visitor) {

Callers 5

optimizeMethod · 0.95
noMatchesMethod · 0.95
emptyMethod · 0.95
removeMethod · 0.95
pathStatsMethod · 0.45

Calls 1

oneOfMethod · 0.65

Tested by

no test coverage detected