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 aCodegenContext
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileManifest
fileManifest()
java.util.List<I>
integrations()
java.util.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.SymbolProvider
symbolProvider()
-
Methods inherited from class software.amazon.smithy.codegen.core.directed.Directive
connectedShapes, model, operations, service, settings
-
-
-
-
Method Detail
-
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.
-
integrations
public java.util.List<I> integrations()
- Returns:
- Returns the list of Integrations used during codegen.
-
supportedProtocols
public java.util.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:
ServiceIndex
-
-