首页> 外文会议>2013 Fourth World Congress on Software Engineering >Java Source Code Static Check Eclipse Plug-In Based on Common Design Pattern
【24h】

Java Source Code Static Check Eclipse Plug-In Based on Common Design Pattern

机译:基于通用设计模式的Java源代码静态检查Eclipse插件

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

摘要

Design patterns represent the best practices used by experienced java developers. Design patterns abstract reusable object-oriented software designs which are solutions to general problems that software developers faced during software development. Each pattern solves design problems that occur in every day development. The detection of design patterns during the process of software reverse engineering can provide a better understanding of the software system. The most recent approaches in design pattern detection rely on the abstract syntax tree representation of the source code for fact extraction. This paper proposes a new way to detect design pattern in Java applications by analyzing the java source code. This paper discussed about the relations both between classes and objects and established the derivative design pattern about model property. Using the roles, responsibilities and collaboration information of each design pattern define static definitions. The static definitions are used to find candidate instances during the static analysis by using BCEL. After the static analysis the found candidate instances are validated by using the dynamic behavior of design patterns. We instrument the Java byte code of the application we are analyzing with additional code fragments and extract method traces from the running application. These method traces represent the dynamic facts of an application. The several restrictions are presented to define design patterns dynamically. Four common patterns of original GoF design patterns are tested and the results are analyzed which give better results in detecting design patterns comparing with other tools. In addition a Java source code static checking tool, an Eclipse plug-in, is implemented. Finally several java applications source codes were analyzed by using the plug-in, and verified the feasibility of the approach.
机译:设计模式代表经验丰富的Java开发人员使用的最佳实践。设计模式抽象了可重用的面向对象的软件设计,这些设计是软件开发人员在软件开发过程中面临的一般问题的解决方案。每种模式都解决了每天开发中出现的设计问题。在软件逆向工程过程中检测设计模式可以更好地理解软件系统。设计模式检测中的最新方法依赖于事实提取的源代码的抽象语法树表示。本文提出了一种通过分析Java源代码来检测Java应用程序中的设计模式的新方法。本文讨论了类与对象之间的关系,并建立了模型属性的派生设计模式。使用每个设计模式的角色,职责和协作信息来定义静态定义。静态定义用于在静态分析过程中使用BCEL查找候选实例。静态分析之后,通过使用设计模式的动态行为来验证找到的候选实例。我们使用附加的代码片段对正在分析的应用程序的Java字节代码进行检测,并从正在运行的应用程序中提取方法跟踪。这些方法跟踪表示应用程序的动态事实。提出了一些限制以动态定义设计模式。测试了原始GoF设计模式的四种常见模式,并对结果进行了分析,与其他工具相比,这些模式在检测设计模式方面提供了更好的结果。另外,还实现了Java源代码静态检查工具,即Eclipse插件。最后,通过使用该插件分析了几个Java应用程序源代码,并验证了该方法的可行性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号