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 
TraitCodegenWriters.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionCreates aSymbolWriterof typeWfor the given filename and namespace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.FactoryCreates aSymbolWriterof typeWfor the given filename and namespace.- Specified by:
 applyin interfaceBiFunction<String,String, TraitCodegenWriter> - Specified by:
 applyin 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. 
 
 -