public final class DynFuncCall extends FuncCall
Constructor and Description |
---|
DynFuncCall(InputInfo info,
StaticContext sc,
boolean updating,
Expr expr,
Expr... arg)
Function constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ASTVisitor visitor)
Traverses this expression, notifying the visitor of declared and used variables,
and checking the tree for other recursive properties.
|
void |
checkUp()
Checks if all updating expressions are correctly placed.
|
Expr |
compile(QueryContext qc,
VarScope scp)
Compiles and optimizes the expression, assigns types and cardinalities.
|
Expr |
copy(QueryContext qc,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression.
|
String |
description()
Returns a string description of the expression.
|
boolean |
has(Expr.Flag flag)
Indicates if an expression has the specified compiler property.
|
void |
markInlined(FuncItem it)
Marks this call after it was inlined from the given function item.
|
Expr |
optimize(QueryContext qc,
VarScope scp)
Optimizes an already compiled expression without recompiling its sub-expressions.
|
void |
plan(FElem plan)
Creates an expression tree.
|
String |
toString() |
item, item, iter, markTailCalls, value, value
allAreValues, copyAll, count, exprSize, inline, oneIsEmpty, removable, toString
atomItem, atomValue, checkAtomic, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, compBln, copyType, ctxValue, ebv, optPre, optPre, preEval, seqType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toEmptyNode, toEmptyToken, toFloat, toFunc, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNumber, toQNm, toQNm, toToken, toToken
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, isValue, iterable, optimizeEbv, sameAs, typeCheck, uses, visitAll
public DynFuncCall(InputInfo info, StaticContext sc, boolean updating, Expr expr, Expr... arg)
info
- input infosc
- static contextupdating
- updating flagexpr
- function expressionarg
- argumentspublic Expr compile(QueryContext qc, VarScope scp) throws QueryException
Expr
QueryContext.compile()
.compile
in class Arr
qc
- query contextscp
- variable scopeQueryException
- query exceptionpublic Expr optimize(QueryContext qc, VarScope scp) throws QueryException
Expr
optimize
in class Expr
qc
- query contextscp
- variable scopeQueryException
- query exceptionpublic void checkUp() throws QueryException
Expr
checkUp
in class Arr
QueryException
- query exceptionpublic void markInlined(FuncItem it)
it
- the function itempublic Expr copy(QueryContext qc, VarScope scp, IntObjMap<Var> vs)
Expr
public boolean accept(ASTVisitor visitor)
Expr
public void plan(FElem plan)
ExprInfo
public String description()
ExprInfo
ExprInfo.toString()
method,
arguments are not included in the output.description
in class ExprInfo
Copyright © 2005–2015 BaseX Team. All rights reserved.