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
,CssPseudoClassNthOfTypeSelectorItem
-
Field Summary
FieldsFields inherited from class com.itextpdf.styledxmlparser.css.selector.item.CssPseudoClassSelectorItem
arguments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets the nth arguments.boolean
Checks if the selector matches an element.protected boolean
resolveNth
(INode node, 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
-
Field Details
-
nthA
private int nthAThe nth A. -
nthB
private int nthBThe nth B.
-
-
Constructor Details
-
CssPseudoClassNthSelectorItem
-
-
Method Details
-
matches
Description copied from interface:ICssSelectorItem
Checks if the selector matches an element.- Specified by:
matches
in interfaceICssSelectorItem
- Overrides:
matches
in classCssPseudoClassSelectorItem
- Parameters:
node
- the element- Returns:
- true, if there's a match
-
getNthArguments
protected void getNthArguments()Gets the nth arguments. -
resolveNth
Resolves the nth.- Parameters:
node
- a nodechildren
- the children- Returns:
- true, if successful
-