|
||||||||||
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.path.Path
org.basex.query.path.AxisPath
public abstract class AxisPath
Abstract axis path 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.path.Path |
---|
root, steps |
Fields inherited from class org.basex.query.expr.ParseExpr |
---|
info, size, type |
Method Summary | |
---|---|
Expr |
addText(QueryContext ctx)
Optionally adds a text node to an expression for potential index rewriting. |
boolean |
cheap()
Guesses if the evaluation of this axis path is cheap. |
protected Expr |
compilePath(QueryContext ctx,
VarScope scp)
Compiles the location path. |
AxisPath |
invertPath(Expr r,
Step curr)
Inverts a location path. |
boolean |
iterable()
Returns true if the expression is iterable, i.e., if it will not contain any duplicate nodes and if all nodes will be are sorted. |
java.util.ArrayList<PathNode> |
nodes(QueryContext ctx)
Returns the path nodes that will result from this path. |
Expr |
optimize(QueryContext ctx,
VarScope scp)
Optimizes an already compiled expression without recompiling its sub-expressions. |
boolean |
removable(Var v)
Checks if the specified variable is replaceable by a context item. |
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality. |
Step |
step(int i)
Returns the specified axis step. |
Methods inherited from class org.basex.query.path.Path |
---|
accept, addPreds, checkUp, compile, count, exprSize, get, has, inline, plan, toString |
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, item, iter, optPre, preEval, size, test, type, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
compEbv, copy, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isItem, isVacuous, isValue, markTailCalls, 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 |
---|
protected final Expr compilePath(QueryContext ctx, VarScope scp) throws QueryException
Path
compilePath
in class Path
ctx
- query contextscp
- variable scope
QueryException
- query exceptionpublic Expr optimize(QueryContext ctx, VarScope scp) throws QueryException
Expr
optimize
in class Path
ctx
- query contextscp
- variable scope
QueryException
- query exceptionpublic final AxisPath invertPath(Expr r, Step curr)
r
- new root nodecurr
- current location step
public final Expr addText(QueryContext ctx)
Expr
addText
in class Expr
ctx
- query context
public final Step step(int i)
i
- index
public java.util.ArrayList<PathNode> nodes(QueryContext ctx)
ctx
- query context
null
if nodes cannot be evaluatedpublic final boolean removable(Var v)
Expr
Preds.removable(org.basex.query.var.Var)
, if one of the variables is used within a predicate.MixedPath.removable(org.basex.query.var.Var)
, if the variable occurs within the path.GFLWOR.compile(org.basex.query.QueryContext, org.basex.query.var.VarScope)
to rewrite where clauses
into predicates.
removable
in class Path
v
- variable to be replaced
public final boolean iterable()
Expr
AxisPath
.
iterable
in class Expr
public boolean cheap()
public final boolean sameAs(Expr cmp)
Expr
sameAs
in class Expr
cmp
- expression to be compared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |