Class Directive<S>
java.lang.Object
software.amazon.smithy.codegen.core.directed.Directive<S>
- Type Parameters:
S
- Settings object used to configure code generation.
- Direct Known Subclasses:
ContextualDirective
,CreateContextDirective
,CreateSymbolProviderDirective
Directive classes contain all of the context needed in order to perform
the tasks defined in a
DirectedCodegen
implementation.-
Method Summary
Modifier and TypeMethodDescriptionfinal Map<software.amazon.smithy.model.shapes.ShapeId,
software.amazon.smithy.model.shapes.Shape> final software.amazon.smithy.model.Model
model()
Set<software.amazon.smithy.model.shapes.OperationShape>
Gets a set of all operation shapes in the service, sorted by name.final software.amazon.smithy.model.shapes.ServiceShape
service()
final S
settings()
-
Method Details
-
model
public final software.amazon.smithy.model.Model model()- Returns:
- Gets the model being code generated.
-
settings
- Returns:
- Gets code generation settings.
-
service
public final software.amazon.smithy.model.shapes.ServiceShape service()- Returns:
- Gets the service being generated.
-
connectedShapes
public final Map<software.amazon.smithy.model.shapes.ShapeId,software.amazon.smithy.model.shapes.Shape> connectedShapes()- Returns:
- Returns a map of shapes connected to the service.
-
operations
Gets a set of all operation shapes in the service, sorted by name.This includes operations contained in resources in the closure of the service.
- Returns:
- Returns all sorted service operations.
-