org.apache.xpath.axes
public class MatchPatternIterator extends LocPathIterator
Method Summary | |
---|---|
short | acceptNode(int n, XPathContext xctxt)
Test whether a specified node is visible in the logical view of a
TreeWalker or NodeIterator. |
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 | 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.
|
Parameters: n The node to check to see if it passes the filter or not.
Returns: a constant to determine whether the node is accepted, rejected, or skipped, as defined above .
detach
has been invoked, calls to
nextNode
orpreviousNode
will raise the
exception INVALID_STATE_ERR.Returns: The next Node
in the set being iterated over, or
null
if there are no more members in that set.
Parameters: context The XPath runtime context for this transformation.