Class CssPseudoElementSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssPseudoElementSelectorItem
- All Implemented Interfaces:
ICssSelectorItem
ICssSelectorItem implementation for pseudo element selectors.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssPseudoElementSelectorItem(String pseudoElementName) Creates a newCssPseudoElementSelectorIteminstance. -
Method Summary
Modifier and TypeMethodDescriptionintGets the specificity.booleanChecks if the selector matches an element.toString()
-
Field Details
-
pseudoElementName
The pseudo element name.
-
-
Constructor Details
-
CssPseudoElementSelectorItem
Creates a newCssPseudoElementSelectorIteminstance.- Parameters:
pseudoElementName- the pseudo element name
-
-
Method Details
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorItemChecks if the selector matches an element.- Specified by:
matchesin interfaceICssSelectorItem- Parameters:
node- the element- Returns:
- true, if there's a match
-
toString
-