也可以编写一两个示例类,然后使用代码生成器建立其他的类。
Or you might write a sample class or two, then build the rest with a code generator.
在将泛型代码放入可重用组件或框架时,可以考虑使用代码生成器来更有效地生成特定的代码。
After placing generic code into reusable components or frameworks, consider using code generators to produce specialized code more efficiently.
这些代码然后就可以使用代码生成器所生成的结构中的变量和功能了,而不需要手工生成这些变量。
This code can then use variables and functions that are part of the generated structure built by the code generator without having to define and derive all of the variables manually.
如果你使用代码生成器,好好看看它生成的代码;如果你使用数据库工具,看看它生成的底层SQL语句,不一而足。
If you use a code generator, really look at the code it generates; if you use database tools, take a look at the underlying SQL it generates; and so on.
好的一面是您可以通过使用库、框架和代码生成器,很容易地避免这个维护问题。
The good news is that you can easily avoid this maintenance nightmare by using libraries, frameworks, and code generators.
为您的模型生成代码后,基本上就可以将其与RRD扩展生成器和处理程序对结合使用了。
Once code has been generated for your model, it is nearly ready to be used with an RRD extension generator and handler pair.
当结合使用时,代码生成器和模式也可以帮助避免关键性间隔,这种间隔可以潜在的发生在设计阶段和实际编码阶段之间。
When used together, code generators and patterns also help avoid the critical gap that can potentially occur between the design phase and the actual coding.
使用xml和jsp的这些句法方面的优点是很明显的,尤其是当代码生成器需要大量属性的时候。
All these syntactical advantages of using XML and JSP become obvious, especially when the code generator needs lots of attributes.
这个问题问得好,基本上,分部方法仅被代码生成器在处理轻量级事件的时候使用。
Well basically, they are only used by code generators for a sort of lightweight event handling. As Alexander Jung explains.
模块使用glib和gtk +中的类型,所以我们还必须告诉代码生成器装入这些类型。
Our module USES types from GLib and GTK +, so we must also tell the code generator to load these.
使用框架和代码生成器
展示Monkeybars代码生成器的使用,它可以自动创建普通的文件
Show the use of Monkeybars code generators, which automate the creation of common files
这个项目的目的在于提供一组代码生成器、建构基本框架、工具和基本的MVC框架,供给基于GoogleWebToolkit的应用软件使用。
The purpose of this project is to provide a set of code generators, scaffolding, utilities, and a basic MVC framework for use with Google Web Toolkit based applications.
幸运的是,在使用gnome - python代码生成器时,可以手工封装各个方法。
Luckily, we can manually wrap individual methods when using the gnome-python code generator.
TransactionDemo应用程序使用XDoclet代码生成器设置事务类型。
The transaction Demo application sets up the transaction type using the XDoclet code generator.
XDoclet就是其中的一种代码生成器,在J2EE开发中得到了大量的使用。
XDoclet is one such code generator that's used heavily for J2EE development.
这种eBay模式的核心点在于使用Eclipse代码生成器以进行这些繁琐的转换。
The central theme that runs through the eBay approach is using Eclipse code generators to take the grunt work out of doing this conversion.
使用Rails,我们能够使用生成器生成样本代码,并且可以通过少量工作创建更多自定义应用程序。
With Rails, we're able to use generators to produce boilerplate code, or we can create more custom applications with little effort, as well.
清单12是创建这个表生成器所使用的Perl代码。
事实上,您必须通过uml晦涩的对象约束语言(Object Constraint Language,OCL),并使用OCL代码生成器,才能实现相同的功能。
In fact, you must dust off UML's obscure Object Constraint Language (OCL) and an OCL code generator to achieve the same functionality.
接下来的两行代码使用生成器表达式来处理文件对象ps .stdout,分析该文件并在其中搜索您正在查找的行。
The next two lines of code-use generator expressions to handle the file object ps.stdout and to parse it and search it for the lines you are looking for.
注意,本文中示例应用程序仅使用了动态SDO,虽然EMF代码生成器也为数据对象的静态代码生成提供了完整的支持。
Note that the sample application for this article utilizes only dynamic SDO, although the EMF code generator also provides full support for static code generation of data objects.
接下来,通过正常的对生成器的操作又会不断鼓励用户使用这些最佳实践,因为后面生成工具所生成的代码也反映出了同样的架构模式。
These best practices are then continuously encouraged via the normal operation of the generator, as any further code it generates for the user will reflect those same architectural patterns.
一旦他们之间的关系建立了,我们就可以为这个应用使用专门定制出代码生成器生成涉及到该应用所有的DAO的代码。
Once the relationships are established, it is possible to write a simple application-specific code-generation utility that generates the code for all DAOs required by the application.
使用测试生成器破坏了这个原则,因为生成器是以产品代码作为输入来生成测试的,而且因为它是全自动转换的,所以其生成的测试代码也不便于阅读。
Using a test generator breaks this concept because the generator writes the test using the production code as input. The generated test is not a human restatement, it is an automatic translation.
代码生成器:新增了代码生成器,将您轻松使用EJS创建自定义项目。
Code generators: Added code generators and made building custom ones easy too by using EJS.
代码生成器:新增了代码生成器,将您轻松使用EJS创建自定义项目。
Code generators: Added code generators and made building custom ones easy too by using EJS.
应用推荐