Class CssSelectorParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssSelectorParser
Utility class for parsing CSS selectors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ICssSelectorItem>parseSelectorItems(String selector) Parses the given CSS selector string into a list ofICssSelectorItemobjects.
-
Method Details
-
parseSelectorItems
Parses the given CSS selector string into a list ofICssSelectorItemobjects. This method processes the selector string character by character, handling state transitions and escape sequences to generate a structured representation of the selector components.- Parameters:
-
selector- the CSS selector string to be parsed - Returns:
-
a list of
ICssSelectorItemobjects representing the components of the parsed selector
-