Package org.jsoup.select
Class EvaluatorInternals
java.lang.Object
org.jsoup.select.EvaluatorInternals
public final class EvaluatorInternals
extends Object
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 EvaluatorbyId(String id) Matches ID values exactly forElement.getElementById(, even in quirks mode.String) 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.static Stream<Element>Filters candidates using the evaluator's captured query mode, excludingrootin Web mode.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
stream
Filters candidates using the evaluator's captured query mode, excludingrootin Web mode. -
byId
Matches ID values exactly forElement.getElementById(, even in quirks mode.String) -
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.
-