Class CompileBdd
java.lang.Object
software.amazon.smithy.rulesengine.transforms.CompileBdd
- All Implemented Interfaces:
ProjectionTransformer
Compiles a Binary Decision Diagram (BDD) from a service's
@endpointRuleSet
trait and attaches the compiled @endpointBdd trait to the service shape.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointBddTraitcompileBdd(EndpointRuleSet rules) Compile endpointBdd trait from endpoint ruleset and return the optimized version.getName()Gets the name of the transformer.transform(TransformContext transformContext) Transforms the given model using the providedTransformContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.build.ProjectionTransformer
getAdditionalProjections
-
Constructor Details
-
CompileBdd
public CompileBdd()
-
-
Method Details
-
getName
Description copied from interface:ProjectionTransformerGets the name of the transformer.- Specified by:
getNamein interfaceProjectionTransformer- Returns:
- Returns the name (e.g., "traits").
-
transform
Description copied from interface:ProjectionTransformerTransforms the given model using the providedTransformContext.- Specified by:
transformin interfaceProjectionTransformer- Parameters:
transformContext- Transformation context.- Returns:
- Returns the created transformer.
-
compileBdd
Compile endpointBdd trait from endpoint ruleset and return the optimized version.- Parameters:
rules- Endpoint ruleset from service shape.
-