Class TraitCodegenWriter.Factory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TraitCodegenWriter apply​(java.lang.String filename, java.lang.String namespace)
      Creates a SymbolWriter of type W 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 Detail

      • Factory

        public Factory​(TraitCodegenSettings settings)
        Parameters:
        settings - The Trait codegen plugin settings.
    • Method Detail

      • apply

        public TraitCodegenWriter apply​(java.lang.String filename,
                                        java.lang.String namespace)
        Description copied from interface: SymbolWriter.Factory
        Creates a SymbolWriter of type W for the given filename and namespace.
        Specified by:
        apply in interface java.util.function.BiFunction<java.lang.String,​java.lang.String,​TraitCodegenWriter>
        Specified by:
        apply in interface SymbolWriter.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.