首页> 外文会议>International Workshop on Software Clones >Towards automated generation of Java methods: A way of automated reuse-based programming
【24h】

Towards automated generation of Java methods: A way of automated reuse-based programming

机译:致力于自动生成Java方法:一种基于重用的自动编程方式

获取原文

摘要

Automatic programming has been researched for a long time. A variety of methodologies have been proposed. However, they have limited applicability, or they can generate only a few lines of code. In this research, the authors are trying to generate source code of Java methods based on their specifications. In this paper, we propose a reuse-based code generation technique with method signature and test cases. First, our technique searches existing Java methods whose signature are the same as the one input by a user. Then, our technique reworks each of them by using test cases input by the user. Methods passing all the test cases are given to the user. At this moment, the authors have implemented a naive prototype and conducted experiments with four open source software. In total, our technique succeeded to generate 18 Java methods. In this paper, we also introduce some actual examples of generated Java methods and some ideas to enhance our technique.
机译:自动编程已经研究了很长时间。已经提出了多种方法。但是,它们的适用性有限,或者它们只能生成几行代码。在这项研究中,作者正在尝试根据其规范生成Java方法的源代码。在本文中,我们提出了一种具有方法签名和测试用例的基于重用的代码生成技术。首先,我们的技术搜索签名与用户输入的Java方法相同的现有Java方法。然后,我们的技术通过使用用户输入的测试用例来对它们中的每一个进行重做。通过所有测试用例的方法将提供给用户。目前,作者已经实现了一个简单的原型,并使用四个开源软件进行了实验。总共,我们的技术成功生成了18种Java方法。在本文中,我们还介绍了一些生成的Java方法的实际示例,以及一些增强我们的技术的想法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号