Class 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 Summary

      Constructors 
      Constructor Description
      ONLY_CHILD()  
    • Constructor Detail

      • ONLY_CHILD

        public ONLY_CHILD()
    • Method Detail

      • 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