API matching method and device based on API document

A matching method and a matching device technology, which are applied in the direction of program files, text database query, unstructured text data retrieval, etc., can solve the problems of insufficient use of documents, inability to better realize API matching, etc., and achieve the goal of improving accuracy Effect

Active Publication Date: 2020-05-01
NANJING UNIV
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Another current method based on API documents mainly uses statistics and text similarity methods to implement API mapping, but they do not make full use of the semantic information of documents, such as formal parameter descriptions, return value descriptions, and API signatures, which cannot be better Implement API matching

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
  • API matching method and device based on API document
  • API matching method and device based on API document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0043] An API matching method based on an API document in this embodiment is used for matching an API in the Java language and an API in the Swift language. As we all know, mobile applications on the Android system are generally developed based on the Java language, while mobile applications on the Apple system are generally developed based on the Swift language. The API matching method based on the API document of this embodiment, specifically, given the API of the Java language of a certain project, find out the Swift corresponding to the API of the Java language from the API collection of the Swift language of the same project. Language APIs. More specifically, that is, first obtain the description document of the API corresponding to the specified Java language API, and the description document of the API corresponding to each API in the Swift language A...

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 an API matching method and device based on an API document. According to the method, API information is extracted by analyzing a description document of an API. The API information comprises input information, output information and behavior information. Then similarity calculation is conducted on the input information, the output information and the behavior information ofthe two pieces of API information, and whether the two pieces of API information are matched or not is judged after integration. Information in the aspects of input, output, behaviors and the like isintegrated, and the accuracy of API matching is improved.

Description

technical field [0001] The invention relates to the field of automation of software design and development. Background technique [0002] In order to migrate a project to a different platform, software developers often need to rewrite the project in a different programming language. With the rapid increase in the number of software, it is time-consuming and labor-intensive to rely solely on manual migration. In order to accelerate the migration of the same project in different languages, many code migration tools have been developed, but they all face the challenge of API matching, that is, how to match the API of language A to the API of language B. [0003] In order to solve the challenge of API matching, the current mainstream method is to obtain API mapping by analyzing and learning project source codes in different languages. However, this method has stricter requirements on the data set. For example, multiple large-scale projects in different languages, the same cod...

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): G06F8/73G06F16/33
CPCG06F8/73G06F16/3344
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
Try Eureka
PatSnap group products