Class ShapeGenerator

java.lang.Object
software.amazon.smithy.traitcodegen.generators.ShapeGenerator
All Implemented Interfaces:
Consumer<GenerateTraitDirective>

public final class ShapeGenerator extends Object implements Consumer<GenerateTraitDirective>
Base class used for the generation of traits and nested shapes from a GenerateTraitDirective.

This class will determine if a shape is a trait (i.e. has the TraitDefinition trait) or if the shape provided should be treated as a nested shape (i.e. defines a simple pojo).