duke@1: /* ohair@158: * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved. duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: * duke@1: * This code is free software; you can redistribute it and/or modify it duke@1: * under the terms of the GNU General Public License version 2 only, as ohair@158: * published by the Free Software Foundation. Oracle designates this duke@1: * particular file as subject to the "Classpath" exception as provided ohair@158: * by Oracle in the LICENSE file that accompanied this code. duke@1: * duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: * version 2 for more details (a copy is included in the LICENSE file that duke@1: * accompanied this code). duke@1: * duke@1: * You should have received a copy of the GNU General Public License version duke@1: * 2 along with this work; if not, write to the Free Software Foundation, duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: * ohair@158: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@158: * or visit www.oracle.com if you need additional information or have any ohair@158: * questions. duke@1: */ duke@1: /* duke@1: * COMPONENT_NAME: idl.toJava duke@1: * duke@1: * ORIGINS: 27 duke@1: * duke@1: * Licensed Materials - Property of IBM duke@1: * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999 duke@1: * RMI-IIOP v1.0 duke@1: * duke@1: */ duke@1: duke@1: package com.sun.tools.corba.se.idl.toJavaPortable; duke@1: duke@1: // NOTES: duke@1: // -D62023 New file to implement CORBA 2.4 RTF duke@1: // NOTE: The methods in this class should be exact copies of the duke@1: // correspoind methods in MethodGen24. The purpose of this class is duke@1: // to inject the changes made in MethodGen24 between AttributeGen duke@1: // and AttributeGen24. When the AttributeGen24 changes are merged, this duke@1: // class should be deleted. duke@1: duke@1: import java.io.PrintWriter; duke@1: duke@1: import java.util.Enumeration; duke@1: import java.util.Vector; duke@1: import java.util.Hashtable; duke@1: duke@1: import com.sun.tools.corba.se.idl.GenFileStream; duke@1: import com.sun.tools.corba.se.idl.InterfaceEntry; duke@1: import com.sun.tools.corba.se.idl.MethodEntry; duke@1: import com.sun.tools.corba.se.idl.ParameterEntry; duke@1: import com.sun.tools.corba.se.idl.SymtabEntry; duke@1: import com.sun.tools.corba.se.idl.ValueEntry; duke@1: import com.sun.tools.corba.se.idl.ValueBoxEntry; duke@1: import com.sun.tools.corba.se.idl.TypedefEntry; duke@1: import com.sun.tools.corba.se.idl.InterfaceState; duke@1: import com.sun.tools.corba.se.idl.PrimitiveEntry; duke@1: import com.sun.tools.corba.se.idl.StructEntry; duke@1: duke@1: /** duke@1: * duke@1: **/ duke@1: public class MethodGenClone24 extends AttributeGen duke@1: { duke@1: /** duke@1: * Public zero-argument constructor. duke@1: **/ duke@1: public MethodGenClone24 () duke@1: { duke@1: } // ctor duke@1: duke@1: /** duke@1: * - write an abstract method definition duke@1: **/ duke@1: protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) duke@1: { duke@1: this.symbolTable = symbolTable; duke@1: this.m = m; duke@1: this.stream = stream; duke@1: if (m.comment () != null) duke@1: m.comment ().generate (" ", stream); duke@1: stream.print (" "); duke@1: stream.print ("public abstract "); duke@1: writeMethodSignature (); duke@1: stream.println (";"); duke@1: stream.println (); duke@1: } // abstractMethod duke@1: duke@1: /** duke@1: * - delete method templates for valuetypes duke@1: **/ duke@1: protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) duke@1: { duke@1: this.symbolTable = symbolTable; duke@1: this.m = m; duke@1: this.stream = stream; duke@1: if (m.comment () != null) duke@1: m.comment ().generate (" ", stream); duke@1: stream.print (" "); duke@1: writeMethodSignature (); duke@1: stream.println (";"); duke@1: } // interfaceMethod duke@1: }