java.lang.Object
com.sun.tools.corba.ee.idl.Compile
com.sun.tools.corba.ee.idl.toJavaPortable.Compile

public class Compile extends Compile
Compiler usage:

java Compile [options] <idl file>

where <idl file> is the name of a file containing IDL definitions, and [options] is any combination of the options listed below. The options may appear in any order.

Options:
-i <include path>
By default, the current directory is scanned for included files. This option adds another directory. See also the note below.
-d <symbol>
This is equivalent to the following line in an IDL file: #define <symbol>
-f<side>
Defines what bindings to emit. <side> is one of client, server, all, serverTIE, allTIE. serverTIE and allTIE cause delegate model skeletons to be emitted. If this flag is not used, -fclient is assumed. allPOA has the same effect as all, except for generation POA type skeletons.
-keep
If a file to be generated already exists, do not overwrite it. By default it is overwritten.
-sep <string>
Only valid with -m. Replace the file separator character with <string> in the file names listed in the .u file.
-emitAll
Emit all types, including those found in #included files.
-v
Verbose mode.
-pkgPrefix <type> <package>
Whereever <type> is encountered, make sure it resides within <package> in all generated files. <type> is a fully qualified, java-style name.
Note: If you have an include path or paths that you will always be using, it can get tedious putting these on the command with the -i option all the time. Instead, these can be placed into a config file called idl.config. This file must be in the CLASSPATH. The format of the includes line is:
 includes=<path1>;<path2>;...;<pathN>
 
Note that the path separator character, here shown as a semicolon, is machine dependent. For instance, on Windows 95 this character is a semicolon, on UNIX it is a colon.
  • Field Details

  • Constructor Details

    • Compile

      protected Compile()
  • Method Details

    • main

      public static void main(String[] args)
    • start

      public void start(String[] args)
      Description copied from class: Compile
      Start the parse/code generation process. This method calls init, parse, generate. If more control is desired, rather than call start, those three methods could be called explicitly.
      Overrides:
      start in class Compile
      Parameters:
      args - command-line arguments
    • factories

      protected Factories factories()
      Overrides:
      factories in class Compile
    • preParse

      private void preParse()
    • preEmit

      protected void preEmit(Enumeration<SymtabEntry> emitList)
    • preEmitSTElement

      protected void preEmitSTElement(SymtabEntry entry)
      This method is called by preEmit once for each symbol table entry. It can be called by extenders.
    • preEmitELElement

      protected void preEmitELElement(SymtabEntry entry)
      This method is called by preEmit once for each emitList entry. It can be called by extenders.