- All Implemented Interfaces:
Serializable
,Comparable<Selector.SelectorType>
,java.lang.constant.Constable
- Enclosing interface:
Selector
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis selector matches a childhood relationship between two elements.E || FThis is a conditional selector.This selector matches an arbitrary descendant of some ancestor element.This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.This selector matches only element node.Scope pseudo-selector in selector arguments.E ~ FThe universal selector. -
Method Summary
Modifier and TypeMethodDescriptionstatic Selector.SelectorType
Returns the enum constant of this class with the specified name.static Selector.SelectorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNIVERSAL
The universal selector.*
- See Also:
-
CONDITIONAL
This is a conditional selector.Example:
simple[role="private"] .part1 H1#myId P:lang(fr).p1
- See Also:
-
ELEMENT
This selector matches only element node.Example:
H1 animate
- See Also:
-
DESCENDANT
This selector matches an arbitrary descendant of some ancestor element.Example:
E F
- See Also:
-
CHILD
This selector matches a childhood relationship between two elements.Example:
E > F
- See Also:
-
DIRECT_ADJACENT
This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one.Example:
E + F
- See Also:
-
SUBSEQUENT_SIBLING
E ~ F
- See Also:
-
COLUMN_COMBINATOR
E || F
- See Also:
-
SCOPE_MARKER
Scope pseudo-selector in selector arguments.Scope should be applied where this pseudo-selector is found.
This selector has no serialization.
- See Also:
-
-
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
-