protected void writeClassInfo ( ClassInfo info ) { Node currentNode = this . currentNode ; Element tmp = doc . createElementNS ( XML_URI , "class" ) ; currentNode . appendChild ( tmp ) ; this . currentNode = tmp ; addAccessFlags ( info ) ; if ( info . getName ( ) != null ) tmp . setAttribute ( "name" , info . getName ( ) ) ; if ( info . getSignature ( ) != null ) tmp . setAttribute ( "signature" , info . getSignature ( ) ) ; if ( info . getSupername ( ) != null ) tmp . setAttribute ( "superclass" , info . getSupername ( ) ) ; String [ ] interfaces = info . getInterfaces ( ) ; for ( int i = 0 ; i < interfaces . length ; i ++ ) { Element iface = doc . createElementNS ( XML_URI , "implements" ) ; tmp . appendChild ( iface ) ; iface . setAttribute ( "name" , interfaces [ i ] ) ; } this . currentNode = currentNode ; }
Write out information about a class . This writes out a &lt ; class&gt ; node which contains information about what interfaces are implemented each in a &lt ; implements&gt ; node .