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

Method has

basex-core/src/main/java/org/basex/query/func/StaticFunc.java:219–223  ·  view source on GitHub ↗

Indicates if an expression has one of the specified compiler properties. @param flags flags @return result of check @see Expr#has(Flag...)

(final Flag... flags)

Source from the content-addressed store, hash-verified

217 * @see Expr#has(Flag...)
218 */
219 boolean has(final Flag... flags) {
220 // function itself does not perform any updates
221 final Flag[] flgs = Flag.remove(flags, Flag.UPD);
222 return flgs.length != 0 && check(flgs);
223 }
224
225 /**
226 * Checks if the function body is updating.

Callers 6

vacuousBodyMethod · 0.95
inlineMethod · 0.95
itemMethod · 0.95
compileMethod · 0.45
checkUpMethod · 0.45
checkMethod · 0.45

Calls 2

removeMethod · 0.95
checkMethod · 0.95

Tested by

no test coverage detected