Method and device for converting java code, storage medium, and electronic device
A storage medium and code technology, applied in the field of Java code conversion, can solve the problems of repetitive workload, error-prone, slow manual writing, etc., and achieve the effect of improving the efficiency of code writing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of a mobile terminal converting java codes according to the embodiment of the present invention. like figure 1 As shown, the mobile terminal 10 may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the st...
Embodiment 2
[0081] In this embodiment, a device for converting java codes is also provided. The device is used to implement the above embodiments and preferred implementation modes, including a terminal, a server, etc., which have already been described and will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
[0082] Figure 4 is a structural block diagram of a terminal for converting java codes according to an embodiment of the present invention, such as Figure 4 As shown, the device includes:
[0083] Loading module 40, for loading the data class of java code;
[0084] The processing module 42 is configured to view all attributes of the data class, and obtain the type to which each attribu...
Embodiment 3
[0128] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
[0129] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
[0130] S1, load the data class of java code;
[0131] S2. View all attributes of the data class, and acquire the type to which each attribute belongs, wherein the types include: simple type, complex type;
[0132] S3, generating an avro schema from the data class of the java code according to the type.
[0133] Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as removable ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com