我有一个非常大的 .java 类文件,它有很多成员。如何为此创建 HTML 文档,以便按出现顺序向我显示成员,而不按成员类型排序?(方法、常量和变量)
例如,如果我的 Java 代码是:
private int typeOfAction_1; // notice the order: 1,2,3..
public void startAction_2(){
}
private int jobtype_3;
private int jobcount_4;
private void doJob_5(){
}
public void haltAction_6(){
}
Javadoc 按字母顺序排列成员并按类型排序,因此成员之间的关系丢失了:
int jobcount_4; // notice how the order is lost: 4,3,1..
int jobtype_3;
int typeOfAction_1;
doJob_5()
haltAction_6()
startAction_2()
此外,是否生成了具有更智能功能的文档?喜欢:
- 提取方法和变量的附近注释
- 方法的大小 - 代码行