Class Step
- java.lang.Object
-
- org.apache.commons.jxpath.ri.compiler.Step
-
public class Step extends java.lang.Object- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
-
Field Summary
Fields Modifier and Type Field Description private intaxisprivate NodeTestnodeTestprivate Expression[]predicates
-
Constructor Summary
Constructors Modifier Constructor Description protectedStep(int axis, NodeTest nodeTest, Expression[] predicates)Create a new Step.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringaxisToString(int axis)Decode an axis code to its name.intgetAxis()Get the axis code.NodeTestgetNodeTest()Get the step test.Expression[]getPredicates()Get the predicates.booleanisContextDependent()Learn whether this step contains any predicate that is context dependent.java.lang.StringtoString()
-
-
-
Field Detail
-
axis
private int axis
-
nodeTest
private NodeTest nodeTest
-
predicates
private Expression[] predicates
-
-
Constructor Detail
-
Step
protected Step(int axis, NodeTest nodeTest, Expression[] predicates)Create a new Step.- Parameters:
axis- axis codenodeTest- step testpredicates- 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:
toStringin classjava.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
-
-