public final class DynamicFunc extends Arr
| Constructor and Description |
|---|
DynamicFunc(InputInfo ii,
Expr fun,
Expr[] arg)
Function constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
java.lang.String |
description()
Returns a string description of the expression.
|
Item |
item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
java.lang.String |
toString() |
Value |
value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
allAreValues, count, indexEquivalent, removable, remove, toString, usescheckBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, optPre, preEval, size, test, typeaddText, compEbv, hasFreeVars, indexAccessible, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, sameAspublic Expr comp(QueryContext ctx) throws QueryException
Exprcomp in class Arrctx - query contextQueryException - query exceptionpublic Item item(QueryContext ctx, InputInfo ii) throws QueryException
Exprnull reference, if the expression yields an empty sequence.
If this method is not overwritten, Expr.iter(org.basex.query.QueryContext) must be implemented
by an expression, as it may be called by this method.item in class ParseExprctx - query contextii - input infoQueryException - query exceptionpublic Value value(QueryContext ctx) throws QueryException
Exprvalue in class ParseExprctx - query contextQueryException - query exceptionpublic Iter iter(QueryContext ctx) throws QueryException
ExprExpr.item(org.basex.query.QueryContext, org.basex.util.InputInfo) must be implemented
by an expression, as it may be called by this method.iter in class ParseExprctx - query contextQueryException - query exceptionpublic void plan(Serializer ser) throws java.io.IOException
ExprInfopublic java.lang.String description()
ExprInfoExprInfo.toString() method,
arguments are not included in the output.description in class ExprInfo