47 48 import com.sun.tools.corba.se.idl.InterfaceEntry; 49 import com.sun.tools.corba.se.idl.MethodEntry; 50 import com.sun.tools.corba.se.idl.ParameterEntry; 51 import com.sun.tools.corba.se.idl.SymtabEntry; 52 import com.sun.tools.corba.se.idl.AttributeEntry; 53 54 /** 55 * 56 **/ 57 public class AttributeGen24 extends MethodGenClone24 58 { 59 /** 60 * Public zero-argument constructor. 61 **/ 62 public AttributeGen24 () 63 { 64 } // ctor 65 66 /** 67 * <d62023-klr> Added for 2.4 RTF 68 **/ 69 protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) 70 { 71 AttributeEntry a = (AttributeEntry)m; 72 73 // Generate for the get method 74 super.abstractMethod (symbolTable, a, stream); 75 76 // Generate for the set method if the attribute is not readonly 77 if (!a.readOnly ()) 78 { 79 setupForSetMethod (); 80 super.abstractMethod (symbolTable, a, stream); 81 clear (); 82 } 83 } // abstractMethod 84 85 /** 86 * <d62023-klr> Added for 2.4 RTF 87 **/ 88 protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) 89 { 90 AttributeEntry a = (AttributeEntry)m; 91 92 // Generate for the get method 93 super.interfaceMethod (symbolTable, a, stream); 94 95 // Generate for the set method if the attribute is not readonly 96 if (!a.readOnly ()) 97 { 98 setupForSetMethod (); 99 super.interfaceMethod (symbolTable, a, stream); 100 clear (); 101 } 102 } // interfaceMethod 103 104 } // class AttributeGen24 | 47 48 import com.sun.tools.corba.se.idl.InterfaceEntry; 49 import com.sun.tools.corba.se.idl.MethodEntry; 50 import com.sun.tools.corba.se.idl.ParameterEntry; 51 import com.sun.tools.corba.se.idl.SymtabEntry; 52 import com.sun.tools.corba.se.idl.AttributeEntry; 53 54 /** 55 * 56 **/ 57 public class AttributeGen24 extends MethodGenClone24 58 { 59 /** 60 * Public zero-argument constructor. 61 **/ 62 public AttributeGen24 () 63 { 64 } // ctor 65 66 /** 67 * (d62023-klr) Added for 2.4 RTF 68 **/ 69 protected void abstractMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) 70 { 71 AttributeEntry a = (AttributeEntry)m; 72 73 // Generate for the get method 74 super.abstractMethod (symbolTable, a, stream); 75 76 // Generate for the set method if the attribute is not readonly 77 if (!a.readOnly ()) 78 { 79 setupForSetMethod (); 80 super.abstractMethod (symbolTable, a, stream); 81 clear (); 82 } 83 } // abstractMethod 84 85 /** 86 * (d62023-klr) Added for 2.4 RTF 87 **/ 88 protected void interfaceMethod (Hashtable symbolTable, MethodEntry m, PrintWriter stream) 89 { 90 AttributeEntry a = (AttributeEntry)m; 91 92 // Generate for the get method 93 super.interfaceMethod (symbolTable, a, stream); 94 95 // Generate for the set method if the attribute is not readonly 96 if (!a.readOnly ()) 97 { 98 setupForSetMethod (); 99 super.interfaceMethod (symbolTable, a, stream); 100 clear (); 101 } 102 } // interfaceMethod 103 104 } // class AttributeGen24 |