Class CreateContextDirective<S,I extends SmithyIntegration<S,?,?>>

java.lang.Object
software.amazon.smithy.codegen.core.directed.Directive<S>
software.amazon.smithy.codegen.core.directed.CreateContextDirective<S,I>
Type Parameters:
S - Codegen settings type.
I - SmithyIntegration type.

public final class CreateContextDirective<S,I extends SmithyIntegration<S,?,?>> extends Directive<S>
Directive used to create a CodegenContext.
See Also:
  • Method Details

    • symbolProvider

      public SymbolProvider symbolProvider()
      Returns:
      Returns the SymbolProvider used during codegen.
    • fileManifest

      public FileManifest fileManifest()
      Returns:
      Gets the FileManifest being written to for code generation.
    • sharedFileManifest

      public Optional<FileManifest> sharedFileManifest()
      Gets the FileManifest used to create files in the projection's shared file space.

      All files written by a generator should either be written using this manifest or the generator's isolated manifest (fileManifest()).

      Files written to this manifest may be read or modified by other Smithy build plugins. Generators SHOULD NOT write files to this manifest unless they specifically intend for them to be consumed by other plugins. Files that are not intended to be shared should be written to the manifest from fileManifest().

      Returns:
      Gets the optional FileManifest used to create files in the projection's shared file space.
    • integrations

      public List<I> integrations()
      Returns:
      Returns the list of Integrations used during codegen.
    • supportedProtocols

      public Map<ShapeId,Trait> supportedProtocols()
      Get a map of supported protocols on the service shape in the form of shape ID to the definition of the trait.
      Returns:
      Returns the protocol shape IDs of the service.
      See Also: