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

public class Step extends Object
A step.
  • Constructor Details Link icon

    • Step Link icon

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

    • axisToString Link icon

      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 Link icon

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

      Gets the step test.
      Returns:
      NodeTest
    • getPredicates Link icon

      Gets the predicates.
      Returns:
      Expression[]
    • isContextDependent Link icon

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

      public String toString()
      Overrides:
      toString in class Object