Enum Class Combinator

java.lang.Object
java.lang.Enum<Combinator>
jodd.csselly.Combinator
All Implemented Interfaces:
Serializable, Comparable<Combinator>, Constable

public enum Combinator extends Enum<Combinator>
CSS selector combinators.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.
    Describes a childhood relationship between two elements.
    Describes an arbitrary descendant of some ancestor element
    The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence precedes (not necessarily immediately) the element represented by the second one.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns combinator sign.
    static Combinator
    Returns the enum constant of this class with the specified name.
    static Combinator[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DESCENDANT

      public static final Combinator DESCENDANT
      Describes an arbitrary descendant of some ancestor element
    • CHILD

      public static final Combinator CHILD
      Describes a childhood relationship between two elements.
    • ADJACENT_SIBLING

      public static final Combinator ADJACENT_SIBLING
      The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.
    • GENERAL_SIBLING

      public static final Combinator GENERAL_SIBLING
      The elements represented by the two sequences share the same parent in the document tree and the element represented by the first sequence precedes (not necessarily immediately) the element represented by the second one.
  • Field Details

    • sign

      private final String sign
  • Constructor Details

    • Combinator

      private Combinator(String sign)
  • Method Details

    • values

      public static 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 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
    • getSign

      public String getSign()
      Returns combinator sign.