Class CSSelly
java.lang.Object
jodd.csselly.CSSelly
CSS selector parser. Works with one query, i.e. does not support groups
of selectors (selectors separated by a comma). To parse selectors group,
manually split the group query into single queries and parse each.
See: http://www.w3.org/TR/css3-selectors/#w3cselgrammar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse()Parses selector string.static List<List<CssSelector>> Parses string of selectors (separated with ,).static StringtoString(List<CssSelector> selectors) Returns string representation of given list of selectors.
-
Field Details
-
lexer
-
-
Constructor Details
-
CSSelly
-
CSSelly
public CSSelly(char[] input)
-
-
Method Details
-
parse
Parses selector string. Returnsnullif no selector can be parsed. -
parse
Parses string of selectors (separated with ,). Returns list ofCssSelectorlists in the same order. -
toString
Returns string representation of given list of selectors.
-