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 a CodegenContext.
  • Method Details

    • symbolProvider

      public final SymbolProvider symbolProvider()
      Returns:
      Returns the SymbolProvider used during codegen.
      See Also:
    • 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.