org.apache.xpath.axes
public class DescendantIterator extends LocPathIterator
See Also: LocPathIterator
UNKNOWN: advanced
| Constructor Summary | |
|---|---|
| DescendantIterator()
Create a DescendantIterator object.
| |
| Method Summary | |
|---|---|
| int | asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression. |
| 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 | nextNode()
Returns the next node in the set and advances the position of the
iterator in the set. |
| void | setRoot(int context, Object environment)
Initialize the context values for this expression
after it is cloned.
|
WARNING: Do not mutate this class from this function!
Parameters: xctxt The XPath runtime context.
Returns: the first node out of the nodeset, or DTM.NULL.
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.
Returns: The next Node in the set being iterated over, or
null if there are no more members in that set.
Throws: DOMException
INVALID_STATE_ERR: Raised if this method is called after the
detach method was invoked.
Parameters: context The XPath runtime context for this transformation.