org.basex.query.path
Class IterPath
java.lang.Object
org.basex.query.ExprInfo
org.basex.query.expr.Expr
org.basex.query.path.Path
org.basex.query.path.AxisPath
org.basex.query.path.IterPath
public final class IterPath
- extends AxisPath
Iterative path expression for location paths which return sorted and
duplicate-free results.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Dennis Stratmann, Christian Gruen
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
Expr.Use |
Fields inherited from class org.basex.query.path.AxisPath |
step |
Fields inherited from class org.basex.query.path.Path |
root |
Method Summary |
boolean |
duplicates(QueryContext ctx)
Returns true if the expression might yield duplicates and unsorted
results. |
Iter |
iter(QueryContext ctx)
Evaluates the expression and returns an iterator on the resulting items. |
Methods inherited from class org.basex.query.path.AxisPath |
addPred, addText, comp, get, invertPath, plan, removable, remove, returned, sameAs, size, toString, uses |
Methods inherited from class org.basex.query.expr.Expr |
atomic, checkCtx, checkDbl, checkItr, e, ebv, i, indexAccessible, indexEquivalent, test, v |
IterPath
public IterPath(Expr r,
Step[] s)
- Constructor.
- Parameters:
r
- root expressions
- location steps
iter
public Iter iter(QueryContext ctx)
- Description copied from class:
Expr
- Evaluates the expression and returns an iterator on the resulting items.
If this method is not overwritten,
Expr.atomic(org.basex.query.QueryContext)
must be implemented.
- Overrides:
iter
in class AxisPath
- Parameters:
ctx
- query context
- Returns:
- resulting item
duplicates
public boolean duplicates(QueryContext ctx)
- Description copied from class:
Expr
- Returns true if the expression might yield duplicates and unsorted
results.
- Overrides:
duplicates
in class Expr
- Parameters:
ctx
- query context
- Returns:
- result of check