1 package net.sf.saxon.tree; 2 import net.sf.saxon.om.SequenceIterator; 3 import net.sf.saxon.pattern.NodeTest; 4 5 final class PrecedingOrAncestorEnumeration extends TreeEnumeration { 6 7 12 13 14 public PrecedingOrAncestorEnumeration(NodeImpl node, NodeTest nodeTest) { 15 super(node, nodeTest); 16 advance(); 17 } 18 19 protected void step() { 20 next = next.getPreviousInDocument(); 21 } 22 23 26 27 public SequenceIterator getAnother() { 28 return new PrecedingOrAncestorEnumeration(start, nodeTest); 29 } 30 31 } 32 33 34 35 36 | Popular Tags |