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 AbstractCssSelector
selectorItems -
Constructor Summary
ConstructorsConstructorDescriptionCssSelector(String selector) Creates a newCssSelectorinstance.CssSelector(List<ICssSelectorItem> selectorItems) Creates a newCssSelectorinstance. -
Method Summary
Methods inherited from class AbstractCssSelector
calculateSpecificity, getSelectorItems, toString
-
Constructor Details
-
CssSelector
Creates a newCssSelectorinstance.- Parameters:
selectorItems- the selector items
-
CssSelector
Creates a newCssSelectorinstance.- Parameters:
selector- the selector
-
-
Method Details
-
matches
Description copied from interface:ICssSelectorChecks if a node matches the selector.- Parameters:
element- the node- Returns:
- true, if the selector is a match for the node
-
notMatches
Checks if the node not matches all the selectors.- Parameters:
element- the node- Returns:
- true, if node doesn't match all the selectors
-
matches
Checks if a node matches the selector.- Parameters:
element- the nodelastSelectorItemInd- the index of the last selector- Returns:
- true, if there's a match
-