/** Returns a string representation of this object. */ public String toString() { if (axis.type == Axis.SELF) { return "."; } if (axis.type == Axis.ATTRIBUTE) { return "@" + nodeTest.toString(); } if (axis.type == Axis.CHILD) { return nodeTest.toString(); } if (axis.type == Axis.DESCENDANT) { return "//"; } return "??? ("+axis.type+')'; } // toString():String
/** Copy constructor. */ protected Step(Step step) { axis = (Axis)step.axis.clone(); nodeTest = (NodeTest)step.nodeTest.clone(); } // <init>(Step)
/** Returns a clone of this object. */ public Object clone() { return new NodeTest(this); } // clone():Object