Supercharge Your Innovation With Domain-Expert AI Agents!

Object-oriented translation from COBOL to JAVA codes

An object-oriented and code-based technology, applied in the computer field, can solve the problems of OORTS heavy burden, not making full use of the object-oriented mechanism of JAVA language, and low operating efficiency, so as to achieve good operating efficiency.

Inactive Publication Date: 2006-08-16
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The advantage of this method is that OORTS can precisely control the behavior of the object to make it conform to the COBOL semantics. The disadvantage is that the burden of writing OORTS is too heavy, the operating overhead of OORTS is too large, the operating efficiency is not high, and it does not make full use of the JAVA language itself. Object Mechanism

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
  • Object-oriented translation from COBOL to JAVA codes
  • Object-oriented translation from COBOL to JAVA codes
  • Object-oriented translation from COBOL to JAVA codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The method of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0047] Step 10. Define an abstract encapsulation class for class data. The abstract encapsulation class is the root class of all class data encapsulation classes. It is used to implement common class data behaviors, and it is also convenient for passing class data as a whole to class methods as parameters type definition. A member variable used to store the class name of the current class object is defined in the abstract encapsulation class to realize the dynamic positioning of class methods.

[0048] Step 20, translate the COBOL class syntax elements according to the method of translating traditional COBOL programs: class (CLASS), class object (CLASS-OBJECT), object (OBJECT) and method (METHOD) are translated into corresponding JAVA classes, and make these JAVA classes The nesting relationship between is consistent with the nes...

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

A object-oriented translating method from COBOL to JAVA, it comprises: define a abstract encapsulated type of like-data; define the type, translate the like-phraselogical element of COBOL program, such as type, like-object, object and method into corresponding JAVA according to traditional method; define a like-port for the type, that consist of the definition of the like-data encapsulated type, the definition of the like-data object and the exampled data, and the definition of the like-port method of all the like-method and exampled-method, the successive relation between the like-ports incarnate the successive relation between the type in COBOL; the sentences using in translation is that translate the transfer sentences of the like-method to the transfer the corresponding method in the like-port. The invention utilizes the object-oriented of JAVA adequately.

Description

technical field [0001] The invention relates to source-source high-level language code translation technology in the computer field, in particular to a COBOL object-oriented translation method. Background technique [0002] Compilation is a key technology in the computer field. Source-to-source high-level language translation is an important research direction of compilation. Code translation from traditional COBOL language to modern Java language is a typical research object in this direction. [0003] Source-to-source high-level language translation is currently becoming a research hotspot in solving software migration problems. Traditional languages ​​(such as COBOL, FORTRAN, etc.) have a history of nearly 50 years since their birth. At present, a large number of mature commercial and scientific computing programs in the banking, securities and insurance industries are written in these traditional languages. Because modern languages ​​(such as C / C++, JAVA, etc.) replace...

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
IPC IPC(8): G06F9/44
Inventor 唐生林吴曾武成岗崔慧敏张兆庆苏灵燕王振江
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More