com.icl.saxon.tree

Class PrecedingEnumeration

Implemented Interfaces:
AxisEnumeration, LastPositionFinder, NodeEnumeration

(package private) final class PrecedingEnumeration
extends TreeEnumeration

Field Summary

(package private) NodeImpl
nextAncestor

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

last, next, nodeTest, start

Constructor Summary

PrecedingEnumeration(NodeImpl node, NodeTest nodeTest)

Method Summary

protected boolean
conforms(NodeImpl node)
Special code to skip the ancestors of the start node
int
getLastPosition()
Get the last position, that is the number of nodes in the enumeration
protected void
step()

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

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

Field Details

nextAncestor

(package private)  NodeImpl nextAncestor

Constructor Details

PrecedingEnumeration

public PrecedingEnumeration(NodeImpl node,
                            NodeTest nodeTest)

Method Details

conforms

protected boolean conforms(NodeImpl node)
Special code to skip the ancestors of the start node
Overrides:
conforms in interface TreeEnumeration

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()
Overrides:
step in interface TreeEnumeration