01: package net.sf.saxon.tree;
02:
03: import net.sf.saxon.om.SequenceIterator;
04: import net.sf.saxon.pattern.NodeTest;
05:
06: final class FollowingSiblingEnumeration extends TreeEnumeration {
07:
08: public FollowingSiblingEnumeration(NodeImpl node, NodeTest nodeTest) {
09: super (node, nodeTest);
10: advance();
11: }
12:
13: protected void step() {
14: next = (NodeImpl) next.getNextSibling();
15: }
16:
17: /**
18: * Get another enumeration of the same nodes
19: */
20:
21: public SequenceIterator getAnother() {
22: return new FollowingSiblingEnumeration(start, nodeTest);
23: }
24: }
25:
26: //
27: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
28: // you may not use this file except in compliance with the License. You may obtain a copy of the
29: // License at http://www.mozilla.org/MPL/
30: //
31: // Software distributed under the License is distributed on an "AS IS" basis,
32: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
33: // See the License for the specific language governing rights and limitations under the License.
34: //
35: // The Original Code is: all this file.
36: //
37: // The Initial Developer of the Original Code is Michael H. Kay.
38: //
39: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
40: //
41: // Contributor(s): none.
42: //
|