Class AxisStep

  • All Implemented Interfaces:
    Step

    public class AxisStep
    extends java.lang.Object
    implements Step
    Represents an axis step in an XPath path expression.
    Author:
    Garret Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      AxisStep​(java.lang.String newAxis, java.lang.String newNodeTest)
      Constructs a new location step with the specified axis and node test.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAxis()  
      java.lang.String getNodeTest()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AxisStep

        public AxisStep​(java.lang.String newAxis,
                        java.lang.String newNodeTest)
        Constructs a new location step with the specified axis and node test.
        Parameters:
        newAxis - The relationship between this step and the context node.
        newNodeTest - The node type selected by the location step.
    • Method Detail

      • getAxis

        public java.lang.String getAxis()
        Returns:
        The axis of the location step.
      • getNodeTest

        public java.lang.String getNodeTest()
        Returns:
        The node type selected by the location step.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the location step in the form "axis::nodeTest", or "root" for the special location step containing "/" as an axis.