Bi-directional conversion library
First Claim
Patent Images
1. A bi-directional conversion library for converting data structures from a first programming language into data structures of a second programming language, comprising:
- a) a plurality of string functions for creating new string objects in said first and second programming languages based on string parameters passed thereto from said second and first programming languages, respectively;
b) a plurality of array functions for creating new array objects in said first and second programming languages based on array parameters passed thereto from said second and first programming languages, respectively;
c) a plurality of object/structure functions for copying data between an object of said first programming language and a data structure of said second programming language according to predetermined indicated class descriptors and for creating new objects in said first programming language based on one of either a default constructor or a specified data structure of the second programming language according to a specified class descriptor; and
d) a plurality of field accessor/mutator functions for reading and modifying individual fields of an object in said first and second programming languages, wherein said first programming language is Java™ and
said second programming language is C, and wherein Java™
includes a Java™
Native Interface (JNI) facility, and wherein each of said functions takes a pointer to said Java™
Native Interface (JNI) environment has a first parameter.
20 Assignments
0 Petitions
Accused Products
Abstract
A bi-directional conversion library is provided for translating data structures used in a computer program from a first computer programming language to data structures used by a second computer programming language. In the preferred embodiment, a conversion library is provided for converting between Java™ and C. The conversion library of the present invention allows existing computer programs to be reused, thereby reducing the effort required to integrate newly written programs to existing systems.
90 Citations
16 Claims
-
1. A bi-directional conversion library for converting data structures from a first programming language into data structures of a second programming language, comprising:
-
a) a plurality of string functions for creating new string objects in said first and second programming languages based on string parameters passed thereto from said second and first programming languages, respectively;
b) a plurality of array functions for creating new array objects in said first and second programming languages based on array parameters passed thereto from said second and first programming languages, respectively;
c) a plurality of object/structure functions for copying data between an object of said first programming language and a data structure of said second programming language according to predetermined indicated class descriptors and for creating new objects in said first programming language based on one of either a default constructor or a specified data structure of the second programming language according to a specified class descriptor; and
d) a plurality of field accessor/mutator functions for reading and modifying individual fields of an object in said first and second programming languages, wherein said first programming language is Java™ and
said second programming language is C, and wherein Java™
includes a Java™
Native Interface (JNI) facility, and wherein each of said functions takes a pointer to said Java™
Native Interface (JNI) environment has a first parameter.- View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
Specification