com.icl.saxon.tinytree

Class AncestorEnumeration

final class AncestorEnumeration extends Object implements AxisEnumeration

This class enumerates the ancestor:: or ancestor-or-self:: axes, starting at a given node. The start node will never be the root.
Constructor Summary
AncestorEnumeration(TinyDocumentImpl doc, TinyNodeImpl node, NodeTest nodeTest, boolean includeSelf)
Method Summary
intgetLastPosition()
Get the last position, that is the number of nodes in the enumeration
booleanhasMoreElements()
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()

Constructor Detail

AncestorEnumeration

public AncestorEnumeration(TinyDocumentImpl doc, TinyNodeImpl node, NodeTest nodeTest, boolean includeSelf)

Method Detail

getLastPosition

public int getLastPosition()
Get the last position, that is the number of nodes in the enumeration

hasMoreElements

public boolean hasMoreElements()

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()