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