com.icl.saxon.tree

Class ArrayEnumeration

final class ArrayEnumeration extends Object implements AxisEnumeration

ArrayEnumeration is used to enumerate nodes held in an array. It is used only to enumerate the children of a node: this is assumed in the values returned by isSorted(), etc.

Author: Michael H. Kay

Field Summary
intindex
NodeInfo[]nodes
Constructor Summary
ArrayEnumeration(NodeInfo[] nodes)
Method Summary
intgetLastPosition()
booleanhasMoreElements()
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()

Field Detail

index

int index

nodes

NodeInfo[] nodes

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(NodeInfo[] nodes)

Method Detail

getLastPosition

public int getLastPosition()

hasMoreElements

public boolean hasMoreElements()

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()