public final class StaticFuncCall extends FuncCall
Constructor and Description |
---|
StaticFuncCall(QNm name,
Expr[] args,
StaticContext sc,
InputInfo info)
Function call 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.
|
Expr |
compile(QueryContext qc,
VarScope scp)
Compiles and optimizes the expression, assigns types and cardinalities.
|
StaticFuncCall |
copy(QueryContext qc,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression.
|
String |
description()
Returns a string description of the expression.
|
StaticFunc |
evalFunc(QueryContext qc)
Evaluates and returns the function to be called.
|
StaticFunc |
func()
Returns the called function if already known,
null otherwise. |
boolean |
has(Expr.Flag flag)
Indicates if an expression has the specified compiler property.
|
StaticFuncCall |
init(StaticFunc sf)
Initializes the function and checks for visibility.
|
boolean |
isVacuous()
Tests if this is a vacuous expression (empty sequence or error function).
|
StaticFuncCall |
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, checkUp, 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, isValue, iterable, optimizeEbv, sameAs, typeCheck, uses, visitAll
public StaticFuncCall(QNm name, Expr[] args, StaticContext sc, InputInfo info)
info
- input infoname
- function nameargs
- argumentssc
- static contextpublic Expr compile(QueryContext qc, VarScope scp) throws QueryException
Expr
QueryContext.compile()
.compile
in class Arr
qc
- query contextscp
- variable scopeQueryException
- query exceptionpublic StaticFuncCall optimize(QueryContext qc, VarScope scp)
Expr
public StaticFuncCall copy(QueryContext qc, VarScope scp, IntObjMap<Var> vs)
Expr
public StaticFuncCall init(StaticFunc sf) throws QueryException
sf
- function referenceQueryException
- query exceptionpublic StaticFunc func()
null
otherwise.public boolean isVacuous()
Expr
public boolean has(Expr.Flag flag)
Expr
true
if at least one test is successful.public void plan(FElem plan)
ExprInfo
public String description()
ExprInfo
ExprInfo.toString()
method,
arguments are not included in the output.description
in class ExprInfo
public boolean accept(ASTVisitor visitor)
Expr
public StaticFunc evalFunc(QueryContext qc)
FuncCall
qc
- query contextCopyright © 2005–2015 BaseX Team. All rights reserved.