Class TopologicalShapeSort
java.lang.Object
software.amazon.smithy.model.loader.TopologicalShapeSort
Deprecated.
Topologically sorts shapes based on their dependencies (i.e., mixins).
Deprecated in favor of DependencyGraph,
which is more generic and less stateful.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Thrown when cycles exist between shapes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Sort the shapes and returns the ordered list of shape IDs.voidDeprecated.Add a shape to the sort queue, and automatically extract dependencies.voidenqueue(ShapeId shape, Collection<ShapeId> dependencies) Deprecated.Add a shape to the sort queue, and provide an explicit dependencies list.
-
Constructor Details
-
TopologicalShapeSort
public TopologicalShapeSort()Deprecated.
-
-
Method Details
-
enqueue
Deprecated.Add a shape to the sort queue, and automatically extract dependencies.- Parameters:
shape- Shape to add.
-
enqueue
Deprecated.Add a shape to the sort queue, and provide an explicit dependencies list.- Parameters:
shape- Shape to add.dependencies- Dependencies of the shape.
-
dequeueSortedShapes
Deprecated.Sort the shapes and returns the ordered list of shape IDs.- Returns:
- Returns the topologically sorted list of shape IDs.
- Throws:
TopologicalShapeSort.CycleException- if cycles exist between shapes.
-