You can also use metaprogramming techniques.
你也可以使用元编程(metaprogramming)技术。
Metaprogramming, programmers, and domain experts.
元编程、程序员和领域专家。
Besides frameworks, metaprogramming is also helpful in testing.
除了框架,元编程还能够帮助测试。
You can define attributes to create declarative metaprogramming tags.
您可以通过定义属性来创建声明性元程序设计标记。
As you can see, metaprogramming is all about extreme flexibility.
可以看到,元编程提供了极好的灵活性。
Metaprogramming has many uses in large-scale computer programming.
元编程在大型计算机编程中有许多用途。
Metaprogramming often provides much cleaner solutions to problems.
元编程通常能提供更加简洁的解决方案。
In the next section, you'll learn how to scope the metaprogramming magic.
在下一小节,您将了解揭秘元编程的秘密。
First let's look at metaprogramming that involves textual macro languages.
首先让我们来看一下涉及文本宏编程的元编程。
We then looked at several metaprogramming systems and examples of their use.
然后我们介绍了几种元编程系统,并给出了几个使用这些系统的例子。
If your metaprogramming requires eval, it's subject to the same requirements.
如果你的元编程需要eval,那它也必须遵循相同的要求。
First, you want to add some metaprogramming capabilities to the field.jsp tag.
首先,您想为field. js p标记添加元编程功能。
Enterprise metaprogramming involves these as well, but also adds other considerations.
虽然企业元编程同样涉及这些问题,但是它们还增加了其他一些考虑。
Often, most of the code can use the metaprogramming tools available to accomplish the task.
通常,大部分代码都可以使用元编程工具来实现这个任务。
Notice that you can undo the metaprogramming by simply setting the String.metaClass to null.
注意,只需将String . metaClass设置为null,就可以取消元编程。
Scaffolding — like many metaprogramming techniques — is nothing but a run-time code generator.
搭建,像许多元编程技术一样,就是个运行时代码生成器。
In fact, most of the time that I use metaprogramming on a daily basis is when I'm writing tests.
其实,我平常大多数时候都把元编程应用在写测试上面。
But the Searchable plug-in also does a bit of metaprogramming on your individual domain classes.
但Searchable插件也可以在您个人的域类上做一些元编程。
This is a metaprogramming method defined on the class class that executes at interpretation time.
这是对在解释时执行的class类定义的一个元编程方法。
Part 2 will delve more deeply into Streamlined's metaprogramming model and customization features.
第2部分将进一步深入Streamlined的元编程模型及其定制特性。
Without it we would not have Grails: Groovy metaprogramming makes convention over configuration possible.
没有它就没有Grails:groovy元编程(metaprogramming)让“惯例优于配置”成为了可能。
Many Rails model objects are simple because the attributes are all added dynamically with metaprogramming.
许多Rails模型对象之所以简单,是因为属性都是用元编程动态添加的。
You can create views, which you may or may not need to modify, with true metaprogramming or code generation.
可以用真正的元编程或代码生成来创建视图,视图可能需要修改,也可能不需要修改。
For a wide variety of metaprogramming tasks, this feature makes macros more predictable and easier to work with.
对于许多元编程任务,这个特性使宏更可预测并容易使用。
When you need to do metaprogramming, open up your toolbox and throw in some languages that allow delayed binding.
当您需要进行元程序设计时,请打开您的工具箱,加入几种允许延迟绑定的语言。
Because of this, the metaprogramming system should be customizable to produce output for a wide variety of systems.
由于这个原因,元编程系统应该可以进行定制,从而为各种系统产生输出。
In a dynamically typed language, it is often necessary to use metaprogramming features to implement advanced designs.
在一种动态类型语言中,使用元编程特性来实现高级设计经常是必要的。
Using a combination of Ruby reflection and metaprogramming, the columns of the table become properties of the object.
使用Ruby反射和元编程的组合,表的列可以变成对象的属性。
It USES metaprogramming to generate the view model and allow you to bind to the objects you define in your controller.
它使用元编程来生成视图模型,使你能够绑定至你在控制器中定义的对象。
Some parts of an application can be written as a PIM in which most of the legwork is done by the metaprogramming system.
应用程序中有些部分可以作为一个pim来编写,其中大部分信息搜集工作都可以由元编程系统实现。
应用推荐