Enum Class CssSelector.Combinator

java.lang.Object
java.lang.Enum<CssSelector.Combinator>
dev.jcputney.mjml.css.CssSelector.Combinator
All Implemented Interfaces:
Serializable, Comparable<CssSelector.Combinator>, Constable
Enclosing interface:
CssSelector

public static enum CssSelector.Combinator extends Enum<CssSelector.Combinator>
CSS combinator types used between selectors in a complex selector.
  • Enum Constant Details

    • DESCENDANT

      public static final CssSelector.Combinator DESCENDANT
      Descendant combinator (space), matches any descendant.
    • CHILD

      public static final CssSelector.Combinator CHILD
      Child combinator (>), matches direct children only.
    • ADJACENT_SIBLING

      public static final CssSelector.Combinator ADJACENT_SIBLING
      Adjacent sibling combinator (+), matches the immediately following sibling.
    • GENERAL_SIBLING

      public static final CssSelector.Combinator GENERAL_SIBLING
      General sibling combinator (~), matches any following sibling.
  • Method Details

    • values

      public static CssSelector.Combinator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CssSelector.Combinator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null