str.append('^'); str.append(steps[j].toString()); if (j < steps.length - 1) { str.append('/');
Step step = new Step( new Axis(Axis.ATTRIBUTE), parseNodeTest(xtokens.nextToken(),xtokens,context)); throw new XPathException("c-general-xpath"); Step step = new Step( new Axis(Axis.ATTRIBUTE), parseNodeTest(xtokens.nextToken(),xtokens,context)); case XPath.Tokens.EXPRTOKEN_NAMETEST_QNAME: { check(expectingStep); Step step = new Step( new Axis(Axis.CHILD), parseNodeTest(token,xtokens,context)); throw new XPathException("c-general-xpath"); Step step = new Step( new Axis(Axis.CHILD), parseNodeTest(xtokens.nextToken(),xtokens,context)); Step step = new Step(axis, nodeTest); stepsVector.addElement(step); step = new Step(axis, nodeTest); stepsVector.addElement(step); expectingStep=true;
/** Returns a string representation of this object. */ public String toString() { StringBuffer str = new StringBuffer(); for (int i = 0; i < steps.length; i++) { if (i > 0 && (steps[i-1].axis.type!=Axis.DESCENDANT && steps[i].axis.type!=Axis.DESCENDANT) ){ str.append('/'); } str.append(steps[i].toString()); } // DEBUG: This code is just for debugging and should *not* // be left in because it will mess up hashcodes of // serialized versions of this object. -Ac if (false) { str.append('['); String s = super.toString(); str.append(s.substring(s.indexOf('@'))); str.append(']'); } return str.toString(); } // toString():String
/** Returns a clone of this object. */ public Object clone() { return new Step(this); } // clone():Object
/** Copy constructor. */ protected LocationPath(LocationPath path) { steps = new Step[path.steps.length]; for (int i = 0; i < steps.length; i++) { steps[i] = (Step)path.steps[i].clone(); } } // <init>(LocationPath)