Class TraitCodegenWriter.Factory
java.lang.Object
software.amazon.smithy.traitcodegen.writer.TraitCodegenWriter.Factory
- All Implemented Interfaces:
BiFunction<String,
,String, TraitCodegenWriter> SymbolWriter.Factory<TraitCodegenWriter>
- Enclosing class:
- TraitCodegenWriter
public static final class TraitCodegenWriter.Factory
extends Object
implements SymbolWriter.Factory<TraitCodegenWriter>
A factory class to create
TraitCodegenWriter
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates aSymbolWriter
of typeW
for the given filename and namespace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Factory
- Parameters:
settings
- The Trait codegen plugin settings.
-
-
Method Details
-
apply
Description copied from interface:SymbolWriter.Factory
Creates aSymbolWriter
of typeW
for the given filename and namespace.- Specified by:
apply
in interfaceBiFunction<String,
String, TraitCodegenWriter> - Specified by:
apply
in interfaceSymbolWriter.Factory<TraitCodegenWriter>
- Parameters:
filename
- Non-null filename of the writer being created.namespace
- Non-null namespace associated with the file (possibly empty string).- Returns:
- Returns the created writer of type
W
.
-