Interface CodegenContext<S,W extends SymbolWriter<W,?>,I extends SmithyIntegration<S,W,?>>
-
- Type Parameters:
S
- The settings object used to configure the generator.W
- The type ofSymbolWriter
used by the generator.I
- The type ofSmithyIntegration
s used by the generator.
- All Known Implementing Classes:
TraitCodegenContext
public interface CodegenContext<S,W extends SymbolWriter<W,?>,I extends SmithyIntegration<S,W,?>>
A context object that can be used during code generation and is used bySmithyIntegration
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileManifest
fileManifest()
java.util.List<I>
integrations()
Model
model()
S
settings()
SymbolProvider
symbolProvider()
WriterDelegator<W>
writerDelegator()
Get the WriterDelegator used for generating code.
-
-
-
Method Detail
-
model
Model model()
- Returns:
- Gets the model being code generated.
-
settings
S settings()
- Returns:
- Gets code generation settings.
-
symbolProvider
SymbolProvider symbolProvider()
- Returns:
- Gets the SymbolProvider used for code generation.
-
fileManifest
FileManifest fileManifest()
- Returns:
- Gets the FileManifest being written to for code generation.
-
writerDelegator
WriterDelegator<W> writerDelegator()
Get the WriterDelegator used for generating code.Generates might need other delegators for specific purposes, and it's fine to add more methods for those specific purposes. If an implementation uses a specific subclass of a WriterDelegator, implementations can override this method to return a more specific WriterDelegator type.
- Returns:
- Returns the writer delegator used by the generator.
-
integrations
java.util.List<I> integrations()
- Returns:
- Gets the SmithyIntegrations used for code generation.
-
-