1 28 29 package com.caucho.xml; 30 31 import com.caucho.xpath.pattern.NodeListIterator; 32 33 import org.w3c.dom.Node ; 34 import org.w3c.dom.NodeList ; 35 36 import java.util.Iterator ; 37 38 41 public class QEmptyNodeList implements NodeList { 42 45 public Node item(int index) 46 { 47 return null; 48 } 49 50 53 public int getLength() 54 { 55 return 0; 56 } 57 58 public Iterator<Node > iterator() 60 { 61 return new NodeListIterator(null, this); 62 } 63 } 64 | Popular Tags |