郝杰, 姜淑娟. 一种包含异常处理结构的面向对象切片方法[J]. 微电子学与计算机, 2012, 29(3): 1-5.
引用本文: 郝杰, 姜淑娟. 一种包含异常处理结构的面向对象切片方法[J]. 微电子学与计算机, 2012, 29(3): 1-5.
HAO Jie, JIANG Shu-juan. An Approach of Slicing for Object-Oriented Language with Exception Handling[J]. Microelectronics & Computer, 2012, 29(3): 1-5.
Citation: HAO Jie, JIANG Shu-juan. An Approach of Slicing for Object-Oriented Language with Exception Handling[J]. Microelectronics & Computer, 2012, 29(3): 1-5.

一种包含异常处理结构的面向对象切片方法

An Approach of Slicing for Object-Oriented Language with Exception Handling

  • 摘要: 针对面向对象语言的特点,结合异常处理机制,对传统的系统依赖图(SDG图)进行了扩展,实现了面向对象的系统依赖图(OSDG图).改进后的OSDG图可以很好地支持继承和多态等特征,并能处理多态对象抛出和处理异常所带来的数据和控制依赖关系.通过传统的程序切片算法,可以在OSDG上切出较为精确的切片.

     

    Abstract: Based on analyzing the object-oriented language feature and exception handling mechanism,this paper make some improvements to traditional system dependence graph(SDG),realize Object-oriented system dependent graph(OSDG).The improved OSDG can clearly describe some complex problems for object-oriented languages such as inheritance,polymorphism and deal with data and control dependence for the exception thrown out,and exception treatment from polymorphism object.Through the traditional slicing algorithm,more accurately slice can be gotten.

     

/

返回文章
返回