public class CssPseudoElementSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem
implementation for pseudo element selectors.
Constructor and Description |
---|
CssPseudoElementSelectorItem(String pseudoElementName)
Creates a new CssPseudoElementSelectorItem instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getSpecificity()
Gets the specificity.
|
boolean |
matches(INode node)
Checks if the selector matches an element.
|
String |
toString() |
public CssPseudoElementSelectorItem(String pseudoElementName)
CssPseudoElementSelectorItem
instance.
pseudoElementName
- the pseudo element name
public int getSpecificity()
ICssSelectorItem
getSpecificity
in interface ICssSelectorItem
public boolean matches(INode node)
ICssSelectorItem
matches
in interface ICssSelectorItem
node
- the element
Copyright © 1998–2020 iText Group NV. All rights reserved.