Supercharge Your Innovation With Domain-Expert AI Agents!

Java reflection implementation method, device and system

An implementation method and system implementation technology, applied in the computer field, can solve problems such as slow performance, code optimization, and low efficiency, and achieve the effect of improving efficiency

Inactive Publication Date: 2018-11-30
CHINA MOBILE GRP FUJIAN CO LTD +1
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Java reflection process needs to do some compilation work and interpretation operations at runtime, such as syntax checking, parsing bytecode, parsing objects in memory, etc. The Java virtual machine cannot optimize the code, so the class is called through Java reflection The efficiency of the method is lower than the direct call, and the performance is slower than the direct call

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Java reflection implementation method, device and system
  • Java reflection implementation method, device and system
  • Java reflection implementation method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The characteristics and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only configured to explain the present invention, not to limit the present invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.

[0022] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Java reflection implementation method, device and system. The reflection implementation method includes the steps: generating reflection processing classes for Java classes by a Java byte code framework ASM in loading of Java virtual machine startup classes; acquiring index values of Java class methods from the reflection processing classes; storing the reflection processing classes and the index values into a cache and binding the reflection processing classes and the index values with Java classes by the cache; reflecting and calling the Java class methods based onthe reflection processing classes and the index values in the cache. According to the Java reflection implementation method, Java reflection performance and efficiency can be improved by the reflection implementation method based on the Java byte code framework ASM and the cache.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a Java reflection realization method, device and system. Background technique [0002] The Java reflection mechanism mainly refers to the ability to allow access, detection and modification of its own state or behavior when the program is running. In the process of Java project development, the Java reflection mechanism is often used for the flexibility of the program. It can facilitate programmers to create flexible codes that can be assembled at runtime without re-modifying the code and recompiling. [0003] The advantages of the Java reflection mechanism are mainly reflected in its dynamics, and can reduce the coupling between classes, greatly improving the flexibility and scalability of the system, and combined with Java dynamic compilation, it can achieve powerful functions. [0004] Usually, to run a Java program, the Java class must first be loaded by the Java virtual m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/72G06F8/30G06F8/40G06F9/455
CPCG06F8/315G06F8/443G06F8/72G06F9/45558
Inventor 叶荣光魏建荣陈翔宇
Owner CHINA MOBILE GRP FUJIAN CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More