Class NodeIterator

java.lang.Object
jp.vmi.selenium.selenese.parser.NodeIterator
All Implemented Interfaces:
Iterator<Node>

public class NodeIterator
extends Object
implements Iterator<Node>
DOM node list wrapper for iteration.
  • Constructor Details

    • NodeIterator

      public NodeIterator​(NodeList nodeList)
      Constructor.
      Parameters:
      nodeList - DOM node list.
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Node>
    • next

      public Node next()
      Specified by:
      next in interface Iterator<Node>
    • each

      public static Iterable<Node> each​(NodeList nodeList)
      Wrap DOM the node list with Iterable.
      Parameters:
      nodeList - DOM node list.
      Returns:
      Iterable.