Class PseudoClasses.ONLY_CHILD
java.lang.Object
jodd.csselly.selector.PseudoClass
jodd.csselly.selector.PseudoClasses.ONLY_CHILD
- Enclosing interface:
PseudoClasses
Represents an element that has a parent element and whose parent element has no other element children.
Same as
:first-child:last-child or :nth-child(1):nth-last-child(1), but with
a lower specificity.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PseudoClass
getPseudoClassName, matchInRange
-
Constructor Details
-
ONLY_CHILD
public ONLY_CHILD()
-
-
Method Details
-
match
Description copied from class:PseudoClassReturnstrueif node matches the pseudo-class.- Specified by:
matchin classPseudoClass
-