Class Step
java.lang.Object
org.apache.commons.jxpath.ri.compiler.Step
A step.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final NodeTestprivate final Expression[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStep(int axis, NodeTest nodeTest, Expression[] predicates) Constructs a new Step. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaxisToString(int axis) Decode an axis code to its name.intgetAxis()Gets the axis code.Gets the step test.Gets the predicates.booleanTests whether this step contains any predicate that is context dependent.toString()
-
Field Details
-
axis
private final int axis -
nodeTest
-
predicates
-
-
Constructor Details
-
Step
Constructs a new Step.- Parameters:
axis- axis codenodeTest- step testpredicates- predicate expressions
-
-
Method Details
-
axisToString
Decode an axis code to its name.- Parameters:
axis- int code- Returns:
- String name.
- See Also:
-
getAxis
public int getAxis()Gets the axis code.- Returns:
- int
-
getNodeTest
Gets the step test.- Returns:
- NodeTest
-
getPredicates
Gets the predicates.- Returns:
- Expression[]
-
isContextDependent
public boolean isContextDependent()Tests whether this step contains any predicate that is context dependent.- Returns:
- boolean
-
toString
-