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

Method mayBePositional

basex-core/src/main/java/org/basex/query/expr/Arr.java:334–336  ·  view source on GitHub ↗

Checks if the specified expression may be positional. @param expr expression @return result of check

(final Expr expr)

Source from the content-addressed store, hash-verified

332 * @return result of check
333 */
334 protected static boolean mayBePositional(final Expr expr) {
335 return expr.seqType().mayBeNumber() || expr.has(Flag.POS);
336 }
337
338 @Override
339 public boolean accept(final ASTVisitor visitor) {

Callers 13

optimizeEbvMethod · 0.95
mergePathsMethod · 0.45
mergeFiltersMethod · 0.45
optimizeMethod · 0.45
simplifyForMethod · 0.45
childrenMethod · 0.45
indexMethod · 0.45
toUnionMethod · 0.45
movePredicatesMethod · 0.45
mergeStepMethod · 0.45
mergedAxisMethod · 0.45
getMethod · 0.45

Calls 3

mayBeNumberMethod · 0.80
seqTypeMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected