org.basex.query.path
Class SingleIterPath
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.SingleIterPath
public final class SingleIterPath
- extends AxisPath
Iterative path expression.
- Author:
- Workgroup DBIS, University of Konstanz 2005-09, ISC License, Dennis Stratmann
| 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleIterPath
public SingleIterPath(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