public Iterator<HtmlElement> iterator() { return new DescendantElementsIterator(); } };
public Iterator<HtmlElement> iterator() { return new DescendantElementsIterator(); } };
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's {@link DomElement} * descendants. If you want to iterate over all descendants (including {@link DomText} elements, * {@link DomComment} elements, etc.), please use {@link #getDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's {@link DomElement} * descendants * @see #getHtmlElementDescendants() */ public final Iterable<DomElement> getDomElementDescendants() { return () -> new DescendantElementsIterator<>(DomElement.class); }
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's descendants, * including {@link DomText} elements, {@link DomComment} elements, etc. If you want to iterate * only over {@link HtmlElement} descendants, please use {@link #getHtmlElementDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's descendants */ public final Iterable<DomNode> getDescendants() { return () -> new DescendantElementsIterator<>(DomNode.class); }
public Iterator<HtmlElement> iterator() { return new DescendantElementsIterator(); } };
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's {@link HtmlElement} * descendants. If you want to iterate over all descendants (including {@link DomText} elements, * {@link DomComment} elements, etc.), please use {@link #getDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's {@link HtmlElement} * descendants * @see #getDomElementDescendants() */ public final Iterable<HtmlElement> getHtmlElementDescendants() { return () -> new DescendantElementsIterator<>(HtmlElement.class); }
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's {@link HtmlElement} * descendants. If you want to iterate over all descendants (including {@link DomText} elements, * {@link DomComment} elements, etc.), please use {@link #getDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's {@link HtmlElement} * descendants * @see #getDomElementDescendants() */ public final Iterable<HtmlElement> getHtmlElementDescendants() { return () -> new DescendantElementsIterator<>(HtmlElement.class); }
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's {@link DomElement} * descendants. If you want to iterate over all descendants (including {@link DomText} elements, * {@link DomComment} elements, etc.), please use {@link #getDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's {@link DomElement} * descendants * @see #getHtmlElementDescendants() */ public final Iterable<DomElement> getDomElementDescendants() { return () -> new DescendantElementsIterator<>(DomElement.class); }
/** * Returns an {@link Iterable} that will recursively iterate over all of this node's descendants, * including {@link DomText} elements, {@link DomComment} elements, etc. If you want to iterate * only over {@link HtmlElement} descendants, please use {@link #getHtmlElementDescendants()}. * @return an {@link Iterable} that will recursively iterate over all of this node's descendants */ public final Iterable<DomNode> getDescendants() { return () -> new DescendantElementsIterator<>(DomNode.class); }