Class UnreferencedShapes


  • public final class UnreferencedShapes
    extends java.lang.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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<Shape> compute​(Model model)
      Gets the set of shapes that are unreferenced.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnreferencedShapes

        public UnreferencedShapes()
      • UnreferencedShapes

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

      • compute

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