public void methodChanged ( MethodInfo oldInfo , MethodInfo newInfo ) throws DiffException { Node currentNode = this . currentNode ; Element tmp = doc . createElementNS ( XML_URI , "methodchange" ) ; Element from = doc . createElementNS ( XML_URI , "from" ) ; Element to = doc . createElementNS ( XML_URI , "to" ) ; tmp . appendChild ( from ) ; tmp . appendChild ( to ) ; currentNode . appendChild ( tmp ) ; this . currentNode = from ; writeMethodInfo ( oldInfo ) ; this . currentNode = to ; writeMethodInfo ( newInfo ) ; this . currentNode = currentNode ; }
Write out info aboout a changed method . This writes out a &lt ; methodchange&gt ; node followed by a &lt ; from&gt ; node with the old information about the method followed by a &lt ; to&gt ; node with the new information about the method .