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

Method isSimple

basex-core/src/main/java/org/basex/query/expr/Expr.java:432–434  ·  view source on GitHub ↗

Checks if this expression is deterministic, performs no updates, does not access the context value and position, and calls no higher-order function. @return result of check

()

Source from the content-addressed store, hash-verified

430 * @return result of check
431 */
432 public final boolean isSimple() {
433 return !has(Flag.CTX, Flag.NDT, Flag.HOF, Flag.POS);
434 }
435
436 /**
437 * Checks if this expression has free variables.

Callers 5

optimizeMethod · 0.95
getMethod · 0.95
CmpHashGMethod · 0.80
optimizeMethod · 0.80
optimizeMethod · 0.80

Calls 1

hasMethod · 0.95

Tested by

no test coverage detected