org.ucl.xpath
Class AncestorOrSelfAxis

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

public class AncestorOrSelfAxis
extends ReverseAxis

The ancestor-or-self axis contains the context node and the ancestors of the context node, this always includes the root node.


Constructor Summary
AncestorOrSelfAxis()
           
 
Method Summary
 ResultSequence iterate(NodeType node, DynamicContext dc)
          Get ancestor nodes of the context node and the context node itself.
 
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

AncestorOrSelfAxis

public AncestorOrSelfAxis()
Method Detail

iterate

public ResultSequence iterate(NodeType node,
                              DynamicContext dc)
Get ancestor nodes of the context node and the context node itself.

Parameters:
node - is the type of node.
dc - is the dynamic context.
Returns:
The context node and its ancestors.