从类和javadoc生成代码存根 [英] Generating code stub from class and javadoc
问题描述
是否有人熟悉从类和javadoc生成具有有意义名称的代码存根的工具?
Is anyone familiar with a tool that generates code stubs with meaningful names from class and javadoc?
真正的问题应该是我的类没有调试信息和匹配的javadoc,但我的IntelliJ IDEA 8.0.1(请,没有IDE战争)没有考虑到javadoc并向我显示void setLocation(Object object,String str1,int i1, int i2);而不是void setLocation(Object component,String name,int x,int y); - 这对于自动完成和易用性都有很大的不同。如果可以回答这个问题,我也会感到满意。
The real question should've been "I have classes without debug information and a matching javadoc, but my IntelliJ IDEA 8.0.1 (please, no IDE wars) doesn't take into account the javadoc and shows me "void setLocation(Object object, String str1, int i1, int i2);" instead of "void setLocation(Object component, String name, int x, int y);" - which makes a HUGE difference, both to auto-completion and ease of use". If this can be answered, I'd be satisfied as well.
推荐答案
我建议在这些行中提交针对IDEA的错误:如果一个类没有调试信息但是有JavaDocs,IDEA应该使用JavaDoc来确定参数的名称。
I suggest to file a bug against IDEA along these lines: If a class has no debug information but has JavaDocs, IDEA should use the JavaDoc to determine the names of the parameters.
Btw。 Eclipse也有同样的问题。 :)
Btw. Eclipse has the same problem. :)
这篇关于从类和javadoc生成代码存根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!