Cross-programming language interface switching method and device

A language interface, cross-programming technology, applied in the computer field, can solve problems such as inability to identify the caller, too much redundant code, and inability to serialize the return result, so as to increase controllability and flexibility, reduce repetitive work, The effect of solving polymorphic problems

Active Publication Date: 2018-03-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. Because the caller only needs some interfaces and objects provided by the server, since the generation tool cannot identify which interfaces and objects the caller needs, there will be too much redundant code after code generation;
[0006] 2. The caller makes custom adjustments to some codes due to business needs, and there is a lot of repetitive work to directly modify the automatically generated codes;
[0007] 3. The object instance returned by the interface may have polymorphism, that is, the object declaration returned in the interface description class is a parent class, but the actual return may be a subclass of the parent class, and the returned object instance may have multiple children class, causing the interface description class of the target language to fail to obtain the actual type returned, making it impossible to serialize the returned result after the interface call

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
  • Cross-programming language interface switching method and device
  • Cross-programming language interface switching method and device
  • Cross-programming language interface switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0035] figure 1 is a schematic diagram of main steps of a method for inter-programming language interface conversion according to an embodiment of the present invention.

[0036] Such as figure 1 As shown, a method for cross-programming language interface conversion in the embodiment of the present invention mainly includes the following steps:

[0037] Step S101: Gener...

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 discloses a cross-programming language interface switching method and device, and relates to the technical field of computers. According to the embodiment, the method comprises the stepsthat an IDL file is generated according to source language interface descriptions; the IDL file is edited; based on the edited IDL file, target language interface descriptions are generated. According to the embodiment, by editing the IDL file, it can be avoided that in the cross-programming language interface switching process, excessive redundant codes are generated; repetitive work in the modifying process is reduced; the controllability and the flexibility of the cross-programming language interface switching process are improved; the polymorphic problems of different programming languages in the code switching process are effectively solved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for interface conversion across programming languages. Background technique [0002] With the development of computer technology, people's life is more and more dependent on computer technology. In order to meet various needs, system programs with different functions have emerged as the times require. In the process of system program development, cross-departmental cooperation and collaborative development often occur. Since different programming languages ​​are used between departments, there are many interface call scenarios across programming languages ​​in the process of collaborative development. [0003] At present, the interface protocol conversion of different programming languages ​​can be automatically generated using tools according to the structural similarity of the interface description classes of the server and the caller. The interface stand...

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): G06F8/30G06F8/33
CPCG06F8/315G06F8/33
Inventor 郑伟强王德俊
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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
Try Eureka
PatSnap group products