首页> 外文OA文献 >Design Pattern-Based Extension of Class Hierarchies to Support Runtime Invariant Checks
【2h】

Design Pattern-Based Extension of Class Hierarchies to Support Runtime Invariant Checks

机译:基于设计模式的类层次结构扩展以支持运行时   不变检查

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

We present a technique for automatically weaving structural invariant checksinto an existing collection of classes. Using variations on existing designpatterns, we use a concise specification to generate from this collection a newset of classes that implement the interfaces of the originals, but with theaddition of user-specified class invariant checks. Our work is notable in thescarcity of assumptions made. Unlike previous design pattern approaches to thisproblem, our technique requires no modification of the original source code,relies only on single inheritance, and does not require that the attributesused in the checks be publicly visible. We are able to instrument a widevariety of class hierarchies, including those with pure interfaces, abstractclasses and classes with type parameters. We have implemented the constructionas an Eclipse plug-in for Java development.
机译:我们提出了一种将结构不变检查自动编织到现有类集合中的技术。使用现有设计模式的变体,我们使用简洁的规范从该集合中生成实现原始接口的新类集,但还要添加用户指定的类不变性检查。我们所做的工作因缺乏假设而著称。与以前针对该问题的设计模式方法不同,我们的技术无需修改原始源代码,仅依赖于单个继承,并且不需要将检查中使用的属性公开可见。我们能够检测各种各样的类层次结构,包括那些具有纯接口,抽象类和带有类型参数的类。我们已经将该构造实现为Java开发的Eclipse插件。

著录项

  • 作者

    Lasseter, John; Cipriano, John;

  • 作者单位
  • 年度 2013
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"en","name":"English","id":9}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号