org.jsoup.select
Class Collector

java.lang.Object
  extended by org.jsoup.select.Collector

public class Collector
extends Object

Collects a list of elements that match the supplied criteria.

Author:
Jonathan Hedley

Method Summary
static Elements collect(Evaluator eval, Element root)
          Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

collect

public static Elements collect(Evaluator eval,
                               Element root)
Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.

Parameters:
eval - Evaluator to test elements against
root - root of tree to descend
Returns:
list of matches; empty if none


Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.