public final class FNSimple extends StandardFunc
| Constructor and Description |
|---|
FNSimple(InputInfo ii,
Function f,
Expr... e)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Expr |
cmp(QueryContext ctx)
Performs function specific compilations.
|
Expr |
compEbv(QueryContext ctx)
This method is called at compile time by expressions that perform
effective boolean value tests (e.g.
|
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.
|
Value |
value(QueryContext ctx)
Evaluates the expression and returns the resulting value.
|
atom, comp, description, isFunction, plan, toStringallAreValues, 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, hasFreeVars, indexAccessible, isEmpty, isItem, isVacuous, isValue, iterable, markTailCalls, sameAspublic 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 Value value(QueryContext ctx) throws QueryException
Exprvalue 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 Expr cmp(QueryContext ctx)
StandardFuncctx - query contextpublic Expr compEbv(QueryContext ctx)
ExprThis method is called at compile time by expressions that perform
effective boolean value tests (e.g. If or Preds).
If the arguments of the called expression return a boolean anyway,
the expression will be simplified.
Example in CmpV:
if($x eq true()) is rewritten to if($x), if $x
will always yield a single boolean.