Desired output examples:
(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;
(Ljava/lang/String;)Lorg/w3c/dom/Attr;
Such signatures can be generated using javap utility:
javap -s -p org.w3c.dom.Node
But is there any way to generate them programmatically. I dont' want to manually code all the rules from jni specification.