public final class FNGen extends StandardFunc
| Modifier and Type | Field and Description |
|---|---|
static ExtTest |
OUTPUT_SERIAL
Response node test.
|
| Constructor and Description |
|---|
FNGen(InputInfo ii,
Function f,
Expr[] e)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
cmp(QueryContext ctx)
Performs function specific compilations.
|
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.
|
boolean |
iterable()
Returns true if the expression is iterable, i.e., if it does not contain
any duplicates and if all results are sorted.
|
static java.lang.String |
parameters(ANode nd,
InputInfo ii)
Returns all serialization options defined by a serialization element.
|
boolean |
uses(Expr.Use u)
Indicates if an expression uses the specified type or operation.
|
Value |
value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
atom, comp, description, isFunction, plan, toStringallAreValues, count, indexEquivalent, removable, remove, toStringcheckBln, 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, isItem, isVacuous, isValue, markTailCalls, sameAspublic static final ExtTest OUTPUT_SERIAL
public 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 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 Expr cmp(QueryContext ctx)
StandardFuncctx - query contextpublic boolean uses(Expr.Use u)
ExprExpr.comp(org.basex.query.QueryContext) methods to test the properties of sub-expressions.
It will return true as soon as at least one test is successful.public boolean iterable()
ExprAxisPath.public static java.lang.String parameters(ANode nd, InputInfo ii) throws QueryException
nd - root nodeii - input infoQueryException - query exception