Class CssSelector
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.AbstractCssSelector
com.itextpdf.styledxmlparser.css.selector.CssSelector
- All Implemented Interfaces:
-
ICssSelector
ICssSelector
implementation for CSS selectors.
-
Field Summary
Fields inherited from class com.itextpdf.styledxmlparser.css.selector.AbstractCssSelector
selectorItems
-
Constructor Summary
ConstructorDescriptionCssSelector
(String selector) Creates a newCssSelector
instance.CssSelector
(List<ICssSelectorItem> selectorItems) Creates a newCssSelector
instance. -
Method Summary
Methods inherited from class com.itextpdf.styledxmlparser.css.selector.AbstractCssSelector
calculateSpecificity, getSelectorItems, toString
-
Constructor Details
-
CssSelector
Creates a newCssSelector
instance.- Parameters:
-
selectorItems
- the selector items
-
CssSelector
Creates a newCssSelector
instance.- Parameters:
-
selector
- the selector
-
-
Method Details
-
matches
Description copied from interface:ICssSelector
Checks if a node matches the selector.- Parameters:
-
element
- the node - Returns:
- true, if the selector is a match for the node
-