public final class For extends ForLet
| Constructor and Description |
|---|
For(InputInfo ii,
Expr e,
Var v)
Constructor.
|
For(InputInfo ii,
Expr e,
Var v,
Var p,
Var s)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
For |
comp(QueryContext ctx)
Compiles and optimizes the expression, assigns data types and
cardinalities.
|
boolean |
declares(Var v)
Checks if the given variable is declared by this clause.
|
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() |
Var[] |
vars()
Gathers all variables declared by this clause.
|
checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, item, optPre, preEval, size, test, type, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, sameAsdescription, infopublic For(InputInfo ii, Expr e, Var v)
ii - input infoe - variable inputv - variablepublic For comp(QueryContext ctx) throws QueryException
Exprcomp in class ForLetctx - query contextQueryException - query exceptionpublic Iter iter(QueryContext ctx)
ExprExpr.item(org.basex.query.QueryContext, org.basex.util.InputInfo) must be implemented
by an expression, as it may be called by this method.public void plan(Serializer ser) throws java.io.IOException
ExprInfopublic boolean declares(Var v)
ForLet