Package dev.amp.validator.selector
Enum Combinator.CombinatorType
- java.lang.Object
-
- java.lang.Enum<Combinator.CombinatorType>
-
- dev.amp.validator.selector.Combinator.CombinatorType
-
- All Implemented Interfaces:
Serializable,Comparable<Combinator.CombinatorType>
- Enclosing class:
- Combinator
public static enum Combinator.CombinatorType extends Enum<Combinator.CombinatorType>
Types of Combinators
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADJACENT_SIBLINGADJACENT_SIBLINGCHILDCHILDDESCENDANTDESCENDANTGENERAL_SIBLINGGENERAL_SIBLING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Combinator.CombinatorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Combinator.CombinatorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESCENDANT
public static final Combinator.CombinatorType DESCENDANT
DESCENDANT
-
CHILD
public static final Combinator.CombinatorType CHILD
CHILD
-
ADJACENT_SIBLING
public static final Combinator.CombinatorType ADJACENT_SIBLING
ADJACENT_SIBLING
-
GENERAL_SIBLING
public static final Combinator.CombinatorType GENERAL_SIBLING
GENERAL_SIBLING
-
-
Method Detail
-
values
public static Combinator.CombinatorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Combinator.CombinatorType c : Combinator.CombinatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Combinator.CombinatorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-