Class ShapeDirective<T extends Shape,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>
software.amazon.smithy.codegen.core.directed.ShapeDirective<T,C,S>
- Type Parameters:
T
- Type of shape being generated.C
- CodegenContext type.S
- Codegen settings type.
- Direct Known Subclasses:
GenerateEnumDirective
,GenerateErrorDirective
,GenerateIntEnumDirective
,GenerateResourceDirective
,GenerateServiceDirective
,GenerateStructureDirective
,GenerateUnionDirective
public abstract class ShapeDirective<T extends Shape,C extends CodegenContext<S,?,?>,S>
extends ContextualDirective<C,S>
Directive used to generate a specific shape.
-
Method Summary
Methods inherited from class software.amazon.smithy.codegen.core.directed.ContextualDirective
context, fileManifest, symbolProvider
Methods inherited from class software.amazon.smithy.codegen.core.directed.Directive
connectedShapes, model, operations, service, settings
-
Method Details
-
shape
Gets the shape being generated.- Returns:
- Returns the shape to generate.
-
symbol
Gets the symbol created for the shape.This is equivalent to calling
symbolProvider().toSymbol(shape())
.- Returns:
- Returns the shape's symbol.
-