Patent ReferencesMethod for translating graphical user interface (GUI) resource data into native java code Patent #: 5974256 InventorAssigneeApplicationNo. 986114 filed on 12/08/1997US Classes:717/148, Just-in-time compiling or dynamic compiling (e.g., compiling Java bytecode on a virtual machine)717/108, Object oriented717/118, Bytecode (e.g., Java)717/142, Scanning and lexical analysis719/328APPLICATION PROGRAM INTERFACE (API)ExaminersPrimary: Voeltz, Emanuel T.Assistant: Dam, Tuan Q. International ClassG06F 009/45AbstractA Java native interface code generator is disclosed to facilitate mixed language programming, by making native code programmed in a native language accessible to Java application programs. A programmer generates a native interface definition for native code, preferably using a neutral Interface Definition Language (IDL) to describe native code components (functions, data structures, constants and other user-defined data types), for which native mappings are to be generated. The Java native interface code generator supports complex data types, including nested data structures and multi-dimensional arrays. The Java native interface code generator reads and parses the user-derived native interface definition and generates Java Classes, data conversion code stubs and related header files. The Java Classes consist of classes of native methods, as well as classes for complex data types, which are called from Java. Each native method is mapped to a function or procedure written in the native code, using the Java Native Interface (JNI). The data conversion code stubs (JNI code) convert and map the native data and functions between the native language and Java. The Java class generated for complex data types, such as structures and unions, extends another Java class, JStruct or JUnion, respectively. The JStruct and JUnion classes implement Java Serializable and Cloneable interfaces and provides the core functionality for all data structures and unions, respectively, mapped to Java objects. Each Java data structure and union "extends" the JStruct or JUnion class and thereby inherits the behavior and characteristics of the JStruct or JUnion class, including memory management features. The JStruct and JUnion classes preferably provide methods for converting between members of a native language data structure or union, as appropriate, and fields of a Java object, as well as additional memory management functionality.Other References
| |