Class UnreferencedShapes

java.lang.Object
software.amazon.smithy.model.neighbor.UnreferencedShapes

public final class UnreferencedShapes extends Object
Finds shapes that are not connected to a service shape, are not trait definitions, and are not referenced by trait definitions.

Prelude shapes are never considered unreferenced.

  • Constructor Details

    • UnreferencedShapes

      public UnreferencedShapes()
    • UnreferencedShapes

      public UnreferencedShapes(Predicate<Shape> keepFilter)
      Parameters:
      keepFilter - Predicate that if matched keeps a shape from being unreferenced.
  • Method Details

    • compute

      public Set<Shape> compute(Model model)
      Gets the set of shapes that are unreferenced.
      Parameters:
      model - Model to compute from.
      Returns:
      Returns the unreferenced shapes.