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
-
Field Summary
FieldsFields inherited from class CssPseudoClassSelectorItem
arguments -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the nth arguments.booleanChecks if the selector matches an element.protected booleanresolveNth(INode node, List<INode> children) Resolves the nth.Methods inherited from class CssPseudoClassChildSelectorItem
getAllSiblings, getAllSiblingsOfNodeTypeMethods inherited from class CssPseudoClassSelectorItem
create, create, getPseudoClass, getSpecificity, toString
-
Field Details
-
nthA
private int nthAThe nth A. -
nthB
private int nthBThe nth B.
-
-
Constructor Details
-
CssPseudoClassNthSelectorItem
-
-
Method Details
-
matches
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. -
resolveNth
-