Class PrintGenerator

java.lang.Object
org.glassfish.rmic.iiop.PrintGenerator
All Implemented Interfaces:
Constants, Generator, Constants, Constants, RuntimeConstants

public class PrintGenerator extends Object implements Generator, Constants
An IDL generator for rmic.
  • Field Details

    • JAVA

      private static final int JAVA
      See Also:
    • IDL

      private static final int IDL
      See Also:
    • BOTH

      private static final int BOTH
      See Also:
    • whatToPrint

      private int whatToPrint
    • global

      private boolean global
    • qualified

      private boolean qualified
    • trace

      private boolean trace
    • valueMethods

      private boolean valueMethods
    • out

      private IndentingWriter out
  • Constructor Details

    • PrintGenerator

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

    • parseArgs

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

      public void generate(BatchEnvironment env, 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