Enum Class Combinator
- All Implemented Interfaces:
Serializable, Comparable<Combinator>, Constable
CSS selector combinators.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 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 elementThe 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSign()Returns combinator sign.static CombinatorReturns the enum constant of this class with the specified name.static Combinator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DESCENDANT
Describes an arbitrary descendant of some ancestor element -
CHILD
Describes a childhood relationship between two elements. -
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
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
-
-
Constructor Details
-
Combinator
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getSign
Returns combinator sign.
-