com.icl.saxon.tree

Class AncestorEnumeration

Implemented Interfaces:
AxisEnumeration, LastPositionFinder, NodeEnumeration

(package private) final class AncestorEnumeration
extends TreeEnumeration

Field Summary

Fields inherited from class com.icl.saxon.tree.TreeEnumeration

last, next, nodeTest, start

Constructor Summary

AncestorEnumeration(NodeImpl node, NodeTest nodeTest, boolean includeSelf)

Method Summary

int
getLastPosition()
Get the last position, that is the number of nodes in the enumeration
protected void
step()
Advance one step along the axis: the resulting node might not meet the required criteria for inclusion

Methods inherited from class com.icl.saxon.tree.TreeEnumeration

advance, conforms, count, hasMoreElements, isPeer, isReverseSorted, isSorted, nextElement, step

Constructor Details

AncestorEnumeration

public AncestorEnumeration(NodeImpl node,
                           NodeTest nodeTest,
                           boolean includeSelf)

Method Details

getLastPosition

public int getLastPosition()
Get the last position, that is the number of nodes in the enumeration
Specified by:
getLastPosition in interface AxisEnumeration
getLastPosition in interface LastPositionFinder

step

protected void step()
Advance one step along the axis: the resulting node might not meet the required criteria for inclusion
Overrides:
step in interface TreeEnumeration