if (n.hasChildNodes()) { if (forwards) { descendants = new DescendantEnumeration(n, false, forwards); current = n; } else { descendants = new DescendantEnumeration(n, true, forwards); advance();
if (n.hasChildNodes()) { if (forwards) { descendants = new DescendantEnumeration(n, false, forwards); current = n; } else { descendants = new DescendantEnumeration(n, true, forwards); advance();
return new Navigator.DescendantEnumeration(this, false, true); } else { return EmptyIterator.getInstance(); return new Navigator.DescendantEnumeration(this, true, true);
return new Navigator.DescendantEnumeration(this, false, true); case Axis.DESCENDANT_OR_SELF: return new Navigator.DescendantEnumeration(this, true, true); case Axis.FOLLOWING: return new Navigator.FollowingEnumeration(this);
if (nexts != null) { if (nexts.hasChildNodes()) { descendEnum = new DescendantEnumeration(nexts, true, false); advance(); } else {
if (nexts != null) { if (nexts.hasChildNodes()) { descendEnum = new DescendantEnumeration(nexts, true, false); advance(); } else {
NodeInfo n = current; if (n.hasChildNodes()) { descendEnum = new DescendantEnumeration(n, false, true); } else { descendEnum = null;
NodeInfo n = current; if (n.hasChildNodes()) { descendEnum = new DescendantEnumeration(n, false, true); } else { descendEnum = null;
public SequenceIterator getAnother() { return new DescendantEnumeration(start, includeSelf, forwards); }
@Override public AxisIterator iterateAxis(byte axisNumber) { switch (axisNumber) { case Axis.DESCENDANT: return new Navigator.DescendantEnumeration(this, false, true); case Axis.DESCENDANT_OR_SELF: return new Navigator.DescendantEnumeration(this, true, true); case Axis.CHILD: return SingleNodeIterator.makeIterator(rootNode); default: return super.iterateAxis(axisNumber); } } }
public SequenceIterator getAnother() { return new DescendantEnumeration(start, includeSelf, forwards); }
return new Navigator.DescendantEnumeration(this, false, true); case Axis.DESCENDANT_OR_SELF: return new Navigator.DescendantEnumeration(this, true, true); case Axis.FOLLOWING: return new Navigator.FollowingEnumeration(this);
@Override public AxisIterator iterateAxis(byte axisNumber) { switch (axisNumber) { case Axis.DESCENDANT: return new Navigator.DescendantEnumeration(this, false, true); case Axis.DESCENDANT_OR_SELF: return new Navigator.DescendantEnumeration(this, true, true); case Axis.CHILD: return SingleNodeIterator.makeIterator(rootNode); default: return super.iterateAxis(axisNumber); } } }