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

Method arg

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

Returns the specified argument/operand of an expression (function, list, etc.). @param a index of argument @return argument or Empty#UNDEFINED if argument is undefined

(final int a)

Source from the content-addressed store, hash-verified

394 * @return argument or {@link Empty#UNDEFINED} if argument is undefined
395 */
396 public Expr arg(final int a) {
397 final Expr[] args = args();
398 return args != null && a < args.length ? args[a] : Empty.UNDEFINED;
399 }
400
401 /**
402 * Optimizes an expression for positional access.

Callers 15

optimizeMethod · 0.95
optimizeMethod · 0.95
optBooleanMethod · 0.95
optCountMethod · 0.95
optimizeMethod · 0.95
optArithMethod · 0.95
indexAccessibleMethod · 0.95
optimizeEbvMethod · 0.95
optimizeMethod · 0.95
toUnionMethod · 0.95
initMethod · 0.95
optMethod · 0.95

Calls 1

argsMethod · 0.95

Tested by

no test coverage detected