public abstract class FuncCall extends Arr
Modifier and Type | Method and Description |
---|---|
Item |
item(QueryContext qc,
InputInfo ii)
Evaluates the expression and returns the resulting item,
or a
null reference if the expression yields an empty sequence. |
static Item |
item(XQFunction fun,
Value[] arg,
QueryContext qc,
InputInfo ii)
Calls the given function with the given arguments, returning zero or one item.
|
Iter |
iter(QueryContext qc)
Evaluates the expression and returns an iterator on the resulting items.
|
void |
markTailCalls(QueryContext qc)
Finds and marks tail calls, enabling TCO.
|
Value |
value(QueryContext qc)
Evaluates the expression and returns the resulting value.
|
static Value |
value(XQFunction fun,
Value[] arg,
QueryContext qc,
InputInfo ii)
Calls the given function with the given arguments, returning zero or more items.
|
accept, allAreValues, checkUp, compile, copyAll, count, exprSize, has, inline, oneIsEmpty, plan, 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, copy, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, isValue, iterable, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
addPlan, addPlan, description, planAttr, planElem, toErrorString, toString
public final void markTailCalls(QueryContext qc)
Expr
markTailCalls
in class Expr
qc
- query context, null
if the changes should not be reportedpublic final Item item(QueryContext qc, InputInfo ii) throws QueryException
Expr
null
reference if the expression yields an empty sequence.
If this method is not overwritten, Expr.iter(QueryContext)
must be implemented by an
expression, as it may be called by this method.item
in class ParseExpr
qc
- query contextii
- input infonull
QueryException
- query exceptionpublic final Value value(QueryContext qc) throws QueryException
Expr
value
in class ParseExpr
qc
- query contextQueryException
- query exceptionpublic final Iter iter(QueryContext qc) throws QueryException
Expr
Expr.item(QueryContext, InputInfo)
must be implemented
by an expression, as it may be called by this method.iter
in class ParseExpr
qc
- query contextQueryException
- query exceptionpublic static Item item(XQFunction fun, Value[] arg, QueryContext qc, InputInfo ii) throws QueryException
fun
- function to callarg
- arguments to the functionqc
- query contextii
- input infoQueryException
- query exceptionpublic static Value value(XQFunction fun, Value[] arg, QueryContext qc, InputInfo ii) throws QueryException
fun
- function to callarg
- arguments to the functionqc
- query contextii
- input infoQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.