Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

45 results about "Method body" patented technology

The Method Body. The method body is where all of the action of a method takes place; the method body contains all of the legal Java instructions that implement the method. Within the method body, you can use this to refer to the current object.

Highly accurate code snippet recommendation method

The invention provides a highly accurate code snippet recommendation method. The method comprises the steps of splitting and dividing a project, and generating class files, a code snippet , a code snippet method body and a code snippet note; generating a code snippet method body vector and a code snippet note vector based on the code snippet method body and the code snippet note; compiling and decompiling each class file, and extracting an instruction sequence of the code snippet from the decompiled file; generating an inquiry vector based on an inquiry input by a user, and screening out a group of primary recommendation results with highest text similarity according to a text similarity of the inquiry vector and a code snippet text characteristic; and according to statement similarity ofall code snippet s in the primary recommendation results, screening the primary recommendation results for the second time and then re-ranking so as to form a final recommendation result. The method overcomes the defect that the existing method is low in recommendation accuracy due to unique use characteristic and failure in filtering of recommendation results. The method is applicable to the field of recommendation of open source code snippets.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Method for dynamically transforming the bytecode of JAVA virtual machine bootstrap classes

Under the present invention, a method for dynamically transforming the bytecode of Java Virtual Machine (JVM) bootstrap classes during program startup is provided. A JVM agent is used to intercept the execution flow before the execution of the special program startup-method of a JVM compliant computer program. The said JVM Agent executes code to transform the bytecode of the already loaded JVM bootstrap classes, storing the new set of modified bootstrap classes onto data storage. Subsequently, the JVM Agent intercepts all class loading events transforming the bytecode of classes declaring a special program statrup-method. In those classes the bytecode within the method body of the special class-initialize method, as defined in the present JVM class file format as “<clinit>”, is removed to avoid any side-effects in the program. The special program startup-method in the said classes is transformed to insert bytecode at the beginning of the method to invoke a special callback method, as declared within the said JVM Agent, passing as parameters to the callback method the main arguments as passed to the JVM upon program startup. Subsequently, when the said callback method intercepts the execution flow it starts a second JVM instance passing to it the obtained input parameters, the main method arguments as well as a JVM input argument to use the stored set of modified bootstrap classes.
Owner:ZEROTURNAROUND

Program readability analysis method based on WordNet

The invention discloses a program readability analysis method based on a WordNet, and belongs to the field of software engineering. The program readability analysis method based on the WordNet comprises the following steps that (1) each method body is traversed according to a package name-class name-method name project structure, and is labeled in a package name-class name-method name mode; (2) warning annotations and TODO annotations are removed, wherein each warning annotation usually appears in a testing case and is used for warning a programmer that a certain serious consequence can happen, each TODO annotation indicates a piece of work, and the programmer thinks that the work should be done, but the work is not done at present for some reasons; (3) the annotations are divided into short annotations and long annotations; (4) the long annotations are preprocessed, and subject terms of the long annotations are extracted through the WordNet; (5) subject terms of codes are extracted from code segments mapped by the annotations through the WordNet; (6) a program readability analysis tree is generated for a whole project, and final analysis data are formed. According to the program readability analysis method based on the WordNet, a later-period maintainer can conveniently comprehend an unfamiliar project, and the program readability analysis method based on the WordNet can be used for maintenance and development of software.
Owner:YANGZHOU UNIV

Interface document generation method and device, computer equipment and storage medium

The invention discloses an interface document generation method and device, computer equipment and a storage medium. The interface document generation method comprises the steps: obtaining a source code of a first project; screening out a class method with an interface mark from all class methods of the source code, and marking the class method with the interface mark as an interface class method;extracting interface basic information from a method body corresponding to the interface method through a reflection technology, and extracting interface additional information from code annotation information corresponding to the method body; integrating the interface basic information and the interface additional information to form first interface information; and adding the first interface information into a preset interface document template, and generating a first interface document corresponding to the first interface information according to the preset interface document template. According to the interface document generation method, the first interface document corresponding to the source code of the first project can be automatically generated, so that the consistency of the first interface document and the first interface information is ensured, and the labor cost is effectively saved, and the generation efficiency of the interface document is improved.
Owner:重庆金融资产交易所有限责任公司

Form verification method based on blockchain evidence storage smart contract

The invention discloses a form verification method based on a blockchain evidence storage smart contract. The method comprises the steps of writing the evidence storage smart contract, adding a contract form specification and performing contract model verification. According to the method, a process and form verification method for writing the evidence storage smart contract is provided for a blockchain smart contract developer, and a security reference is provided for developing an evidence storage project by carrying the smart contract on the blockchain. Through a form verification method, aform specification is defined in front of an evidence storage intelligent contract method body and converted into a mathematical model which can be recognized by a theorem prover, a form verificationresult is obtained through mathematical deduction, the safety and reliability of an evidence storage intelligent contract are improved, the test cost of a traditional contract test is reduced, and the logic coverage is wide. The method has universality of compiling the evidence storage intelligent contract, provides the most basic evidence storage contract model and the form verification method thereof, provides related reference for expansion and optimization of the evidence storage contract, and has good applicability.
Owner:HANGZHOU QULIAN TECH CO LTD

A Spatial Calibration Body Based on Virtual Ball and Its Calibration Method

The invention discloses a space calibrating body and method based on a virtual ball. According to the space calibrating body and method based on the virtual ball, calibration is conducted in the form that a standard bar piece is separated from a base, a laser tracker is adopted to serve as measurement equipment, and a hard aluminum alloy plate is adopted by the base to serve as an installation platform of the standard bar piece. The space calibrating method based on the virtual ball comprises the steps that the space calibrating body which has three degrees of freedom is manufactured firstly, threads are machined at the two ends of the standard bar piece, one end of the standard bar piece is fixed to the hard aluminum alloy plate, the other end of the standard bar piece is used for fixing the body of the virtual ball, a regular octahedron with the top end cut off serves as the body of the virtual ball, a cone nest is machined on each face of the virtual ball, and then the virtual ball is calibrated with the laser tracker serving as the measurement equipment. The space calibrating body and method based on the virtual ball have the advantages that the precision is high, machining requirements for the standard piece are low, the number of needed sampling points is small when the space calibrating body and method are used, the calibrating efficiency is improved, and the sampling workload is greatly reduced and the calibrating efficiency is improved when an articulated type coordinate measuring machine is calibrated.
Owner:HEFEI UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products