protected void writeMethodInfo ( MethodInfo info ) { Node currentNode = this . currentNode ; Element tmp = doc . createElementNS ( XML_URI , "method" ) ; 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 . getDesc ( ) != null ) addMethodNodes ( info . getDesc ( ) ) ; String [ ] exceptions = info . getExceptions ( ) ; if ( exceptions != null ) { for ( int i = 0 ; i < exceptions . length ; i ++ ) { Element excep = doc . createElementNS ( XML_URI , "exception" ) ; excep . setAttribute ( "name" , exceptions [ i ] ) ; tmp . appendChild ( excep ) ; } } this . currentNode = currentNode ; }
Write out information about a method . This writes out a &lt ; method&gt ; node which contains information about the arguments the return type and the exceptions thrown by the method .