首页> 外文会议>Signal Processing and Communications Applications Conference >Automatic comment generation using only source code
【24h】

Automatic comment generation using only source code

机译:仅使用源代码自动生成注释

获取原文

摘要

In this study, automatic comment generation for Java methods is described. It is sufficient that the codes conform to the syntax rules of the Java programming language, and it is not expected to be runnable. In order to generate comments, source code is examined syntactically. At this stage, only the method signature and its return type is needed. By working on open source Java projects, different templates have been developed for different method types. Using the compiled information which is the result of the examining source code that is currently being developed, the most suitable template is chosen and texts are created. These texts explain the aim of the method. Created texts are added to source code as a comment.
机译:在这项研究中,描述了Java方法的自动注释生成。这些代码符合Java编程语言的语法规则就足够了,并且不希望它可以运行。为了生成注释,对源代码进行语法检查。在此阶段,仅需要方法签名及其返回类型。通过处理开源Java项目,已经为不同的方法类型开发了不同的模板。使用作为检查当前正在开发的源代码的结果的编译信息,选择最合适的模板并创建文本。这些文本解释了该方法的目的。创建的文本将作为注释添加到源代码中。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号