Android Tutorial Modified BADoclet

Ivica Golubovic

Active Member
Licensed User
After a lot of manually correcting the library's xml file to create the CodeModule in Eclipse, I finally decided to modify the standard BADoclet to do the process automatically. With this modified BADoclet it is possible to create CodeModule directly in Eclipse. The modified BADoclet can be used directly in Eclipse with GenerateJavadoc or in the Simple Library Compiler (SLC). For use in SLC it is necessary to extract the two files from the Zip archive directly to the SLC folder and replace the old ones.

Using the modified BADoclet does not require any additional annotation or additional JAR library. Simply add a # in the @Shortname annotation before the class name.

Example:
@ShortName("#MyCodeModule")

Very important: All methods and fields in the specified class must be static.

Little Example:
package b4a.mypackage;

import anywheresoftware.b4a.BA.ShortName;

@ShortName("#MyCodeModule")
public class MyCodeModuleClass {

    public static String MyString;

    public static void MyMethod() {
        //Do something...
    }
    
    public static String getMyProperty() {
        return MyString;
    }
}
 

Attachments

  • BADoclet.zip
    10.5 KB · Views: 106
Last edited:
Top