开发者

What tool is used to generate Android's API XML files?

开发者 https://www.devze.com 2023-01-07 16:27 出处:网络
The Android git tree provides a set of XML files describing the public API, e.g. base.git/api, e.g. base.git/api/7.xml (which contains the public API for Android 2.1).

The Android git tree provides a set of XML files describing the public API, e.g. base.git/api, e.g. base.git/api/7.xml (which contains the public API for Android 2.1).

Does anybody know how this file is generated? I would imagine that it uses some tool to process the android.jar file into an XML file (likely using java.lang.reflec开发者_Go百科t).

I ask principally because I need to process this file, and the file contains many deficiencies, e.g. there are types which implement the java.util.List interface, but java.util.List isn't defined in the file, and generic information is missing from the file (e.g. java.util.Vector is generic, but there isn't any way to tell that from the XML file).


doclava can generate the API XML file using the following parameters

-xmlapi output_file.xml

link to same question about DroidDoc and I think DroidDoc is either a component of doclava or doclava is the DroidDoc replacement.


The tool is called apicheck, you can find it in /out/host/linux-x86/bin/apicheck for example

0

精彩评论

暂无评论...
验证码 换一张
取 消