...
首页> 外文期刊>Software Quality Journal >A declarative approach for Java code instrumentation
【24h】

A declarative approach for Java code instrumentation

机译:Java代码检测的声明方法

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

摘要

Source instrumentation plays an important role in dynamic program analysis. However, current instrumentation implementations require programmers to write ad hoc rules that are often too complex to use and maintain. To address this complexity, we divide the task of source instrumentation into two steps: first, the source points are queried, into which code fragments should be planted; secondly, the code fragments including contextual information are generated and planted into source code through the queried points. According to this idea, we present a new method based on declarative code queries, which makes it easier to specify instrumentations using contextual information collected from expressive code queries. The JIns language provided by our method is constructed following an SQL-like style, which is well known and widely used by programmers. We evaluate the method in terms of the reduced complexity of instrumentation specifications for several common instrumentation tasks.
机译:源仪表在动态程序分析中起着重要作用。但是,当前的工具实现要求程序员编写临时规则,这些规则通常过于复杂以致于无法使用和维护。为了解决这种复杂性,我们将源检测的任务分为两个步骤:首先,查询源点,应将代码片段植入其中。其次,生成包含上下文信息的代码片段,并通过查询点将其植入源代码中。根据此想法,我们提出了一种基于声明性代码查询的新方法,该方法使使用从表达性代码查询中收集的上下文信息更易于指定工具。我们的方法提供的JIns语言是按照类似SQL的样式构造的,这种样式众所周知并已被程序员广泛使用。我们针对几种常见的仪表任务,通过降低仪表规范的复杂性来评估该方法。

著录项

  • 来源
    《Software Quality Journal》 |2015年第1期|143-170|共28页
  • 作者单位

    National Key Laboratory for Novel Software Technology Nanjing University">(1);

    School of Information Technology Nanjing University of Chinese Medicine">(2);

    Department of Computer Science and Technology Beijing Electronic Science and Technology Institute">(3);

    National Key Laboratory for Novel Software Technology Nanjing University">(1);

    National Key Laboratory for Novel Software Technology Nanjing University">(1);

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    Source query; Code instrumentation; Java;

    机译:源查询;代码检测;爪哇;

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号