com.icl.saxon.tinytree

Class PrecedingSiblingEnumeration

final class PrecedingSiblingEnumeration extends Object implements AxisEnumeration

This class supports the preceding-sibling axis. The starting node must be an element, text node, comment, or processing instruction: to ensure this, construct the enumeration using NodeInfo#getEnumeration()
Field Summary
intdepth
TinyDocumentImpldocument
intlast
intnextNodeNr
TinyNodeImplparentNode
TinyNodeImplstartNode
NodeTesttest
Constructor Summary
protected PrecedingSiblingEnumeration(TinyDocumentImpl doc, TinyNodeImpl node, NodeTest nodeTest)
Method Summary
intgetLastPosition()
Get the last position, that is the number of nodes in the enumeration
booleanhasMoreElements()
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()

Field Detail

depth

int depth

document

TinyDocumentImpl document

last

int last

nextNodeNr

int nextNodeNr

parentNode

TinyNodeImpl parentNode

startNode

TinyNodeImpl startNode

test

NodeTest test

Constructor Detail

PrecedingSiblingEnumeration

protected PrecedingSiblingEnumeration(TinyDocumentImpl doc, TinyNodeImpl node, NodeTest nodeTest)

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