public class CssSelector extends AbstractCssSelector
ICssSelector implementation for CSS selectors.selectorItems| Constructor and Description |
|---|
CssSelector(List<ICssSelectorItem> selectorItems)
Creates a new
CssSelector instance. |
CssSelector(String selector)
Creates a new
CssSelector instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(INode element)
Checks if a node matches the selector.
|
boolean |
notMatches(INode element)
Checks if the node not matches all the selectors.
|
calculateSpecificity, getSelectorItems, toStringpublic CssSelector(List<ICssSelectorItem> selectorItems)
CssSelector instance.selectorItems - the selector itemspublic CssSelector(String selector)
CssSelector instance.selector - the selectorpublic boolean matches(INode element)
ICssSelectorelement - the nodepublic boolean notMatches(INode element)
element - the nodeCopyright © 1998–2025 Apryse Group NV. All rights reserved.