Package software.amazon.smithy.docgen
Class DocGenerationContext
java.lang.Object
software.amazon.smithy.docgen.DocGenerationContext
- All Implemented Interfaces:
 CodegenContext<DocSettings,DocWriter, DocIntegration> 
public final class DocGenerationContext
extends Object
implements CodegenContext<DocSettings,DocWriter,DocIntegration>  
Contextual information that is made available during most parts of documentation
 generation.
- 
Constructor Summary
ConstructorsConstructorDescriptionDocGenerationContext(Model model, DocSettings docSettings, SymbolProvider symbolProvider, FileManifest fileManifest, List<DocIntegration> docIntegrations) Constructor. - 
Method Summary
 
- 
Constructor Details
- 
DocGenerationContext
public DocGenerationContext(Model model, DocSettings docSettings, SymbolProvider symbolProvider, FileManifest fileManifest, List<DocIntegration> docIntegrations) Constructor.- Parameters:
 model- The source model to generate for.docSettings- Settings to customize generation.symbolProvider- The symbol provider to use to turn shapes into symbols.fileManifest- The file manifest to write to.docIntegrations- A list of integrations to apply during generation.
 
 - 
 - 
Method Details
- 
model
- Specified by:
 modelin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Gets the model being code generated.
 
 - 
settings
- Specified by:
 settingsin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Gets code generation settings.
 
 - 
symbolProvider
- Specified by:
 symbolProviderin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Gets the SymbolProvider used for code generation.
 
 - 
fileManifest
- Specified by:
 fileManifestin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Gets the FileManifest being written to for code generation.
 
 - 
writerDelegator
Description copied from interface:CodegenContextGet 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.
- Specified by:
 writerDelegatorin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Returns the writer delegator used by the generator.
 
 - 
integrations
- Specified by:
 integrationsin interfaceCodegenContext<DocSettings,DocWriter, DocIntegration> - Returns:
 - Gets the SmithyIntegrations used for code generation.
 
 - 
docFormat
- Returns:
 - Returns the selected format that documentation should be generated in.
 
 
 -