Class ShapeGenerator
- java.lang.Object
-
- software.amazon.smithy.traitcodegen.generators.ShapeGenerator
-
- All Implemented Interfaces:
java.util.function.Consumer<GenerateTraitDirective>
public final class ShapeGenerator extends java.lang.Object implements java.util.function.Consumer<GenerateTraitDirective>
Base class used for the generation of traits and nested shapes from aGenerateTraitDirective
.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 Summary
Constructors Constructor Description ShapeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(GenerateTraitDirective directive)
-
-
-
Method Detail
-
accept
public void accept(GenerateTraitDirective directive)
- Specified by:
accept
in interfacejava.util.function.Consumer<GenerateTraitDirective>
-
-