Class TraitCodegenPlugin
- java.lang.Object
- 
- software.amazon.smithy.traitcodegen.TraitCodegenPlugin
 
- 
- All Implemented Interfaces:
- SmithyBuildPlugin
 
 public final class TraitCodegenPlugin extends java.lang.Object implements SmithyBuildPlugin Generates Java code implementations of traits from a Smithy model.
- 
- 
Constructor SummaryConstructors Constructor Description TraitCodegenPlugin()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(PluginContext context)Executes the plugin, creating any number of artifacts.java.lang.StringgetName()Gets the name of the plugin.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.build.SmithyBuildPluginisSerial, requiresValidModel
 
- 
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Description copied from interface:SmithyBuildPluginGets the name of the plugin.- Specified by:
- getNamein interface- SmithyBuildPlugin
- Returns:
- Returns the name (e.g., "MyPlugin").
 
 - 
executepublic void execute(PluginContext context) Description copied from interface:SmithyBuildPluginExecutes the plugin, creating any number of artifacts.- Specified by:
- executein interface- SmithyBuildPlugin
- Parameters:
- context- Plugin context for build execution.
 
 
- 
 
-