org.apache.xpath.axes
public class OneStepIterator extends ChildTestIterator
See Also: org.apache.xpath.axes#LocPathIterator
UNKNOWN: advanced
| Constructor Summary | |
|---|---|
| OneStepIterator(DTMAxisIterator iterator, int axis)
Create a OneStepIterator object.
| |
| Method Summary | |
|---|---|
| Object | clone()
Get a cloned iterator.
|
| DTMIterator | cloneWithReset()
Get a cloned Iterator that is reset to the beginning
of the query.
|
| boolean | deepEquals(Expression expr) |
| void | detach()
Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state. |
| int | getAxis()
Returns the axis being iterated, if it is known.
|
| int | getLength()
The number of nodes in the list. |
| boolean | isReverseAxes()
Tells if this is a reverse axes. |
| void | reset()
Reset the iterator. |
| void | setRoot(int context, Object environment)
Initialize the context values for this expression
after it is cloned.
|
Parameters: iterator The DTM iterator which this iterator will use. axis One of Axis.Child, etc., or -1 if the axis is unknown.
Throws: javax.xml.transform.TransformerException
Returns: A new iterator that can be used without mutating this one.
Throws: CloneNotSupportedException
Returns: A cloned NodeIterator set of the start of the query.
Throws: CloneNotSupportedException
See Also: deepEquals
detach has been invoked, calls to
nextNode orpreviousNode will raise the
exception INVALID_STATE_ERR.Returns: Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.
length-1 inclusive.
Returns: The number of nodes in the list, always greater or equal to zero.
Returns: true for this class.
Parameters: context The XPath runtime context for this transformation.