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

void org::osjava::jardiff::StreamDiffHandler::writeMethodInfo ( MethodInfo  info  )  throws IOException [inline, protected]

Write out information about a method. This writes out a <method> node which contains information about the arguments, the return type, and the exceptions thrown by the method.

Parameters:
info Info about the method.
Exceptions:
IOException when there is an underlying IOException.

Definition at line 562 of file StreamDiffHandler.java.

References addAccessFlags(), addMethodNodes(), out, and xmlEscape().

Referenced by methodAdded(), methodChanged(), and methodRemoved().

                                                                       {
        out.write("<method");

        addAccessFlags(info);

        if (info.getName() != null) {
            out.write(" name=\"");
            out.write(xmlEscape(info.getName()));
            out.write("\"");
        }
        if (info.getSignature() != null) {
            out.write(" signature=\"");
            out.write(xmlEscape(info.getSignature()));
            out.write("\"");
        }
        out.write(">");
        if (info.getDesc() != null) {
            addMethodNodes(info.getDesc());
        }
        String[] exceptions = info.getExceptions();
        if (exceptions != null) {
            for (int i = 0; i < exceptions.length; i++) {
                out.write("<exception name=\"");
                out.write(xmlEscape(exceptions[i]));
                out.write("\"/>");
            }
        }
        out.write("</method>");
    }


Generated by  Doxygen 1.6.0   Back to index