Class UnreferencedTraitDefinitions
- java.lang.Object
-
- software.amazon.smithy.model.neighbor.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 Summary
Constructors Constructor Description UnreferencedTraitDefinitions()
UnreferencedTraitDefinitions(java.util.function.Predicate<Shape> keepFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Shape>
compute(Model model)
-
-
-
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.
-
-