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-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity.
  • Constructor Details

    • ONLY_OF_TYPE

      public ONLY_OF_TYPE()
  • Method Details

    • match

      public boolean match(Node node)
      Description copied from class: PseudoClass
      Returns true if node matches the pseudo-class.
      Specified by:
      match in class PseudoClass