Class CssPseudoElementSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssPseudoElementSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
public class CssPseudoElementSelectorItem extends java.lang.Object implements ICssSelectorItem
ICssSelectorItemimplementation for pseudo element selectors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpseudoElementNameThe pseudo element name.
-
Constructor Summary
Constructors Constructor Description CssPseudoElementSelectorItem(java.lang.String pseudoElementName)Creates a newCssPseudoElementSelectorIteminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSpecificity()Gets the specificity.booleanmatches(INode node)Checks if the selector matches an element.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CssPseudoElementSelectorItem
public CssPseudoElementSelectorItem(java.lang.String pseudoElementName)
Creates a newCssPseudoElementSelectorIteminstance.- Parameters:
pseudoElementName- the pseudo element name
-
-
Method Detail
-
getSpecificity
public int getSpecificity()
Description copied from interface:ICssSelectorItemGets the specificity.- Specified by:
getSpecificityin interfaceICssSelectorItem- Returns:
- the specificity
-
matches
public boolean matches(INode node)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-