java.lang.Object
org.apache.commons.jxpath.ri.compiler.Step

public class Step extends Object
A step.
  • Field Details

    • axis

      private final int axis
    • nodeTest

      private final NodeTest nodeTest
    • predicates

      private final Expression[] predicates
  • Constructor Details

    • Step

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

    • axisToString

      public static String axisToString(int axis)
      Decode an axis code to its name.
      Parameters:
      axis - int code
      Returns:
      String name.
      See Also:
      • Compiler
      • "http://www.w3.org/TR/xpath#axes"
    • getAxis

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object