org.ucl.xpath
Class AncestorAxis

java.lang.Object
  extended byorg.ucl.xpath.ReverseAxis
      extended byorg.ucl.xpath.ParentAxis
          extended byorg.ucl.xpath.AncestorAxis
All Implemented Interfaces:
Axis

public class AncestorAxis
extends ParentAxis

Returns the ancestors of the context node, this always includes the root node.


Constructor Summary
AncestorAxis()
           
 
Method Summary
 ResultSequence iterate(NodeType node, DynamicContext dc)
          Get the ancestors of the context node.
 
Methods inherited from class org.ucl.xpath.ReverseAxis
principal_node_kind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AncestorAxis

public AncestorAxis()
Method Detail

iterate

public ResultSequence iterate(NodeType node,
                              DynamicContext dc)
Get the ancestors of the context node.

Specified by:
iterate in interface Axis
Overrides:
iterate in class ParentAxis
Parameters:
node - is the type of node.
dc - is the dynamic context.
Returns:
The nodes that are ancestors of the context node.