org.apache.xpath.axes

Class OneStepIteratorForward

public class OneStepIteratorForward extends ChildTestIterator

This class implements a general iterator for those LocationSteps with only one step, and perhaps a predicate, that only go forward (i.e. it can not be used with ancestors, preceding, etc.)

See Also: org.apache.xpath.axes#ChildTestIterator

UNKNOWN: advanced

Constructor Summary
OneStepIteratorForward(int axis)
Create a OneStepIterator object that will just traverse the self axes.
Method Summary
booleandeepEquals(Expression expr)
intgetAxis()
Returns the axis being iterated, if it is known.
voidsetRoot(int context, Object environment)
Initialize the context values for this expression after it is cloned.

Constructor Detail

OneStepIteratorForward

public OneStepIteratorForward(int axis)
Create a OneStepIterator object that will just traverse the self axes.

Parameters: axis One of the org.apache.xml.dtm.Axis integers.

Throws: javax.xml.transform.TransformerException

Method Detail

deepEquals

public boolean deepEquals(Expression expr)

See Also: deepEquals

getAxis

public int getAxis()
Returns the axis being iterated, if it is known.

Returns: Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.

setRoot

public void setRoot(int context, Object environment)
Initialize the context values for this expression after it is cloned.

Parameters: context The XPath runtime context for this transformation.

Copyright © 2005 Apache XML Project. All Rights Reserved.