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

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

Write out information about a class. This writes out a <class> node, which contains information about what interfaces are implemented each in a <implements> node.

Parameters:
info Info about the class to write out.
Exceptions:
IOException when there is an underlying IOException.

Definition at line 526 of file StreamDiffHandler.java.

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

Referenced by classAdded(), classChanged(), and classRemoved().

                                                                     {
        out.write("<class");
        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("\"");
        }
        if(info.getSupername() != null) {
            out.write(" superclass=\"");
            out.write(xmlEscape(info.getSupername()));
            out.write("\">");
        }
        String[] interfaces = info.getInterfaces();
        for (int i = 0; i < interfaces.length; i++) {
            out.write("<implements name=\"");
            out.write(xmlEscape(interfaces[i]));
            out.write("\"/>");
        }
        out.write("</class>");
    }


Generated by  Doxygen 1.6.0   Back to index