Package jodd.csselly.selector
Class PseudoClasses.ONLY_OF_TYPE
- java.lang.Object
-
- jodd.csselly.selector.PseudoClass
-
- jodd.csselly.selector.PseudoClasses.ONLY_OF_TYPE
-
- Enclosing interface:
- PseudoClasses
public static class PseudoClasses.ONLY_OF_TYPE extends PseudoClass
Represents an element that has a parent element and whose parent element has no other element children with the same expanded element name. Same as:first-of-type:last-of-typeor:nth-of-type(1):nth-last-of-type(1), but with a lower specificity.
-
-
Constructor Summary
Constructors Constructor Description ONLY_OF_TYPE()
-
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
-
-