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

void org::osjava::jardiff::DOMDiffHandler::addMethodNodes ( String  desc  )  [inline, protected]

Add the method nodes for the method descriptor. This writes out an <arguments> node containing the argument types for the method, followed by a <return> node containing the return type.

Parameters:
desc The descriptor for the method to write out.

Definition at line 637 of file DOMDiffHandler.java.

References addTypeNode(), currentNode, doc, and XML_URI.

Referenced by writeMethodInfo().

                                               {
        Type[] args = Type.getArgumentTypes(desc);
        Type ret = Type.getReturnType(desc);
        Node currentNode = this.currentNode;
        Element tmp = doc.createElementNS(XML_URI,"arguments");
        currentNode.appendChild(tmp);
        this.currentNode = tmp;
        for (int i = 0; i < args.length; i++)
            addTypeNode(args[i]);
        tmp = doc.createElementNS(XML_URI,"return");
        currentNode.appendChild(tmp);
        this.currentNode = tmp;
        addTypeNode(ret);
        this.currentNode = currentNode;
    }


Generated by  Doxygen 1.6.0   Back to index