Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Design-mode-guided Java code reviewing method

A design pattern and code technology, applied in the computer field, to achieve the effect of reducing human intervention

Active Publication Date: 2013-09-04
NANJING UNIV
View PDF2 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

, the design pattern requires the understanding of the programmer when the code is implemented, so this process can easily introduce human errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Design-mode-guided Java code reviewing method
  • Design-mode-guided Java code reviewing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention provides a Java code review method for detecting the consistency of design pattern information on design class diagrams and source codes, figure 1 It is the specific implementation framework of the Java code review method guided by the design pattern. In the specific implementation, you can use the existing design pattern detector, rule editor, rule generator, rule reviewer and other tools or build these tools yourself.

[0045] Concrete implementation process of the present invention is as follows:

[0046] Step 1. The user provides information such as the Java source code to be reviewed and the class diagram of all classes, Java source files, and the location of the class diagram.

[0047] Step 2. The design pattern detector analyzes the inheritance and association relationships existing in the class diagram to obtain effective design patterns. In the specific implementation, the design pattern detector tool can be used to extract the specific d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a design-mode-guided Java code reviewing method. First of all, users provide a source code and design time information of the source code of a Java program to be reviewed, class diagrams in the design time information are analyzed, design mode information is extracted, and corresponding relationship of all participation roles of a design mode is generated. According to the information, by means of a pre-defined rule template, the rule template is instantiated as a group of constraint rules which should be met on codes, an abstract syntax tree of the Java source code to be reviewed is analyzed by reading the rules, whether achievement meets design time constraint is judged, and conditions which do not meet constraint are prompted. By means of the method, the code can be reviewed automatically, work load of manual examination of the code in a whole reviewing process is reduced, and the reviewing efficiency of the code is improved.

Description

technical field [0001] The invention relates to a method for automatically detecting the consistency of design pattern information between design class diagrams and Java (Java) code implementation, which belongs to the field of computer technology. Background technique [0002] Since the concept of design pattern was proposed, it has been widely used in scientific research and industry. A design pattern is a highly abstract design-time information that provides a good modular solution. It is a summary of a set of code design experience that is used repeatedly, known to most people, cataloged, and coded. Design patterns are used to reusable code, to make code easier to understand by others, and to ensure code reliability. , the design pattern requires programmers' understanding when the code is implemented, so this process can easily introduce human errors. [0003] The code review method is a process of checking the code before testing. According to a series of pre-prepare...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/50
Inventor 王林章何剑涛赵建华李宣东陈志
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products