首页> 外文期刊>Software Quality Journal >Specifying and checking method call sequences of Java programs
【24h】

Specifying and checking method call sequences of Java programs

机译:指定和检查Java程序的方法调用顺序

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

摘要

In a pre and postcondition-style specification, it is difficult to specify the allowed sequences of method calls, referred to as protocols. The protocols are essential properties of reusable object-oriented classes and application frameworks, and the approaches based on the pre and postconditions, such as design by contracts (DBC) and formal behavioral interface specification languages (BISL), are being accepted as a practical and effective tool for describing precise interfaces of (reusable) program modules. We propose a simple extension to the Java Modeling Language (JML), a BISL for Java, to specify protocol properties in an intuitive and concise manner. The key idea of our approach is to separate protocol properties from functional properties written in pre and post-conditions and to specify them in a regular expression-like notation. The semantics of our extension is formally defined and provides a foundation for implementing runtime checks. Case studies have been performed to show the effectiveness our approach. We believe that our approach can be adopted by other BISLs.
机译:在前置和后置条件风格的规范中,很难指定允许的方法调用序列(称为协议)。协议是可重用的面向对象类和应用程序框架的基本属性,基于前提条件和后置条件的方法(例如按合同设计(DBC)和正式的行为接口规范语言(BISL))已被接受为实用和描述(可重用)程序模块精确接口的有效工具。我们提议对Java建模语言(JML)(一种用于Java的BISL)进行简单扩展,以直观,简洁的方式指定协议属性。我们方法的关键思想是将协议属性与用前置条件和后置条件编写的功能属性分开,并以类似正则表达式的表示法指定它们。我们扩展的语义已正式定义,并为实现运行时检查提供了基础。已经进行了案例研究以证明我们方法的有效性。我们相信我们的方法可以被其他BISL采用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号