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

Method copy

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

Copies an expression. Used for inlining functions, or for copying static queries. It is utilized by VarRef#inline, FuncItem#inline, Closure#inline and StaticFunc#inline. @param cc compilation context @param vm mapping from old variable IDs to new variable copies.

(CompileContext cc, IntObjectMap<Var> vm)

Source from the content-addressed store, hash-verified

320 * @return copied expression
321 */
322 public abstract Expr copy(CompileContext cc, IntObjectMap<Var> vm);
323
324 /**
325 * Simplifies the expression. Overwritten by many expressions;

Callers 1

optimizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected