1 package net.sf.saxon.tree; 2 import net.sf.saxon.om.SequenceIterator; 3 import net.sf.saxon.pattern.NodeTest; 4 5 final class ChildEnumeration extends TreeEnumeration { 6 7 public ChildEnumeration(NodeImpl node, NodeTest nodeTest) { 8 super(node, nodeTest); 9 next = (NodeImpl)node.getFirstChild(); 10 while (!conforms(next)) { 11 step(); 12 } 13 } 14 15 protected void step() { 16 next = (NodeImpl)next.getNextSibling(); 17 } 18 19 22 23 public SequenceIterator getAnother() { 24 return new ChildEnumeration(start, nodeTest); 25 } 26 } 27 28 29 | Popular Tags |