Class ContextualDirective<C extends CodegenContext<S,?,?>,S>
- java.lang.Object
-
- software.amazon.smithy.codegen.core.directed.Directive<S>
-
- software.amazon.smithy.codegen.core.directed.ContextualDirective<C,S>
-
- Type Parameters:
C
- CodegenContext type.S
- Codegen settings type.
- Direct Known Subclasses:
CustomizeDirective
,ShapeDirective
public abstract class ContextualDirective<C extends CodegenContext<S,?,?>,S> extends Directive<S>
Directive that contains aCodegenContext
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
context()
FileManifest
fileManifest()
SymbolProvider
symbolProvider()
-
Methods inherited from class software.amazon.smithy.codegen.core.directed.Directive
connectedShapes, model, operations, service, settings
-
-
-
-
Method Detail
-
symbolProvider
public final SymbolProvider symbolProvider()
- Returns:
- Returns the SymbolProvider used during codegen.
- See Also:
CodegenContext.symbolProvider()
-
context
public final C context()
- Returns:
- Returns the codegen context object.
-
fileManifest
public final FileManifest fileManifest()
- Returns:
- Gets the FileManifest being written to for code generation.
-
-