|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.ParseExpr
org.basex.query.expr.Simple
org.basex.query.expr.Pos
public final class Pos
Pos expression.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary |
---|
Fields inherited from class org.basex.query.expr.ParseExpr |
---|
info, size, type |
Method Summary | |
---|---|
Pos |
copy(QueryContext ctx,
VarScope scp,
IntObjMap<Var> vs)
Copies an expression. |
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. |
boolean |
has(Expr.Flag flag)
Indicates if an expression has the specified compiler property. |
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(FElem plan)
Creates an 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()
|
Methods inherited from class org.basex.query.expr.Simple |
---|
accept, checkUp, compile, count, exprSize, inline, removable |
Methods inherited from class org.basex.query.expr.ParseExpr |
---|
checkAdmin, checkAllUp, checkBinary, checkBln, checkColl, checkCreate, checkCtx, checkDbl, checkDBNode, checkEStr, checkEStr, checkFunc, checkItem, checkItr, checkItr, checkMap, checkNode, checkNode, checkNode, checkNoEmpty, checkNoneUp, checkNoUp, checkQNm, checkStr, checkStr, checkStrBin, checkType, checkWrite, compBln, copyType, ebv, iter, optPre, preEval, size, test, type, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isItem, isVacuous, isValue, iterable, markTailCalls, optimize, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, description, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Expr get(long mn, long mx, InputInfo ii)
mn
- minimum valuemx
- minimum valueii
- input info
public static Expr get(CmpV.OpV cmp, Expr a, Expr o, InputInfo ii)
cmp
- comparatora
- argumento
- original expressionii
- input info
null
public Bln item(QueryContext ctx, InputInfo ii) throws QueryException
Expr
null
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 ParseExpr
ctx
- query contextii
- input info
QueryException
- query exceptionpublic Pos copy(QueryContext ctx, VarScope scp, IntObjMap<Var> vs)
Expr
copy
in class Expr
ctx
- query contextscp
- variable scope for creating new variablesvs
- mapping from old variable IDs to new variable copies
public boolean skip(QueryContext ctx)
ctx
- query context
public boolean has(Expr.Flag flag)
Expr
Expr.compile(org.basex.query.QueryContext, org.basex.query.var.VarScope)
methods to test properties of sub-expressions.
It returns true
if at least one test is successful.
has
in class Simple
flag
- flag to be found
public boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
public void plan(FElem plan)
ExprInfo
plan
in class Simple
plan
- root elementpublic java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |