Class Collector
java.lang.Object
com.itextpdf.styledxmlparser.jsoup.select.Collector
Collects a list of elements that match the supplied criteria.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementsBuild a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.static ElementFinds the first Element that matches the Evaluator that descends from the root, and stops the query once that first match is found.
-
Constructor Details
-
Collector
private Collector()
-
-
Method Details
-
collect
-
findFirst
Finds the first Element that matches the Evaluator that descends from the root, and stops the query once that first match is found.- Parameters:
eval- Evaluator to test elements againstroot- root of tree to descend- Returns:
- the first match;
nullif none
-