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

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

Write out information about a field. This writes out a <field> node with attributes describing the field.

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

Definition at line 600 of file StreamDiffHandler.java.

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

Referenced by fieldAdded(), fieldChanged(), and fieldRemoved().

                                                                     {
        out.write("<field");

        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.getValue() != null) {
            out.write(" value=\"");
            out.write(xmlEscape(info.getValue().toString()));
            out.write("\"");
        }
        out.write(">");
        if (info.getDesc() != null) {
            addTypeNode(info.getDesc());
        }
        out.write("</field>");
    }


Generated by  Doxygen 1.6.0   Back to index