Method and device for generating user interface files

A file generation and user interface technology, applied in software engineering design, instrumentation, computing, etc., can solve the problems of high developer requirements, difficult maintenance, low generation efficiency, etc., to improve maintainability, reduce development difficulty, and reduce business. The effect of complexity

Active Publication Date: 2022-04-22
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a user interface file generation method and device to solve the problems of high requirements for developers or low generation efficiency, low accuracy and difficult maintenance in the prior art when generating a structure description file corresponding to the UI

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
  • Method and device for generating user interface files
  • Method and device for generating user interface files
  • Method and device for generating user interface files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0024] It should be understood that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particu...

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 present invention provides a method and device for generating a user interface file. The method includes: processing the target source code file of the target user interface UI based on an abstract syntax tree AST, obtaining a first preset number of AST nodes, and obtaining a first preset number of AST nodes according to the first preset number of The AST node determines N AST node types among the preset P AST node types; merges the N AST node types according to the preset strategy, and determines M first target AST node types, and M is less than N; based on the M first Target AST node type, generate target syntax tree including standard node data stream and standard parsing interface; extract information from standard node data stream according to standard parsing interface, generate structure description file and proxy file corresponding to target UI. The invention can generate UI files based on AST, without manual escape, reduces development difficulty, reduces business complexity, and improves maintainability of source code files.

Description

technical field [0001] The invention relates to the technical field of computer data processing, in particular to a method and device for generating user interface files. Background technique [0002] Flutter (cross-platform graphics rendering engine) is a mobile user interface (User Interface, UI) UI framework provided by Google, which can build high-quality native user interfaces on IOS and Android (Android). In the prior art, the Flutter UI dynamic framework (Fair for short) realizes the dynamic layout of the UI by parsing the structural description file corresponding to the UI (which may be referred to as a domain specific language (Domain Specific Language, DSL) file for short), wherein, the UI corresponds to The structure description file is manually written or generated by human translation of UI source code files. [0003] When generating the structural description file corresponding to the UI through manual writing, developers need to have a deep understanding of F...

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 Patents(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 李旭
Owner BEIJING CHENGSHI WANGLIN INFORMATION 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