Class PrintGenerator

    • Constructor Detail

      • PrintGenerator

        public PrintGenerator()
        Default constructor for Main to use.
    • Method Detail

      • parseArgs

        public boolean parseArgs​(java.lang.String[] argv,
                                 Main main)
        Examine and consume command line arguments.
        Specified by:
        parseArgs in interface Generator
        Parameters:
        argv - The command line arguments. Ignore null
        error - Report any errors using the main.error() methods.
        Returns:
        true if no errors, false otherwise.
      • generate

        public void generate​(BatchEnvironment env,
                             java.io.File destDir,
                             ClassDefinition cdef)
        Generate output. Any source files created which need compilation should be added to the compiler environment using the addGeneratedFile(File) method.
        Specified by:
        generate in interface Generator
        Parameters:
        env - The compiler environment
        destDir - The directory for the root of the package hierarchy
        cdef - The definition for the implementation class or interface from which to generate output