Class AxisStep

java.lang.Object
net.sf.saxon.s9api.streams.Step<XdmNode>
net.sf.saxon.s9api.streams.AxisStep
All Implemented Interfaces:
Function<XdmItem,Stream<? extends XdmNode>>

class AxisStep extends Step<XdmNode>
An AxisStep is a Step that implements one of the 13 XPath Axes.
  • Constructor Details

    • AxisStep

      public AxisStep(Axis axis)
  • Method Details

    • apply

      public Stream<? extends XdmNode> apply(XdmItem node)
      Apply this function to the given argument. In other words, return a stream of nodes selected by this XPath axis, starting at the supplied origin
      Parameters:
      node - the origin node for the navigation
      Returns:
      the stream of nodes selected by the axis. The nodes are returned in Axis order (for a reverse axis like preceding-sibling or ancestor, this is the reverse of document order). If the supplied argument is not a node, return an empty stream.