Class CssPseudoClassNthSelectorItem
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassSelectorItem
-
- com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassChildSelectorItem
-
- com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassNthSelectorItem
-
- All Implemented Interfaces:
ICssSelectorItem
- Direct Known Subclasses:
CssPseudoClassNthChildSelectorItem,CssPseudoClassNthLastChildSelectorItem,CssPseudoClassNthLastOfTypeSelectorItem,CssPseudoClassNthOfTypeSelectorItem
class CssPseudoClassNthSelectorItem extends CssPseudoClassChildSelectorItem
-
-
Field Summary
Fields Modifier and Type Field Description private intnthAThe nth A.private intnthBThe nth B.-
Fields inherited from class com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassSelectorItem
arguments
-
-
Constructor Summary
Constructors Constructor Description CssPseudoClassNthSelectorItem(java.lang.String pseudoClass, java.lang.String arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgetNthArguments()Gets the nth arguments.booleanmatches(INode node)Checks if the selector matches an element.protected booleanresolveNth(INode node, java.util.List<INode> children)Resolves the nth.-
Methods inherited from class com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassChildSelectorItem
getAllSiblings, getAllSiblingsOfNodeType
-
Methods inherited from class com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassSelectorItem
create, create, getPseudoClass, getSpecificity, toString
-
-
-
-
Method Detail
-
matches
public boolean matches(INode node)
Description copied from interface:ICssSelectorItemChecks if the selector matches an element.- Specified by:
matchesin interfaceICssSelectorItem- Overrides:
matchesin classCssPseudoClassSelectorItem- Parameters:
node- the element- Returns:
- true, if there's a match
-
getNthArguments
protected void getNthArguments()
Gets the nth arguments.
-
-