Package software.constructs
Enum ConstructOrder
- java.lang.Object
-
- java.lang.Enum<ConstructOrder>
-
- software.constructs.ConstructOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<ConstructOrder>
@Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)", date="2023-06-06T00:11:09.610Z") @Stability(Stable) public enum ConstructOrder extends Enum<ConstructOrder>
In what order to return constructs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstructOrder
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConstructOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREORDER
@Stability(Stable) public static final ConstructOrder PREORDER
Depth-first, pre-order.
-
POSTORDER
@Stability(Stable) public static final ConstructOrder POSTORDER
Depth-first, post-order (leaf nodes first).
-
-
Method Detail
-
values
public static ConstructOrder[] 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 (ConstructOrder c : ConstructOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstructOrder 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
-
-