首页> 外国专利> Locating software units of a software module to facilitate software refactoring

Locating software units of a software module to facilitate software refactoring

机译:定位软件模块的软件单元以促进软件重构

摘要

Disclosed is a method of locating program code units (206), e.g. folders or source code files, stored on data storage (600). The method includes defining a software module fragment (212) by assigning a software module fragment label (e.g. metadata) to selected program code units; creating a module fragment list (e.g. a logical or functional search path (210)) defining a software module, the list comprising a set of said fragments; receiving 410 a request to retrieve the program code units of a specified software module from the digital data storage; and converting 440 the module fragment list into a list of physical locations (i.e. a physical search path or build path) of the corresponding code units using the labels. The conversion step 440 includes searching 430 the data storage for code units, based on the labels. A label added to a program code unit identifies the software module fragment to which it belongs so that the unit may be seen as declaring itself as forming part of the fragment. Even if a program code unit is relocated, refactored or renamed a compiler can still recognise it as part of a fragment by virtue of the label.
机译:公开了一种定位程序代码单元(206)的方法,例如。文件夹或源代码文件,存储在数据存储器(600)上。该方法包括通过将软件模块片段标签(例如,元数据)分配给所选程序代码单元来定义软件模块片段(212);创建定义软件模块的模块片段列表(例如,逻辑或功能搜索路径(210)),该列表包括一组所述片段;接收410从数字数据存储器中检索指定软件模块的程序代码单元的请求;然后,使用标签将模块片段列表转换(440)为相应代码单元的物理位置列表(即,物理搜索路径或构建路径)。转换步骤440包括基于标签在430在数据存储器中搜索代码单元。添加到程序代码单元的标签标识了它所属的软件模块片段,因此该单元可以看作是声明自己为该片段的一部分。即使程序代码单元被重定位,重构或重命名,编译器仍然可以借助标签将其识别为片段的一部分。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号