org.ucl.xpath.ast
Class ForwardStep

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Step
          extended byorg.ucl.xpath.ast.ForwardStep

public class ForwardStep
extends Step

Class for Forward stepping support for Step operations.


Field Summary
static int AT_SYM
          Set internal value for AT_SYM.
static int ATTRIBUTE
          Set internal value for ATTRIBUTE.
static int CHILD
          Set internal value for CHILD.
static int DESCENDANT
          Set internal value for DESCENDANT.
static int DESCENDANT_OR_SELF
          Set internal value for DESCENDANT_OR_SELF.
static int FOLLOWING
          Set internal value for FOLLOWING.
static int FOLLOWING_SIBLING
          Set internal value for FOLLOWING_SIBLING.
static int NAMESPACE
          Set internal value for NAMESPACE.
static int NONE
          Set internal value for NONE.
static int SELF
          Set internal value for SELF.
 
Constructor Summary
ForwardStep(int axis, NodeTest node_test)
          Constructor for ForwardStep.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 int axis()
          Support for Axis interface.
 ForwardAxis iterator()
          Support for Iterator interface.
 void set_axis(int axis)
          Set Axis to current.
 
Methods inherited from class org.ucl.xpath.ast.Step
node_test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Set internal value for NONE.

See Also:
Constant Field Values

CHILD

public static final int CHILD
Set internal value for CHILD.

See Also:
Constant Field Values

DESCENDANT

public static final int DESCENDANT
Set internal value for DESCENDANT.

See Also:
Constant Field Values

ATTRIBUTE

public static final int ATTRIBUTE
Set internal value for ATTRIBUTE.

See Also:
Constant Field Values

SELF

public static final int SELF
Set internal value for SELF.

See Also:
Constant Field Values

DESCENDANT_OR_SELF

public static final int DESCENDANT_OR_SELF
Set internal value for DESCENDANT_OR_SELF.

See Also:
Constant Field Values

FOLLOWING_SIBLING

public static final int FOLLOWING_SIBLING
Set internal value for FOLLOWING_SIBLING.

See Also:
Constant Field Values

FOLLOWING

public static final int FOLLOWING
Set internal value for FOLLOWING.

See Also:
Constant Field Values

NAMESPACE

public static final int NAMESPACE
Set internal value for NAMESPACE.

See Also:
Constant Field Values

AT_SYM

public static final int AT_SYM
Set internal value for AT_SYM.

See Also:
Constant Field Values
Constructor Detail

ForwardStep

public ForwardStep(int axis,
                   NodeTest node_test)
Constructor for ForwardStep.

Parameters:
axis - Axis number.
node_test - Node test.
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.

axis

public int axis()
Support for Axis interface.

Returns:
Result of Axis operation.

set_axis

public void set_axis(int axis)
Set Axis to current.

Parameters:
axis - Axis to set.

iterator

public ForwardAxis iterator()
Support for Iterator interface.

Returns:
Result of Iterator operation.