Package org.htmlunit.xpath.axes
Interface SubContextList
-
- All Known Implementing Classes:
AttributeIterator,AxesWalker,BasicTestIterator,ChildIterator,ChildTestIterator,ContextMatchStepPattern,DescendantIterator,FilterExprWalker,FunctionPattern,LocPathIterator,OneStepIterator,OneStepIteratorForward,PredicatedNodeTest,ReverseAxesWalker,SelfIteratorNoPredicate,StepPattern,UnionChildIterator,UnionPathIterator,WalkingIterator,WalkingIteratorSorted
public interface SubContextListA class that implements this interface is a sub context node list, meaning it is a node list for a location path step for a predicate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLastPos(XPathContext xctxt)Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.intgetProximityPosition(XPathContext xctxt)Get the current sub-context position.
-
-
-
Method Detail
-
getLastPos
int getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.- Parameters:
xctxt- The XPath runtime context.- Returns:
- the number of nodes in the node list.
-
getProximityPosition
int getProximityPosition(XPathContext xctxt)
Get the current sub-context position.- Parameters:
xctxt- The XPath runtime context.- Returns:
- The position of the current node in the list.
-
-