Figure 9: Code template for a decision script
图9:决策脚本的代码模版
Figure 5: Code template for a test suite script.
图5:测试套件脚本的代码模版。
Reuse the test suite code template and fill the test suite driver table.
重用测试套件代码模版并填写测试套件驱动表。
Create the decision scripts with a code template and fill the decision tables.
使用一个代码模版建立决策脚本,并填写决策表。
You can easily combine Listings 3 and 5 to make a generic code template handler.
您可以轻松地将清单3和清单5组合起来,获得一个通用代码模板处理器。
Code template parameters are used in a manner similar to the pattern template parameters.
代码模板参数使用的方式与模式模板参数很相似。
Refer to the documentation in the Resources section for advanced code template scenarios.
参考 参考资料部分的文档以了解高级代码模板的内容。
According to the database schema information and customized code template, code is built for business logic layer.
本文叙述根据数据库架构信息和定制的代码模板自动生成业务逻辑层代码的实现方法。
Problems discovered during unit testing are fixed in the corresponding pattern or code template, not in the generated code.
单元测试期间发现的问题在相应的模式或代码模板中就可以修改,而不是在生成的代码中修改。
This opens a wizard in which you can assign the code template a name, and then define template Parameters and a Body (Figure 29).
这将打开向导,其中您可以指定代码模板的名称,然后定义TemplateParameters和Body(图29)。
Binding a code template to an operation in a pattern will cause that code to be generated when the code and model are synchronized.
在模式中,当代码和模式同步时,把代码模板绑定到一个操作,便会生成相应代码。
Code a template to match the elements to output the element.
编写一个模板,匹配元素,将其输出到元素中。
The last thing I need to do is add the template engine-specific code.
我需要做的最后一件事情是添加模板引擎特定的代码。
Listing 2 contains a code example of defining a file template.
清单2包含一个文件模板定义代码示例。
Listing 12 shows the code for the panel template.
清单12给出了此面板模板的相应代码。
To help speed development, in addition to the code intelligence features, the IDE has an excellent canned template library of code samples to which you can add on.
除了代码智能特性,为了加速开发,这款 IDE有一个极好的代码示例整体模板库,您还可以向库里面添加内容。
This variable is set in the PHP code invoking the template, as you'll see later in this section.
这个变量是在调用模板的PHP代码中设置的,您将会在本节的后面看到。
Templating — The ability to create a template for page code reuse and substitution.
模板化 ——能够创建用于页面代码重用和取代的模板。
Listing 10 shows the sample build script template code.
清单10显示了示例构建脚本模板代码。
The text template can generate code and configuration files that implement that flow of control.
文本模板可以生成流程控制的代码和配置文件。
The majority of the template code was not replaced.
模板的代码多数不会被替代。
If you check the XML definition file, you can see the code for your new template.
如果您核查xml定义文件,您可以看到您的新模版代码。
The SQL module must also contain the format template code as shown in Listing 2.
SQL模块也必须包含格式模板代码,如 清单2 所示。
You might try to clean up this code a bit by packaging the key lookup code in a named template.
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
The easiest way to implement DHTML is to first write it in a plain HTML page, without PHP or any server-side language, then use that code as a template for the PHP code to generate the DHTML.
实现DHTML最简便的方法就是首先在平面HTML页面中编写,不使用PHP或任何服务器端语言,随后以该代码作为PHP代码模板来生成DHTML。
The generated code for the template class one has both the declaration and definition for the operation op within the template class declaration, as shown in Listing 7.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
XSLT 2.0 offers expanded language capabilities to developers seeking a template engine for code generation.
XSLT 2.0为寻求代码生成模板引擎的开发人员提供了广泛的语言能力。
You don't have to worry about managing resources because that code is in the template.
您也不必担心管理资源,因为代码是在模板中。
The first method is one that doesn't even appear in the source code for my template class back in Listing 1, the default constructor for the class.
清单1中的模板类源代码是类的默认构造函数,第一个方法没有出现在其中。
Listing 7. Generated Code for a template class.
列表7.为一个模板类所生成的代码。
应用推荐