173 /** 174 * Generate a Helper when the user does not want just the server-side code. 175 **/ 176 protected void generateHelper () 177 { 178 if (emit != Arguments.Server) 179 factories.helper ().generate (symbolTable, i); 180 } // generateHelper 181 182 /** 183 * Generate a Holder when the user does not want just the server-side code. 184 **/ 185 protected void generateHolder () 186 { 187 if (emit != Arguments.Server) 188 factories.holder ().generate (symbolTable, i); 189 } // generateHolder 190 191 /** 192 * Generate the interface. Provides general algorithm for binding generation: 193 * 1.) Initialize members unique to this generator. - init () 194 * 2.) Open print stream - openStream () 195 * 3.) Write class heading (package, prologue, class statement, open curly - writeHeading () 196 * 4.) Write class body (member data and methods) - write*Body () 197 * 5.) Write class closing (close curly) - writeClosing () 198 * 6.) Close the print stream - closeStream () 199 * 200 * For CORBA 2.3, interfaces are mapped to Operations and Signature 201 * interfaces. The Operations interface contains the method definitions. 202 * The Signature interface extends the Operations interface and adds 203 * CORBA::Object. <klr> 204 **/ 205 protected void generateInterface () 206 { 207 init (); 208 openStream (); 209 if (stream == null) 210 return; 211 writeHeading (); 212 if (intfType == OPERATIONS) 213 writeOperationsBody (); 214 if (intfType == SIGNATURE) 215 writeSignatureBody (); 216 writeClosing (); 217 closeStream (); 218 } // generateInterface 219 220 /** 221 * 222 **/ 223 protected void openStream () | 173 /** 174 * Generate a Helper when the user does not want just the server-side code. 175 **/ 176 protected void generateHelper () 177 { 178 if (emit != Arguments.Server) 179 factories.helper ().generate (symbolTable, i); 180 } // generateHelper 181 182 /** 183 * Generate a Holder when the user does not want just the server-side code. 184 **/ 185 protected void generateHolder () 186 { 187 if (emit != Arguments.Server) 188 factories.holder ().generate (symbolTable, i); 189 } // generateHolder 190 191 /** 192 * Generate the interface. Provides general algorithm for binding generation: 193 * <ol> 194 * <li> Initialize members unique to this generator - init()</li> 195 * <li> Open print stream - openStream()</li> 196 * <li> Write class heading (package, prologue, class statement, open curly - writeHeading()</li> 197 * <li> Write class body (member data and methods) - write*Body()</li> 198 * <li> Write class closing (close curly) - writeClosing()</li> 199 * <li> Close the print stream - closeStream ()</li> 200 * </ol> 201 * 202 * For CORBA 2.3, interfaces are mapped to Operations and Signature 203 * interfaces. The Operations interface contains the method definitions. 204 * The Signature interface extends the Operations interface and adds 205 * CORBA::Object. (klr) 206 **/ 207 protected void generateInterface () 208 { 209 init (); 210 openStream (); 211 if (stream == null) 212 return; 213 writeHeading (); 214 if (intfType == OPERATIONS) 215 writeOperationsBody (); 216 if (intfType == SIGNATURE) 217 writeSignatureBody (); 218 writeClosing (); 219 closeStream (); 220 } // generateInterface 221 222 /** 223 * 224 **/ 225 protected void openStream () |