org.basex.query.xquery.path
Class IterStep

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.xquery.expr.Expr
          extended by org.basex.query.xquery.expr.Arr
              extended by org.basex.query.xquery.path.Step
                  extended by org.basex.query.xquery.path.IterStep

public final class IterStep
extends Step

Path expression. Mustn't be called with more than one predicate.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.xquery.expr.Expr
Expr.Return, Expr.Using
 
Field Summary
 
Fields inherited from class org.basex.query.xquery.path.Step
axis, test
 
Fields inherited from class org.basex.query.xquery.expr.Arr
expr
 
Constructor Summary
IterStep(Axis a, Test t, Expr[] p, boolean last, boolean num)
          Constructor.
 
Method Summary
 NodeIter iter(XQContext ctx)
          Evaluates the expression and returns an iterator on the resulting items.
 
Methods inherited from class org.basex.query.xquery.path.Step
comp, plan, returned, simple, toString, uses
 
Methods inherited from class org.basex.query.xquery.expr.Expr
e, i
 
Methods inherited from class org.basex.query.ExprInfo
color, info, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IterStep

public IterStep(Axis a,
                Test t,
                Expr[] p,
                boolean last,
                boolean num)
Constructor.

Parameters:
a - axis
t - node test
p - predicates
last - lastFlag is true if predicate has a last function
num - numberFlag is true if predicate has a numeric value
Method Detail

iter

public NodeIter iter(XQContext ctx)
              throws XQException
Description copied from class: Expr
Evaluates the expression and returns an iterator on the resulting items.

Overrides:
iter in class Step
Parameters:
ctx - query context
Returns:
resulting item
Throws:
XQException - evaluation exception