...
首页> 外文期刊>IEEE Transactions on Software Engineering >Discovering Documentation for Java Container Classes
【24h】

Discovering Documentation for Java Container Classes

机译:发现Java容器类的文档

获取原文
获取原文并翻译 | 示例
           

摘要

Modern programs make extensive use of reusable software libraries. For example, we found that 17% to 30% of the classes in a number of large Java applications use the container classes from the java.util package. Given this extensive code reuse in Java programs, it is important for the reusable interfaces to have clear and unambiguous documentation. Unfortunately, most documentation is expressed in English, and therefore does not always satisfy these requirements. Worse yet, there is no way of checking that the documentation is consistent with the associated code. Formal specifications present an alternative which does not suffer from these problems; however, formal specifications are notoriously hard to write. To alleviate this difficulty, we have implemented a tool which automatically derives documentation in the form of formal specifications. Our tool probes Java classes by invoking them on dynamically generated tests and captures the information observed during their execution as algebraic axioms. While the tool is not complete or correct from a formal perspective we demonstrate that it discovers many useful axioms when applied to container classes. These axioms then form an initial formal documentation of the class they describe.
机译:现代程序广泛使用可重用的软件库。例如,我们发现许多大型Java应用程序中有17%到30%的类使用java.util包中的容器类。鉴于Java程序中大量的代码重用,可重用的接口具有清晰而明确的文档非常重要。不幸的是,大多数文档都是用英语表达的,因此并不总是满足这些要求。更糟糕的是,无法检查文档是否与关联的代码一致。正式规范提出了一种替代方案,不会遭受这些问题的困扰。但是,众所周知,正式规范很难编写。为了减轻这种困难,我们实现了一个工具,该工具可以自动以正式规范的形式导出文档。我们的工具通过在动态生成的测试中调用Java类来对其进行探测,并将它们在执行过程中观察到的信息捕获为代数公理。虽然从正式角度来看该工具并不完整或不正确,但我们证明了该工具在应用于容器类时发现了许多有用的公理。然后,这些公理形成它们所描述的类的初始正式文档。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号