Class UnreferencedTraitDefinitions


  • public final class UnreferencedTraitDefinitions
    extends java.lang.Object
    Finds trait definitions that are not connected to a service shape.

    Prelude traits are never considered unreferenced.

    • Constructor Detail

      • UnreferencedTraitDefinitions

        public UnreferencedTraitDefinitions()
      • UnreferencedTraitDefinitions

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

      • compute

        public java.util.Set<Shape> compute​(Model model)