Annotation inheritance method and device and electronic equipment

An annotation and subclass technology, applied in the field of program development, can solve problems such as reducing the convenience of component and business code development, and achieve the effects of improving convenience, ensuring accuracy, and improving flexibility

Pending Publication Date: 2021-03-23
BEIJING GRIDSUM TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in Java, some parent class annotations cannot be inherited by subclasses, which reduces the convenience of component and business code development

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
  • Annotation inheritance method and device and electronic equipment
  • Annotation inheritance method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0050] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art wi...

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 embodiment of the invention relates to the technical field of program development, in particular to an annotation inheritance method and device and electronic equipment. According to the method, when it is not detected that the target annotation exists in the target class, the parent class of the target class is obtained, one is added to the set count value, and when the target annotation exists in the parent class, whether the target class inherits the target annotation or not is determined according to the set count value, the first relation between the target class and the parent classand the first strategy. Whether the target class inherits the target annotation or not can be determined under the condition that different relations and strategies exist between the target class andthe parent class, the flexibility of inheriting the target annotation by the target class is improved, the inheritance depth value of the target annotation can be judged based on the set count value,the accuracy of inheriting the target annotation by the target class is ensured, and the inheritance mechanism of the Java annotation is expanded, so that the annotation can be widely applied to the development process of components and service codes, and the convenience of component and service code development is improved.

Description

technical field [0001] The present invention relates to the technical field of program development, in particular to an annotation inheritance method, device and electronic equipment. Background technique [0002] Java is an object-oriented program development. It not only absorbs various advantages of C++ language, but also abandons concepts such as multiple inheritance and pointers that are difficult to understand in C++. Therefore, Java language has two characteristics: powerful and easy to use. [0003] Java Development Kit or Java Development Kit (JDK) is the core of Java, and Annotation is a code-level description in Java. It is a feature introduced by JDK1.5 and later versions, and it is related to class , interface, and enumeration are at the same level. It can be declared in front of packages, classes, fields, methods, local variables, method parameters, etc., to explain and comment on these elements. [0004] One of the main features of Java is inheritance. Inher...

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/20G06F9/448
CPCG06F8/24G06F9/4492
Inventor 丁维军
Owner BEIJING GRIDSUM TECH CO LTD
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