Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

31 results about "Java code" patented technology

Source code (Java) JAVA is a file extension for a source code file format used for Java. A JAVA file may contain a program or be one of a number of source code files to make a program. The Java programming language was created for the distributed environment of the Internet.

System for realizing bidirectional conversion between model and code

The invention discloses a system for realizing bidirectional conversion between a model and a code, and the system comprises a meta-model architecture module which is used for constructing a unified model specification; the meta-model engine module is used for generating, analyzing and processing the meta-model architecture module; and the bidirectional conversion module is used for realizing forward and reverse synchronous conversion between a zero code model and a Java model serving as a program code by adopting the meta-model engine module. By means of the scheme, a unified specification with the meta-model architecture as the core is established, a powerful meta-model engine is used for automatic processing, and the barrier between a zero-code visualization model used by business personnel and bottom-layer Java codes written by developers is seamlessly broken through. The synchronization capability of the model and codes ensures the continuous alignment of business design and technical implementation, and effectively supports the quick iteration of agile development and business.
Owner:CHINA DATANG GRP DIGITAL TECH CO LTD

Exception handling method and apparatus, device, and storage medium

The present disclosure provides an exception handling method and apparatus, a device, and a storage medium. The method comprises: acquiring, when it is determined that an exception event occurs for Java code invoked based on a JNI, a Java exception object corresponding to the exception event. Then an exception identifier corresponding to the exception event is deleted. Finally, a pre-configured Java exception handler is invoked based on the JNI, and exception handling is performed on the Java exception object using the Java exception handler, the Java exception handler being configured to report the exception event corresponding to the exception object as a Java crash event.
Owner:DOUYIN VISION CO LTD

CRON-based routing machines and processes to schedule and execute java code excerpts across fault-tolerant load-balanced distributed servers running JVM namespaces

A routing process schedules and executes Java code excerpts across backend servers. A route table contains routes to be executed in JVM namespaces on servers and identifies for each route a Jar file containing applicable classes and methods to be executed at a CRON time. During execution, methods are retrieved from each applicable class and are executed to extract data from backend devices. The servers transform the extracted data into frontend data and load it onto frontend storage devices. Only the classes and methods in the Jar file for a route need be executed. Complete Java programs need not be run.
Owner:BANK OF AMERICA CORP

Code conversion method and device based on sentence pair equivalent replacement, equipment and medium

The application belongs to the field of databases and provides a code conversion method, device, equipment and medium based on statement pair equivalent replacement, which comprises the following steps: obtaining a to-be-converted statement including a first operator and a first logical statement in PLSQL code to be converted, the first operator being used for performing a logical NOT operation, and the logical operation result of the first logical statement being Null; obtaining a target logical operation result of the to-be-converted statement; removing the first operator and converting the first logical statement into a second logical statement with a logical operation result of the target logical operation result; and replacing the second logical statement with the to-be-converted statement to convert the obtained target PLSQL code into target Java code. According to the technical scheme of the embodiment, when the logical operation result of the first logical statement in the to-be-converted statement is Null, the to-be-converted statement can be replaced by the second logical statement in a pair-equivalent manner, so that the operation logic remains unchanged after being converted into a Java statement and the normal operation of the system is ensured.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Credit investigation variable derivation method and device based on double paths

The invention discloses a credit investigation variable derivation method and device based on double paths, and belongs to the field of credit investigation variable derivation, and the method comprises the steps: obtaining each to-be-derived credit investigation variable and the corresponding JAVA structured data and derivative variable configuration table, and classifying the to-be-derived variables into JAVA derivative variables and SQL derivative variables according to the configuration table; and processing the JAVA derivative variable through a corresponding JAVA code to obtain a result, obtaining an SQL derivative variable result from an Oracle transaction level temporary table of the optimal database subjected to health degree screening according to the corresponding SQL code, and finally combining the two types of results to output a final derivative result. Therefore, by implementing the method and the device, the problem that it is difficult to ensure that the credit investigation variable derivation result is generated in time when the credit investigation data volume reaches the ten million level in the prior art can be solved.
Owner:晋商消费金融股份有限公司

A method for improving JVM performance based on SIMD

The application relates to the technical field of Java virtual machines, and particularly discloses a method for improving the performance of a JVM based on SIMD, which comprises the following steps: obtaining a loop logic instruction in Java code, processing the compiled loop logic instruction to obtain a SIMD instruction set; parsing a loop logic operation in a Java instruction to obtain an assembly instruction; sending the assembly instruction to a CPU through the SIMD instruction set; and obtaining a calculation result returned by the CPU after SIMD operation. The application parses common data loop logic operation into a SIMD instruction set, and all data are loaded into the CPU at a time in the mode of executing one operation based on the SIMD instruction set, so that the data operation efficiency is improved, the CPU is prevented from repeatedly executing simple work, the processing performance of the CPU is saved, and the running efficiency of the Java virtual machine is improved.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

A method and device for supporting asynchronous structured storage of second-generation credit reporting

ActiveCN115858647BDoes not affect business transactions during the dayFlexible configurationProgram initiation/switchingFinanceEngineeringMultithreading
The application discloses a kind of method and device supporting second generation credit reporting asynchronous structured storage, belong to bank information technology field, solve existing credit reporting data is not stored, insufficient use, cause data waste.The essence is in solving the mode of asynchronous processing shortens the response time of credit inquiry.The steps of the present application are based on java code to query database to extract the full-amount credit inquiry record of the previous day;Based on java code, the query results of step 1 are put into List data structure;Create a thread pool to process the objects in List with multiple threads;Iterate the List objects in step 3, convert the data to JSON, and determine if the JSON is empty. If it is not empty, execute step 5, if it is empty, iterate the next data in List and repeat step 4;Parse the JSON and store it in the defined storage table according to the credit data specification.
Owner:WUHAN ZBANK CO LTD

A method for optimizing java code layout without interrupting application services

ActiveCN117270822BLittle impact on application performancelittle impact on performanceCode refactoringSoftware designParallel computingEngineering
This invention discloses a Java code layout optimization method that does not interrupt application services. The method includes: acquiring front-end bottleneck data of the application; when it is determined that code layout optimization is needed based on the front-end bottleneck data, collecting the dynamic control flow graph of the application service; calculating a new code layout based on the dynamic control flow graph; generating new code according to the new code layout; correcting relocation information in all code, that is, redirecting function calls and data references pointing to the old code to the new code. During the correction process, memory barriers and cache maintenance instructions are used to ensure the atomicity and consistency of the modification operations, so as to achieve uninterrupted application services; only reclaiming the memory space used by the old code that is no longer executed to store the new code generated in the next optimization, retaining the function code still on the call stack, so that most of the memory space can be reclaimed without interrupting application services. This method effectively alleviates the processor front-end bottleneck of Java applications and improves application performance.
Owner:ZHEJIANG UNIV

A distributed notification method based on Netty and Nacos

ActiveCN116800828BPERQMessage type
The application discloses a distributed notification method based on Netty and Nacos, and comprises the following steps: defining a message body to be pushed; starting a microservice, and automatically completing Nacos service registration when the microservice is started; reporting the port of the Netty server of the microservice and basic information of the microservice to the Nacos server; starting a thread monitoring task for maintaining TCP links between services; when any microservice sends a message to other microservices, the server of the any microservice acquires a microservice cluster; after other microservices receive the message, the other microservices enter specified Java code for processing the received message according to the type of the message type in the message body. The application fully utilizes the characteristics of Nacos, and provides support for TCP transmission by combining with the high-performance and asynchronous event-driven NIO framework of Netty, so that the notification between microservices is efficient and reliable.
Owner:BEIJING E-SAFENET SCI & TECH CO LTD

Method, system and device for automatically generating code based on MCP protocol, and medium

The invention discloses a method, system and device for automatically generating codes based on an MCP protocol and a medium. The method comprises the steps of constructing a server-side code generation engine based on an MCP protocol, responding to a code generation request input by a user, analyzing the code generation request to obtain a data table structure, a service name and a service name, and triggering and generating a calling instruction to call the server-side code generation engine to process the data table structure, the service name and the service name, the method comprises the following steps: acquiring first dimension information, second dimension information and third dimension information, triggering to generate a Java code text matched with a project based on the three dimension information, then sending the Java code text to a client, calling a large model at the client to integrate the Java code text into a service level corresponding to a service name, and acquiring a target code. The method supports dynamic analysis and integration of project structures and business semantic hierarchies, codes matched with projects can be dynamically, accurately and efficiently generated, and actual requirements are met.
Owner:BEIJING QINGSONG YIKANG INFORMATION TECHNOLOGY CO LTD

Cross-language data blood relationship analysis method based on abstract syntax tree and regular collaboration and related device

The embodiment of the invention relates to the technical field of data processing, and discloses a cross-language data consanguinity analysis method based on an abstract syntax tree and regular collaboration and a related device. Performing blood relationship analysis on SQL code data in the code data, and extracting field-level and table-level blood relationship information; carrying out Python code blood relationship analysis to obtain Python code blood relationship information; performing blood relationship analysis on the Java code to obtain Java code blood relationship information; performing blood relationship analysis on the Web front-end flow collection data to obtain Web front-end blood relationship information; according to the field-level and table-level blood relationship information, the Python code blood relationship information, the Java code blood relationship information and the Web front-end blood relationship information, obtaining a structured blood relationship graph; and generating a visual blood relationship query interface according to the blood relationship graph. Through the above mode, the embodiment of the invention realizes real and reliable verification.
Owner:GUOSEN SECURITIES

UML (Unified Modeling Language) model-oriented event-driven behavior code automatic generation method and system

The invention relates to a UML (Unified Modeling Language) model-oriented event-driven behavior code automatic generation method and system. The method comprises the following steps: exporting an XMI file containing class, activity and state machines from a UML (Unified Modeling Language) modeling tool, constructing a document tree through DOM (Document Object Model) analysis, and extracting meta-model elements and relationships thereof; and generating attributes and methods of the main class and the associated class and Java source codes of the main method according to an analysis result, taking the main method of the main class as a simulation / operation entry, and calling the main method of the associated class during operation. Aiming at the behavior type of the classifier: when the behavior type is Activity, traversing an identification sequence, branching / merging, parallelizing / synchronizing and circulating from an InitialNode, constructing a behavior control flow diagram, decomposing the behavior into SimpleTask and LoopTask, and generating a Java code containing an Execute method and a scheduling statement; and when the state conversion diagram is the StateMach, reconstructing the state conversion diagram and generating a state machine instance and a StateMach Runner operation management type instance code, thereby realizing migration execution driven by a signal event and a time event and mixed triggering of the signal event and the time event and the activity. The method is suitable for the field with high requirements for model consistency and rapid verification.
Owner:ZHEJIANG UNIV

A method and system for generating database table creation statements based on JAVA annotations

The present invention provides a method and system for generating database table creation statements based on JAVA annotations, relating to the technical field of database development. The method comprises: sequentially marking classes requiring database table generation and methods requiring database table field generation in Java code; writing template code to scan the Java code; generating database table information based on the marked classes requiring database table generation; generating table field information based on the marked methods requiring database table field generation; and generating table creation statements based on the database table information and table field information. During the Java code writing process, the present invention directly designs the database, marking classes requiring database table generation and methods requiring database table field generation on fields within the classes in the form of annotations in the Java code. Furthermore, after development is complete, the Java reflection function is utilized to directly obtain database table creation statements by scanning the Java code, thereby significantly saving developer time.
Owner:SI-TECH INFORMATION TECH CO LTD

Abnormality processing method and device for Java smart card and electronic equipment

PendingCN121957633AEliminate invalid operationsShorten capture latencySoftware deploymentFull life cycleSmart card
The invention relates to the technical field of intelligent card data processing, and discloses an exception handling method for a Java intelligent card, which comprises the following steps: constructing a full life cycle index module of a program conversion package CAP file; wherein the full life cycle index module comprises a global registry; under the condition that the Java code of the Java intelligent card is abnormal, positioning a target CAP file corresponding to the abnormal code according to a full life cycle index module; according to the target CAP file and an exception type mapping table recorded in the global registry, running a target exception information processor in an exception information processing group of the target CAP file to capture an exception code; and after the abnormal code is captured, updating the state of a global registry of the full life cycle index module according to the current state of the target CAP file. According to the method, the exception type mapping table is added, the invalid operation of traversing the processor is reduced, and the capture efficiency is improved. The invention further discloses an exception handling device for the Java smart card and electronic equipment.
Owner:CHINA ELECTRONICS STANDARDIZATION INST

Automatic generation method of UML sequence diagrams compatible with multilingual code analysis

This invention provides an automatic UML sequence diagram generation method compatible with multilingual code analysis. By capturing the characteristics of C++ and Java code, it identifies the code types of each part of the mixed source code and analyzes different code types. For code marked as C++, regular expressions are used to match keywords, class information, and inheritance information of the C++ source code to be analyzed, and these are converted into parameter names. For code marked as Java, syntax and lexical analysis are used to extract class information and method call information of the Java source code to be analyzed. Corresponding Plant UML code is generated and drawn as a comprehensive UML sequence diagram. This invention's automatic UML sequence diagram generation method compatible with multilingual code analysis can intuitively reflect the functional and logical composition of mixed C++ and Java code, and intuitively reflect the interaction relationship between them. It avoids the need to view tedious source code to obtain program information and functional relationships, improving code readability and maintainability.
Owner:HEFEI UNIV OF TECH

An Ambari service deployment method and an Ambari certificate permission method based on port detection

The application relates to an Ambari service deployment method and an Ambari certificate permission method based on port detection, wherein the Ambari service deployment method comprises the following steps: S101, a license-core certificate permission module is written by using JAVA language; S102, the underlying java code of Ambari-server is modified, the license-core certificate permission module is added to the Ambari-server controller layer, the modified Ambari-Server source code is recompiled, and a modified Ambari-server service installation package is obtained; and S103, a new Ambari-server service is deployed and run, a certificate checking program in the license-core certificate permission module is triggered when a cluster is created and updated, if the certificate checking is passed, access is allowed, otherwise, all component services are forcibly closed. After the application carries out closed-source development on ambari, the license checking and detecting method is carried out in the mode of modifying the cluster method class triggered by the interface, the application carries out closed-source independent development based on ambari, the certificate permission method is detected by adding the license interface method class, and the defects that ambari cannot be subjected to certificate permission control are solved.
Owner:FUJIAN MEIYA GUOYUN INTELLIGENT EQUIP CO LTD

Low-code service development and automatic code generation method and system

PendingCN122064333AError detection/correctionVersion controlCode generationService development
The invention provides a low-code service development and automatic code generation method and system, and belongs to the technical field of automobile software development, and the method comprises the steps: obtaining an automobile electronic system configuration file, carrying out the analysis of the automobile electronic system configuration file, obtaining the analyzed automobile electronic system configuration file data, and storing the analyzed automobile electronic system configuration file data in a server; the analyzed automobile electronic system configuration file data comprises service basic information and service interface definition information; editing service interface definition information and configuration service deployment information according to the analyzed configuration file data of the automotive electronic system; and generating a target programmable framework code according to the edited service interface definition information and the configured service deployment information. Codes are automatically generated, and manual writing errors are avoided. According to the method, C + + and Java code generation is supported at the same time, and different ECU requirements are met. Through visual operation and automatic generation, the code generation time is shortened from 2 days per service to 1 hour per service, and the efficiency is improved by 91.7%.
Owner:DONGFENG MOTOR GRP

Processing method and device of stored procedure, electronic equipment, medium and product

The application provides a storage process processing method and device, electronic equipment, medium and product, and relates to the technical field of data processing. The method comprises the following steps: receiving a storage process file input by a user and an identifier of a first database, the storage process file supporting running in a second database; performing syntax conversion on the storage process file according to a syntax type of the first database to obtain executable statements, and creating a Java task for calling the executable statements; extracting parameters of the storage process file, filling the parameters into a specification template corresponding to the storage process file, and obtaining Java code of a data persistence layer; and outputting a conversion result, the conversion result comprising a statement file, the Java task and the Java code of the data persistence layer, the conversion result supporting running in the first database. According to the above scheme, the storage process is processed in batches through the specification template, and the readability of the processing result is higher compared with manual processing.
Owner:CHINA CONSTRUCTION BANK +1

Code clone detection method, system, device and medium based on visual image

The application discloses a code clone detection method, system, device and medium based on a visual image, which comprises the following steps: removing the annotations in the Java code, calling VoidVisitorAdapter in javaparser, and separating the code functions in the.java file; converting the code characters in the code function file into ASCII codes, filling the values of the ASCII codes into RGB three primary color values, obtaining RGB pixel points, combining the pixel points into a visual color image, and obtaining the visual image of the code; dividing the code visual image into a clone code visual image and a non-clone code visual image; inputting the code visual image into a pre-established clone detection model for training, obtaining the trained clone detection model; inputting the code visual image to be detected into the trained clone detection model for detection, and obtaining a detection result. The code is converted into a visual image, the code information can be completely retained, and the code information loss caused by the intermediate form conversion of the graph is avoided.
Owner:SOUTH CHINA AGRICULTURAL UNIVERSITY +1

An order system service configuration method and device, equipment and medium

The application relates to a business configuration method and device of an order system, equipment and a medium. The method comprises the following steps: receiving an order business configuration request sent by a supplier; preprocessing the order business configuration request to obtain a target order business configuration request; analyzing the target order business configuration request based on a preset condition, determining a target order business configuration mode and taking the target order business configuration mode as a configuration mode to be adopted; if a node mapping configuration mode is adopted, constructing a mapping relationship according to a link formed between a business type in the target order business configuration request and the supplier, and completing the configuration based on the mapping relationship; and if a hard coding configuration mode is adopted, constructing and completing the configuration of a node according to a Java code writing technology. The application makes it very simple and convenient for the supplier to add a new business type in the order system, saves time cost, reduces the dependence on manual operation, and further improves the efficiency of business configuration.
Owner:PING AN PAY ELECTRONIC PAYMENT CO LTD

Dynamic code hot replacement method based on Java and related device

The invention discloses a Java-based dynamic code hot replacement method and a related device, and the method comprises the steps: in a CI / CD stage, generating metadata of each module, packaging the metadata of each module, and transmitting the packaged metadata; and the hot replacement engine receives the metadata of each module and performs code replacement operation according to the metadata of each module, and the method and the related device can realize efficient and stable dynamic hot replacement of Java codes.
Owner:YANCHI ZHONGYING CHUANGNENG NEW ENERGY CO LTD +2

A method for dynamic generation of indicators based on skywalking

The present invention discloses a method for dynamically generating indicators based on SkyWalking, comprising: reading an OAL script to obtain a first OAL indicator generation rule and initializing it to program memory; cyclically updating the business configuration rule in the program cache based on business configuration information in an infra-monitor business configuration system; parsing the first OAL indicator generation rule and the business configuration rule to dynamically generate Java code; compiling the Java code to construct an indicator processor; parsing first Trace data reported by an application into a first Trace object; sending the first Trace data in the first Trace object to a source receiver for data distribution; a source converter receiving the first Trace data distributed by the source receiver; converting the first Trace data into a unified indicator, and processing and storing the indicator. The present invention solves the technical problem of not supporting configurable filtering rules.
Owner:云筑信息科技(成都)有限公司

UML time sequence diagram automatic generation method based on Java source code analysis

The invention provides a Java source code analysis-based UML (Unified Modeling Language) time sequence diagram automatic generation method, which comprises the following steps of S1, converting a Java code into a corresponding abstract syntax tree, filtering out all class declaration nodes in the abstract syntax tree, and traversing the class declaration nodes and method child nodes through a traversal algorithm to obtain class information and method calling information; s2, according to class information extracted from the source code, integrating class names, method names and method calling information among classes through a Plant UML code generation algorithm so as to obtain a Plant UML code capable of automatically generating a UML time sequence diagram; and S3, drawing a time sequence diagram of the Java source code by utilizing a Plant UML (Unified Modeling Language) tool. According to the UML time sequence diagram automatic generation technology based on Java source code analysis, the procedure of a program can be visually reflected, the situation that class information and class calling relations can be obtained only by checking tedious source codes is avoided, and the readability and maintainability of codes are improved.
Owner:HEFEI UNIV OF TECH

Java cryptography static analysis tool and method based on Soot

The invention discloses a Soot-based Java cryptography static analysis tool and method, and belongs to the field of software static analysis, and the method comprises the following steps: S1, environment initialization: inputting a JAR file or class folder path by a user, and starting and initializing Soot configuration by using an Entry class main method; s2, traversing application program classes by using a Soot analysis worker, pre-loading byte code representation of a method body, and constructing a call graph by using the Soot analysis worker at the same time; s3, task allocation and parallel processing are carried out, a plurality of independent detectors are constructed, and the detectors execute the allocated task queues in parallel; s4, generating a vulnerability report; s5, cleaning and exiting; according to the method, the powerful analysis function of Soot on Java bytecodes is utilized, on the basis of key technologies such as data flow tracing, control flow analysis and call graph construction, the tool performance is optimized in combination with programming technologies such as method-level multithreading, and efficient cryptographic detection is conducted on the Java codes.
Owner:NANJING UNIV OF SCI & TECH

Business extension method, computer equipment and computer storage medium

The embodiment of the invention discloses a service expansion method, computer equipment and a computer storage medium. Obtaining an original model class of a to-be-extended target service, obtaining at least one difference class associated with the original model class and annotation information of each difference class, and determining extended data for the original model class according to the annotation information of the difference class, and merging the extended data of the at least one differential class associated with the original model class to generate an enhanced class of the original model class, and operating the original model class according to the extended data in the enhanced class to extend the target business. The expansion content does not need to be manually converted into the Java type, the error possibility is reduced, and the accuracy of the expansion content application is improved. As the annotation information of the difference class is closely associated with the Java code, the complexity of extension and debugging of the model class is reduced, and the development efficiency is improved. The model class is expanded in a difference class annotation mode, so that the expansion process is more flexible and controllable, and diversified expansion requirements in the software development process are met.
Owner:KINGDEE SOFTWARE(CHINA) CO LTD

Static deadlock detection method and device for java code and electronic equipment

The invention relates to the technical field of software testing, and provides a static deadlock detection method and device for java codes, electronic equipment and a computer program product. The method comprises the following steps: generating an intermediate representation code and a control flow diagram of a to-be-tested java code; performing thread context sensitive pointer analysis processing on the intermediate representation code according to a preset pointer analysis rule, constructing a call graph with a complete context according to a pointer analysis processing result, and labeling thread context information on each edge of the call graph; on the basis of the control flow diagram, identifying a lock acquisition sequence in an execution path of each thread according to the call diagram, and generating a lock acquisition sequence according to the lock acquisition sequence; and determining a deadlock detection result of the to-be-detected java code by analyzing the lock acquisition sequence. According to the method, through introduction of thread context-sensitive pointer analysis, whether a loop dependence phenomenon exists in lock acquisition operations among different threads can be accurately distinguished, so that the accuracy of deadlock detection is improved.
Owner:HANGZHOU HIGH-TECH ZONE (BINJIANG) INSTITUTE OF BLOCKCHAIN & DATA SECURITY +1

Java code review comment generation method and device based on code structured information and review knowledge

ActiveCN116841869BLinguistic modelAlgorithm
The application relates to a Java code review comment generation method and device based on code structured information and review knowledge. The method comprises the following steps: obtaining original Java code review data, and performing vectorization representation on code text and code review comments; in an unsupervised training stage, introducing noise to word vectors by respectively disturbing vector representation and adding mask labels, establishing a discriminative graph model and a language model, and restoring disturbed input content; in a supervised training stage, generating code review comments by fusing the model in the unsupervised training stage, and assisting with a code change prediction task; and automatically outputting code review comments of input to-be-reviewed codes according to the model generated in the unsupervised training stage and the supervised training stage. The application can improve the efficiency of code review comment generation, combines unsupervised training and supervised training, has high decoupling, and can also improve the original performance of the model.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

A data processing method and device, electronic equipment and storage medium

This application relates to the field of data processing technology, specifically to a data processing method, apparatus, electronic device, and storage medium, used to solve the problem that existing technologies require manual intervention when calling Java files generated from modified stored procedure files, thus affecting work efficiency. The method includes: obtaining each first SQL statement corresponding to the stored procedure file, and deleting unnecessary statements from each first SQL statement to obtain each second SQL statement. Then, according to the database dialect conversion rules corresponding to the target database, each second SQL statement is converted into the target SQL statement corresponding to the target database, and according to preset persistence layer conversion rules, a Java file containing a persistence layer XML file corresponding to the stored procedure file is generated. This approach eliminates the need for manual establishment of an interface between Java code and the database, enabling flexible calling and reading of the database, thus improving work efficiency.
Owner:CHINA CONSTRUCTION BANK +1

A Java code generation method based on speech analysis and synthesis

The present invention discloses a Java code generation method based on speech analysis and synthesis, which relates to the field of speech recognition. The method comprises: converting a user's natural language Java instructions into a preprocessed digital speech stream through a speech acquisition and preprocessing module; extracting acoustic feature vectors from the digital speech stream through a feature extraction module; decoding and generating text commands through a speech recognition module; matching the text commands with predefined grammatical patterns to generate structured command instances and converting them into abstract syntax tree fragments; inserting the command instances into the abstract syntax tree through a path calculation strategy; converting the syntax tree into Java source code and performing error detection through a code generation module; outputting Java code if there are no errors; outputting error messages if there are errors; and finally converting the result into a natural speech stream through a speech synthesis module and feeding it back to the user. The present invention utilizes speech recognition and automatic code generation technology to achieve the conversion of natural language into Java code, reducing the amount of manual coding, improving coding efficiency, and alleviating the burden on programmers.
Owner:LONGYAN UNIV

System

An object of a system according to an embodiment is to efficiently convert a COBOL code of a legacy system into a Java code.SOLUTION: A system includes a COBOL code analysis unit, a conversion unit, and an optimization unit. The COBOL code analysis unit analyzes a COBOL code. The conversion unit converts the COBOL code analyzed by the COBOL code analysis unit into Java code. The optimization unit optimizes the Java code converted by the conversion unit.SELECTED DRAWING: Figure 1
Owner:SOFTBANK GROUP CORP