public final class Pos extends Simple
| Modifier and Type | Method and Description |
|---|---|
static Expr |
get(CmpV.OpV cmp,
Expr a,
Expr o,
InputInfo ii)
Returns an instance of this class, if possible, and the input expression
otherwise.
|
static Expr |
get(long mn,
long mx,
InputInfo ii)
Returns a position expression, or an optimized boolean item.
|
Bln |
item(QueryContext ctx,
InputInfo ii)
Evaluates the expression and returns the resulting item or
a
null reference, if the expression yields an empty sequence. |
void |
plan(Serializer ser)
Serializes the expression tree.
|
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality.
|
boolean |
skip(QueryContext ctx)
Returns false if no more results can be expected.
|
java.lang.String |
toString() |
boolean |
uses(Expr.Use u)
Indicates if an expression uses the specified type or operation.
|
checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkIO, checkItem, checkItr, checkItr, checkMap, checkNode, checkNoEmpty, checkStr, checkType, checkUp, checkUp, checkWrite, compBln, ebv, iter, optPre, preEval, size, test, type, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCallsdescription, infopublic static Expr get(long mn, long mx, InputInfo ii)
mn - minimum valuemx - minimum valueii - input infopublic static Expr get(CmpV.OpV cmp, Expr a, Expr o, InputInfo ii) throws QueryException
cmp - comparatora - argumento - original expressionii - input infonullQueryException - query exceptionpublic Bln 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 boolean skip(QueryContext ctx)
ctx - 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 sameAs(Expr cmp)
Exprpublic void plan(Serializer ser) throws java.io.IOException
ExprInfo