Class CssPseudoClassSelectorItem
java.lang.Object
com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassSelectorItem
- All Implemented Interfaces:
-
ICssSelectorItem
ICssSelectorItem
implementation for pseudo class selectors.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CssPseudoClassSelectorItem
(String pseudoClass) Creates a newCssPseudoClassSelectorItem
instance.protected
CssPseudoClassSelectorItem
(String pseudoClass, String arguments) -
Method Summary
Modifier and TypeMethodDescriptionstatic CssPseudoClassSelectorItem
static CssPseudoClassSelectorItem
int
Gets the specificity.boolean
Checks if the selector matches an element.toString()
-
Field Details
-
arguments
The arguments.
-
-
Constructor Details
-
CssPseudoClassSelectorItem
Creates a newCssPseudoClassSelectorItem
instance.- Parameters:
-
pseudoClass
- the pseudo class name
-
CssPseudoClassSelectorItem
-
-
Method Details
-
create
-
create
-
getSpecificity
public int getSpecificity()Description copied from interface:ICssSelectorItem
Gets the specificity.- Specified by:
-
getSpecificity
in interfaceICssSelectorItem
- Returns:
- the specificity
-
matches
Description copied from interface:ICssSelectorItem
Checks if the selector matches an element.- Specified by:
-
matches
in interfaceICssSelectorItem
- Parameters:
-
node
- the element - Returns:
- true, if there's a match
-
toString
-
getPseudoClass
-