Class Compile
- 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.
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 Summary
Fields Modifier and Type Field Description private Factories_factoriesstatic Compilecompiler(package private) ModuleEntrycorbaSymtabFactoryfactoryjava.util.Vector<SymtabEntry>importTypesjava.util.Hashtablelist(package private) InterfaceEntryobject(package private) ModuleEntryomg(package private) ModuleEntryorgstatic inttypedefInfo-
Fields inherited from class com.sun.tools.corba.ee.idl.Compile
arguments, includes, overrideNames, symbolTable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Factoriesfactories()static voidmain(java.lang.String[] args)protected voidpreEmit(java.util.Enumeration<SymtabEntry> emitList)protected voidpreEmitELElement(SymtabEntry entry)This method is called by preEmit once for each emitList entry.protected voidpreEmitSTElement(SymtabEntry entry)This method is called by preEmit once for each symbol table entry.private voidpreParse()voidstart(java.lang.String[] args)Start the parse/code generation process.-
Methods inherited from class com.sun.tools.corba.ee.idl.Compile
displayVersion, generate, init, parse
-
-
-
-
Field Detail
-
_factories
private Factories _factories
-
org
ModuleEntry org
-
omg
ModuleEntry omg
-
corba
ModuleEntry corba
-
object
InterfaceEntry object
-
importTypes
public java.util.Vector<SymtabEntry> importTypes
-
factory
public SymtabFactory factory
-
typedefInfo
public static int typedefInfo
-
list
public java.util.Hashtable list
-
compiler
public static Compile compiler
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
start
public void start(java.lang.String[] args)
Description copied from class:CompileStart 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.
-
preParse
private void preParse()
-
preEmit
protected void preEmit(java.util.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.
-
-