Class CodeGenData


  • public class CodeGenData
    extends Object
    Links a CodeGenProvider instance, an input and output directories for the provider.
    • Field Detail

      • outPath

        public final Path outPath
      • sourceDir

        public final Path sourceDir
      • buildDir

        public final Path buildDir
      • redirectIO

        public boolean redirectIO
    • Constructor Detail

      • CodeGenData

        public CodeGenData​(CodeGenProvider provider,
                           Path outPath,
                           Path sourceDir,
                           Path buildDir)
        Parameters:
        provider - code gen provider
        outPath - where the generated output should be stored
        sourceDir - where the input sources are
        buildDir - base project output directory
      • CodeGenData

        public CodeGenData​(CodeGenProvider provider,
                           Path outPath,
                           Path sourceDir,
                           Path buildDir,
                           boolean redirectIO)
        Parameters:
        provider - code gen provider
        outPath - where the generated output should be stored
        sourceDir - where the input sources are
        buildDir - base project output directory
        redirectIO - whether to redirect IO, in case a provider is logging something
    • Method Detail

      • setRedirectIO

        public void setRedirectIO​(boolean redirectIO)