Class Step


  • public class Step
    extends java.lang.Object
    Version:
    $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
    • Field Detail

      • axis

        private int axis
    • Constructor Detail

      • Step

        protected Step​(int axis,
                       NodeTest nodeTest,
                       Expression[] predicates)
        Create a new Step.
        Parameters:
        axis - axis code
        nodeTest - step test
        predicates - predicate expressions
    • Method Detail

      • getAxis

        public int getAxis()
        Get the axis code.
        Returns:
        int
      • getNodeTest

        public NodeTest getNodeTest()
        Get the step test.
        Returns:
        NodeTest
      • getPredicates

        public Expression[] getPredicates()
        Get the predicates.
        Returns:
        Expression[]
      • isContextDependent

        public boolean isContextDependent()
        Learn whether this step contains any predicate that is context dependent.
        Returns:
        boolean
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • axisToString

        public static java.lang.String axisToString​(int axis)
        Decode an axis code to its name.
        Parameters:
        axis - int code
        Returns:
        String name.
        See Also:
        Compiler