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

    • ONLY_CHILD

      public ONLY_CHILD()
  • 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