org.ucl.xpath.ast
Class AxisStep

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Expr
          extended byorg.ucl.xpath.ast.StepExpr
              extended byorg.ucl.xpath.ast.AxisStep

public class AxisStep
extends StepExpr

Class for AxisStep, this generates a sequence of zero or more nodes. These nodes are always returned in Document Order. This can be Forward Step or Reverse Step.


Constructor Summary
AxisStep(Step step, java.util.Collection exprs)
          Constructor for AxisStep.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 java.util.Iterator iterator()
          Interator.
 int predicate_count()
          Determines size of expressions.
 void set_step(Step s)
          Set the step direction.
 Step step()
          Advances to next step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisStep

public AxisStep(Step step,
                java.util.Collection exprs)
Constructor for AxisStep.

Parameters:
step - Defines forward/reverse step.
exprs - Collection of xpath expressions.
Method Detail

accept

public java.lang.Object accept(XPathVisitor v)
Support for Visitor interface.

Specified by:
accept in class XPathNode
Returns:
Result of Visitor operation.

step

public Step step()
Advances to next step.

Returns:
Previous step.

set_step

public void set_step(Step s)
Set the step direction.


iterator

public java.util.Iterator iterator()
Interator.

Returns:
Iterated expressions.

predicate_count

public int predicate_count()
Determines size of expressions.

Returns:
Size of expressions.