Supercharge Your Innovation With Domain-Expert AI Agents!

Binding method and device for Java function and C function

A technology of Java classes and functions, applied in the field of binding methods and devices of Java functions and C functions, can solve problems such as complex operations, and achieve the effect of reducing complexity

Active Publication Date: 2017-10-10
ADVANCED NEW TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, at present, when establishing the binding relationship between Java functions and C functions, developers need to specify the Java functions and C functions that need to be bound, then modify the code of the C function, and register the corresponding relationship with the Java function in the C function to achieve Binding, the operation is more complicated

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
  • Binding method and device for Java function and C function
  • Binding method and device for Java function and C function
  • Binding method and device for Java function and C function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] During the development of an APP (Application, application), there is usually a requirement to call a Java function in a Javascript script.

[0043] For example, when a developer wants to convert an html (Hyper Text Markup Language) page created based on a Javascript script into a native page supported by the APP (a native page supported by the APP with Java as the underlying programming language) when it is displayed in the APP , you need the APP to support calling Java functions in Javascript scripts.

[0044] In order to achieve this requirement, Javascript scripts can usually be transcoded through the Javascript parsing engine, and the C function corresponding to the Javascript script is generated in the C file of the APP, and then the Java function that needs to be called in the Java class and the C function are established. binding relationship. After the binding relationship is established, the Java function can be directly called in the Javascript script, so th...

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 binding method and device for a Java function and a C function. The method comprises the steps that a binding interface predefined for a target Java class is transmitted to a target C file based on citation, wherein the binding interface comprises description information of a target Java function in the target Java class; the binding interface is called from the target C file to acquire the description information of the target Java function; and a binding relation between the target Java function and the C function in the target C file is established based on the description information. Through the binding method and device, the complexity of binding the Java function and the C function can be lowered.

Description

technical field [0001] The present application relates to the communication field, in particular to a method and device for binding a Java function and a C function. Background technique [0002] During the APP development process, if you want to call Java functions in the Javascript script, it usually involves the operation of establishing the binding relationship between the Java functions in the Java class of the APP and the C functions in the C files of the APP. However, at present, when establishing the binding relationship between Java functions and C functions, developers need to specify the Java functions and C functions that need to be bound, then modify the code of the C function, and register the corresponding relationship with the Java function in the C function to achieve Binding, the operation is more complicated. Contents of the invention [0003] The application proposes a method for binding a Java function and a C function, the method comprising: [0004...

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 ADVANCED NEW TECH CO LTD
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