Package org.jsoup.select
Class EvaluatorInternals
java.lang.Object
org.jsoup.select.EvaluatorInternals
Shared query operations for
Element, Collector, and StreamParser.
Public for access between jsoup packages; not a supported user API.
String-query methods report compatibility differences when in check mode.-
Method Summary
Modifier and TypeMethodDescriptionstatic EvaluatorMatches ID values exactly forElement.getElementById(String), even in quirks mode.static @Nullable ElementReturns the element if it matches the query, or its nearest matching ancestor.static @Nullable ElementReturns the element if it matches the evaluator, or its nearest matching ancestor.static booleanTests whether the supplied element matches the query.static booleanTests the element itself, using it as:scopein Web mode.Filters candidates using the evaluator's captured query mode, excludingrootin Web mode.
-
Method Details
-
stream
Filters candidates using the evaluator's captured query mode, excludingrootin Web mode. -
byId
Matches ID values exactly forElement.getElementById(String), even in quirks mode. -
matches
Tests whether the supplied element matches the query. -
closest
Returns the element if it matches the query, or its nearest matching ancestor. -
matches
Tests the element itself, using it as:scopein Web mode. -
closest
Returns the element if it matches the evaluator, or its nearest matching ancestor. In Web mode,:scoperemains the supplied element.
-