Package org.jsoup.select
Class QueryParser
java.lang.Object
org.jsoup.select.QueryParser
- All Implemented Interfaces:
AutoCloseable
Parses a CSS selector into an Evaluator tree.
-
Method Summary
-
Method Details
-
parse
Parse a CSS query into an Evaluator. If you are evaluating the same query repeatedly, it may be more efficient to parse it once and reuse the Evaluator.- Parameters:
query
- CSS query- Returns:
- Evaluator
- Throws:
Selector.SelectorParseException
- if the CSS query is invalid- See Also:
-
toString
-
close
- Specified by:
close
in interfaceAutoCloseable
-