Logo Search packages:      
Sourcecode: jardiff version File versions  Download package

void org::osjava::jardiff::StreamDiffHandler::methodChanged ( MethodInfo  oldInfo,
MethodInfo  newInfo 
) throws DiffException [inline]

Write out info aboout a changed method. This writes out a <methodchange> node, followed by a <from> node, with the old information about the method followed by a <to> node with the new information about the method.

Parameters:
oldInfo Info about the old method.
newInfo Info about the new method.
Exceptions:
DiffException when there is an underlying exception, e.g. writing to a file caused an IOException

Implements org::osjava::jardiff::DiffHandler.

Definition at line 457 of file StreamDiffHandler.java.

References out, and writeMethodInfo().

    {
        try {
            out.write("<methodchange><from>");
            writeMethodInfo(oldInfo);
            out.write("</from><to>");
            writeMethodInfo(newInfo);
            out.write("</to></methodchange>");
        } catch (IOException ioe) {
            throw new DiffException(ioe);
        }
    }


Generated by  Doxygen 1.6.0   Back to index