#NEWLINE# def write( self , stream , index ) : #NEWLINE# #INDENT# stream . write_u30 ( index . get_multiname_index ( self . name ) ) #NEWLINE# stream . write_u30 ( index . get_multiname_index ( self . super_name ) ) #NEWLINE# if hasattr ( self , 'protectedNs' ) : #NEWLINE# #INDENT# self . flags |= self . CONSTANT_ClassProtectedNs #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . flags &= ( ~ self . CONSTANT_ClassProtectedNs ) #NEWLINE# #UNINDENT# stream . write_u8 ( self . flags ) #NEWLINE# if hasattr ( self , 'protectedNs' ) : #NEWLINE# #INDENT# stream . write_u30 ( self . protectedNs ) #NEWLINE# #UNINDENT# stream . write_u30 ( len ( self . interface ) ) #NEWLINE# for i in self . interface : #NEWLINE# #INDENT# stream . write_u30 ( index . get_multiname_index ( i ) ) #NEWLINE# #UNINDENT# stream . write_u30 ( index . get_method_index ( self . iinit ) ) #NEWLINE# stream . write_u30 ( len ( self . trait ) ) #NEWLINE# for i in self . trait : #NEWLINE# #INDENT# i . write ( stream , index )