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
class CssPseudoClassNthSelectorItem extends CssPseudoClassChildSelectorItem
-
-
Field Summary
Fields Modifier and Type Field Description private int
nthA
The nth A.private int
nthB
The 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 void
getNthArguments()
Gets the nth arguments.boolean
matches(INode node)
Checks if the selector matches an element.protected boolean
resolveNth(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: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.
-
-