Java Code Examples for com.sun.tools.corba.se.idl.PrimitiveEntry#name()
The following examples show how to use
com.sun.tools.corba.se.idl.PrimitiveEntry#name() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Compile.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 2
Source File: Compile.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 3
Source File: Compile.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 4
Source File: Compile.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 5
Source File: Compile.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 6
Source File: Compile.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 7
Source File: Compile.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }
Example 8
Source File: Compile.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * **/ protected void preParse () { Util.setSymbolTable (symbolTable); Util.setPackageTranslation( ((Arguments)arguments).packageTranslation ) ; // Need modules for the predefined objects org = factory.moduleEntry (); // <d61919> Suppress generation of this module. If the parser reopens it // while parsing the main IDL source, any definitions appearing in the module // -- and not appearing in a global-scope include file -- will be added to // the emit list with emit=true for eventual generation. org.emit (false); org.name ("org"); org.container (null); omg = factory.moduleEntry (); omg.emit (false); // <d61919> omg.name ("omg"); omg.module ("org"); omg.container (org); org.addContained (omg); corba = factory.moduleEntry (); corba.emit (false); // <d61919> corba.name ("CORBA"); corba.module ("org/omg"); corba.container (omg); omg.addContained (corba); symbolTable.put ("org", org); symbolTable.put ("org/omg", omg); symbolTable.put ("org/omg/CORBA", corba); // Add CORBA::Object to symbol table. object = (InterfaceEntry)symbolTable.get ("Object"); object.module ("org/omg/CORBA"); object.container (corba); symbolTable.put ("org/omg/CORBA/Object", object); // <d61961> Add PIDL type (primitive) CORBA::TypeCode to symbol table. PrimitiveEntry pEntry = factory.primitiveEntry (); pEntry.name ("TypeCode"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/TypeCode", pEntry); symbolTable.put ("CORBA/TypeCode", pEntry); // <d55699> overrideNames.put ("CORBA/TypeCode", "org/omg/CORBA/TypeCode"); // <d55699> overrideNames.put ("org/omg/CORBA/TypeCode", "CORBA/TypeCode"); // <d55699> // <d49526> Allow user to specify types named "TypeCode" //symbolTable.put ("TypeCode", pEntry); //overrideNames.put ("TypeCode", "org/omg/CORBA/TypeCode"); // CORBA::Principal is deprecated! // <d61961> Add PIDL type (primitive) CORBA::Principal to symbol table. pEntry = factory.primitiveEntry (); pEntry.name ("Principal"); pEntry.module ("org/omg/CORBA"); pEntry.container (corba); symbolTable.put ("org/omg/CORBA/Principle", pEntry); symbolTable.put ("CORBA/Principal", pEntry); overrideNames.put ("CORBA/Principal", "org/omg/CORBA/Principal"); overrideNames.put ("org/omg/CORBA/Principal", "CORBA/Principal"); // <d61961> Add PIDL type (interface) CORBA::Current to symbol table. //InterfaceEntry iEntry = factory.interfaceEntry (); //iEntry.name ("Current"); //iEntry.module ("org/omg/CORBA"); //iEntry.container (corba); //symbolTable.put ("org/omg/CORBA/Current", iEntry); //symbolTable.put ("CORBA/Current", iEntry); //overrideNames.put ("CORBA/Current", "org/omg/CORBA/Current"); //overrideNames.put ("org/omg/CORBA/Current", "CORBA/Current"); overrideNames.put ("TRUE", "true"); overrideNames.put ("FALSE", "false"); //overrideNames.put ("any", "org/omg/CORBA/Any"); // Add CORBA module to symbol table symbolTable.put ("CORBA", corba); // 55699 overrideNames.put ("CORBA", "org/omg/CORBA"); // <d55699> overrideNames.put ("org/omg/CORBA", "CORBA"); // <d55699> }