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 int
axis
private NodeTest
nodeTest
private Expression[]
predicates
-
Constructor Summary
Constructors Modifier Constructor Description protected
Step(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.String
axisToString(int axis)
Decode an axis code to its name.int
getAxis()
Get the axis code.NodeTest
getNodeTest()
Get the step test.Expression[]
getPredicates()
Get the predicates.boolean
isContextDependent()
Learn whether this step contains any predicate that is context dependent.java.lang.String
toString()
-
-
-
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:
toString
in 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
-
-