Package net.jqwik.api.lifecycle
Enum Class PropagationMode
- All Implemented Interfaces:
Serializable
,Comparable<PropagationMode>
,Constable
Describes if and how a concrete registered hook is propagated to children of
the element where the hook has been registered. The default behaviour
can be changed by:
- Override LifecycleHook.propagateTo()
- Use annotation attribute AddLifecycleHook.propagateTo()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPropagate to all children and their childrenPropagate only to direct childrenDo not propagate to any childrenDefault of AddLifecycleHook.propagateTo(). -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagationMode
Returns the enum constant of this class with the specified name.static PropagationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SET
Default of AddLifecycleHook.propagateTo(). Never use yourself. -
ALL_DESCENDANTS
Propagate to all children and their children -
DIRECT_DESCENDANTS
Propagate only to direct children -
NO_DESCENDANTS
Do not propagate to any children
-
-
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
-