Enum ShapeGenerationOrder
- java.lang.Object
-
- java.lang.Enum<ShapeGenerationOrder>
-
- software.amazon.smithy.codegen.core.ShapeGenerationOrder
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShapeGenerationOrder>
public enum ShapeGenerationOrder extends java.lang.Enum<ShapeGenerationOrder>
Shapes order for code generation.CodegenDirector order the shapes appropriately before feeding them to the code generators. See
CodegenDirector.shapeGenerationOrder(ShapeGenerationOrder)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHABETICAL
Shapes ordered alphabetically by their names.NONE
Shapes without order.TOPOLOGICAL
Shapes ordered in reverse-topological order.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShapeGenerationOrder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShapeGenerationOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOPOLOGICAL
public static final ShapeGenerationOrder TOPOLOGICAL
Shapes ordered in reverse-topological order. Also seeTopologicalIndex
-
ALPHABETICAL
public static final ShapeGenerationOrder ALPHABETICAL
Shapes ordered alphabetically by their names.
-
NONE
public static final ShapeGenerationOrder NONE
Shapes without order.
-
-
Method Detail
-
values
public static ShapeGenerationOrder[] 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 (ShapeGenerationOrder c : ShapeGenerationOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShapeGenerationOrder valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-