I wrote some code to generate that xml side cart file for importing jars for use in b4a. For code like this .....
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package TestPackage;
/**
*
* @author Peter Carter
*/
public class Test {
private int bucket = 0;
public void setBucket(int b) {
bucket = b;
}
public int testFunc() {
return 1;
}
public void testProc(int a, String b) {
b = "";
b += a;
}
public int getBucket() {
return bucket;
}
}
It spits out this .....
<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.02</doclet-version-NOT-library-version>
<class>
<comment>Auto generated by com.blindally.B4AList</comment>
<name>TestPackage.Test</name>
<shortname>Test</shortname>
<owner>process</owner>
<method>
<name>testFunc</name>
<returntype>int</returntype>
</method>
<method>
<name>testProc</name>
<parameter><name>Arg0</name><type>int</type></parameter>
<parameter><name>Arg1</name><type>java.lang.String</type></parameter>
</method>
<property>
<name>Bucket</name>
<returntype>int</returntype>
<parameter><name>Arg0</name><type>int</type></parameter>
</property>
</class>
<version>1.00</version>
</root>
The parameter names are not able to be extracted, but the rest of the work is done for you. I have not put an interface on the generator as I run the code in my ide (Netbeans) linking the class(s) in question.
If anyone is actually interested, I will neaten it up and post it. Maybe someone can put an interface on it.