func init // adds using namespace sys.add_use('System.IO') sys.add_use('System.Text') // initialize instance params = this.props('Constructor').value if(params == 'Constructor') params = '' + d("Stream") elseif(params == 'Constructor2') params = '' + d("Path") elseif(params == 'Constructor3') params = '' + d("Stream") + ', ' + (isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding")) elseif(params == 'Constructor4') params = '' + d("Path") + ', ' + d("Append") elseif(params == 'Constructor5') params = '' + d("Stream") + ', ' + (isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding")) + ', ' + d("BufferSize") elseif(params == 'Constructor6') params = '' + d("Path") + ', ' + d("Append") + ', ' + (isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding")) elseif(params == 'Constructor7') params = '' + d("Path") + ', ' + d("Append") + ', ' + (isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding")) + ', ' + d("BufferSize") end sys.add_object(this.codename, 'StreamWriter', params) // initialize properties sys.set_typed_field(104, 'AutoFlush') // makes implementation methods for properties sys._prop_init('AutoFlush', 1, 1, 104) sys._prop_init('BaseStream', 1, 0, 0) sys._prop_init('Encoding', 1, 0, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('StreamWriter') // makes implementation of simple methods sys._method_init('Close') sys._method_init('Dispose') sys._method_init('Flush') // initialize common events and properties include("TextWriter-init") end func doConstructor(data) blk.println(this.codename, ' = new StreamWriter(', d("Stream"), ');') end func doConstructor2(data) blk.println(this.codename, ' = new StreamWriter(', d("Path"), ');') end func doConstructor3(data) blk.println(this.codename, ' = new StreamWriter(', d("Stream"), ', ', isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding"), ');') end func doConstructor4(data) blk.println(this.codename, ' = new StreamWriter(', d("Path"), ', ', d("Append"), ');') end func doConstructor5(data) blk.println(this.codename, ' = new StreamWriter(', d("Stream"), ', ', isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding"), ', ', d("BufferSize"), ');') end func doConstructor6(data) blk.println(this.codename, ' = new StreamWriter(', d("Path"), ', ', d("Append"), ', ', isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding"), ');') end func doConstructor7(data) blk.println(this.codename, ' = new StreamWriter(', d("Path"), ', ', d("Append"), ', ', isdef("Encoding") ? d("Encoding") : sys.get_undef_manager("Encoding"), ', ', d("BufferSize"), ');') end func Null return('StreamWriter.Null') end include("TextWriter")