Class ShapeGenerator
java.lang.Object
software.amazon.smithy.traitcodegen.generators.ShapeGenerator
- All Implemented Interfaces:
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).
-
Constructor Details
-
ShapeGenerator
public ShapeGenerator()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<GenerateTraitDirective>
-