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.
|
calculateSpecificity, getSelectorItems, toString
public CssSelector(List<ICssSelectorItem> selectorItems)
CssSelector
instance.
selectorItems
- the selector items
public CssSelector(String selector)
CssSelector
instance.
selector
- the selector
public boolean matches(INode element)
ICssSelector
element
- the node
Copyright © 1998–2023 iText Group NV. All rights reserved.