Class AxisStep

  • All Implemented Interfaces:
    java.util.function.Function<XdmItem,​java.util.stream.Stream<? extends XdmNode>>

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

      Constructors 
      Constructor Description
      AxisStep​(Axis axis)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<? extends XdmNode> apply​(XdmItem node)
      Apply this function to the given argument.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • AxisStep

        public AxisStep​(Axis axis)
    • Method Detail

      • apply

        public java.util.stream.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.