com.icl.saxon.tinytree

Class DescendantEnumeration

final class DescendantEnumeration extends Object implements AxisEnumeration

This class supports both the descendant:: and descendant-or-self:: axes, which are identical except for the route to the first candidate node. It enumerates descendants of the specified node. The calling code must ensure that the start node is not an attribute or namespace node.
Field Summary
TinyDocumentImpldocument
booleanincludeSelf
intlast
intnextNodeNr
TinyNodeImplparentNode
intstartDepth
TinyNodeImplstartNode
NodeTesttest
Constructor Summary
protected DescendantEnumeration(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()

Field Detail

document

TinyDocumentImpl document

includeSelf

boolean includeSelf

last

int last

nextNodeNr

int nextNodeNr

parentNode

TinyNodeImpl parentNode

startDepth

int startDepth

startNode

TinyNodeImpl startNode

test

NodeTest test

Constructor Detail

DescendantEnumeration

protected DescendantEnumeration(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()