It is essential that the handler invoke methods in the superclass rather than methods in the overriding module (see Listing 9).
处理程序必须调用超类中的方法而是重写模块中的方法(如清单9所示)。
Rather than hand code method calls to surround each application call to an annotated interface methods, another option is to define a Hook to register with the annotated interface.
现在不需要手动编写方法调用,以便将每个应用程序调用围绕一个带注释的接口方法,而是采用另一种方法,定义一个Hook以注册到带注释的接口。
Even better, all combining is done with a single combine callable rather than with a menagerie of distinct combination methods.
更好的做法是,所有合并都用单个可调用combine完成,而不需要使用各式各样的合并方法。
This module defines a cornucopia of assertion methods, but rather than being extended, Ruby's TestCase class includes the assertion as a mix-in.
这个模块定义了许多断言方法,但是Ruby不对这个模块进行扩展,Ruby的testcase类以mix - in的形式包含assertion。
Rather than merely redefining or adding specific methods as in most inheritance patterns, Spark concrete classes have two features (the general pattern is common to the stages and various parents).
Spark具体类并不象大多数继承模式中的类那样仅仅重新定义或添加特定的方法,而是具有两种特性(一般的模式与各阶段和各种父模式都一样)。
In other words recognise the methods of attack, rather than focus on stopping the tools.
换句话说,识别攻击的方式,而不是把精力集中在放弃这个工具。
In the case of generic methods, if a type parameter appears only once in the method signature, then it probably should be a wildcard rather than a named type parameter.
就泛型方法来说,如果一个类型参数在方法签名中只出现一次,它很有可能是一个通配符而不是一个命名的类型参数。
Likewise, if you rerun the compiler with a modified binding definition it replaces the methods added for the old binding rather than just adding new ones.
同样,如果用修改过的绑定定义重新运行编译器,那么它将替代为旧绑定而添加的方法,而不只是添加新的方法。
Is it a stylistic choice to stay with the older methods, rather than a reliance on quicker methods or computers?
你们是想在体裁选择上仍保留旧有的方式,而非依靠一种快捷的方式或电脑技术吗?
This method was developed based on more recent design methods, rather than being retrofitted to handle the advent of use cases.
这种方法的开发是建立在更新的设计方法基础上的,而不是被更新来处理用例的使用的。
For legacy code, rather than looking at individual methods, look at what the application is doing.
对于遗留代码,应该考虑应用程序在做什么而不是考虑单个方法。
Although many classes, packages, and methods are tested by the functionality tests, you often find different problems when looking at the program from a programmer's view rather than a user's view.
虽然很多类、程序包和方法都可以通过功能测试进行测试,但是当您从一个程序员的角度而不是从一个用户的角度查看程序时,经常会发现不同的问题。
So rather than use generic methods to search for matching nodes, you can search for nodes using attributes that are named for their meaning.
因此,可以使用根据其意义命名的属性来搜索节点,而不必使用通用方法搜索匹配节点。
Agile methods are often described as people-centric rather than technology-focused, and with good reason.
敏捷方法常常被描述为以人为中心,而不是强调技术,并有充分的理由来说明这一点。
REST differs from SOAP in that it is based on resources and actions, rather than on methods and data types.
REST不同于SOAP,它基于资源和操作,而不是基于方法和数据类型。
In some cases, you may find that it's more useful to access properties and methods via a class rather than an object instance.
有时候,可能发现通过类而不是对象实例来访问属性和方法更有用。
On devices without a JIT, it is true that invoking methods via a variable with an exact type rather than an interface is slightly more efficient.
在没有JIT的设备上,通过具体类型的变量调用方法比通过接口更高效。
Rather than designing a policy from scratch, you're advised to use the existing default policy (which should fulfill most requirements), overriding some methods to fit your specific needs.
与其从头开始设计策略,我建议您倒不如用现有的缺省策略(它应该可以满足大部分需求)、同时覆盖一些方法来适应您的特定需求。
As mentioned in the last section, decorators could not completely replace the metaclass hook since they only modify methods rather than add or delete methods.
正如上一节中介绍的一样,decorator并不能完全取代元类挂钩,因为它们只修改了方法,而未添加或删除方法。
We also refactor the code to have all three actions as fields (rather than local variables) so we can access them from three methods. Let's see the final version of Explorer (Listing 10).
我们还重构了代码,将这三个操作作为字段(而不是局部变量),这样我们就可以用三种方法来访问它们。
The latter still usually utilizes node methods to manipulate data structures, rather than directly accessing node attributes as one usually does with data structures built within an application.
ElementTree通常仍利用节点的方法来操作数据结构,而不是像人们通常处理应用程序中构建的数据结构那样直接访问节点属性。
The immediate attribute can also be set to true for command buttons whose action methods should be called during the Apply Request Values phase rather than waiting until the Invoke Application phase.
也可针对一些命令按钮将immediate属性设为true,这些命令按钮的操作方法应该在ApplyRequestValues阶段调用而不是等到Invoke Application 阶段调用。
Some frameworks also use get/set methods rather than the public fields shown here, but the principle remains the same.
有些框架还使用get/set方法,而不是这里显示的公共字段,但原理是相同的。
Project Zero lets you focus on the core business logic of the application rather than handling incoming Web requests, parsing URLs, and handling various methods.
ProjectZero让您能够专注于应用程序的业务逻辑,而不用为处理传入Web请求、解析URL和处理各种方法大费周折。
There is an urgent need to expand and accelerate in countries access to new, rapid technologies that can diagnose MDR-TB in two days rather than traditional methods which can take up to four months.
现在迫切需要扩大和加快各国获得新的快速诊断技术,可以在两天内,而不是传统的需要长达4个月的方法,诊断耐多药结核病。
For these more light-weight methods, architecture documents are more often used as a reflection of the as-built system, rather than as an to-be-designed systems.
对于这些轻量级的方法,架构文档更多地用于反映实际建造的系统,而不是将要设计的系统。
That is, a visitor will have a .visit_FOO() and .depart_FOO() method for each type of node, rather than switching on type within large .startElement() and endElement() methods.
即,访问器会有针对每种类型节点的 .visit_FOO()和 .depart_FOO()方法,而不是在大型的.startElement() 和endElement() 方法中按类型进行切换。
In most cases, it is easier to extend DefaultHandler and override the methods that are relevant for the application rather than to implement an interface directly.
在大多数情况下,为应用程序扩展DefaultHandler并覆盖相关的方法要比直接实现一个接口更容易。
In most cases, it is easier to extend DefaultHandler and override the methods that are relevant for the application rather than to implement an interface directly.
在大多数情况下,为应用程序扩展DefaultHandler并覆盖相关的方法要比直接实现一个接口更容易。
应用推荐