超类方法——在运行时不需要其他实例。
Superclass methods — no additional instance needed at run time.
实际上有两类方法。
在Objective - c中有两类方法。
清单4展示如何使用php重载调用对象和类方法。
Listing 4 illustrates using PHP overloading to invoke object and class methods.
指定我的类方法的方式(DSL需要使用类方法)。
A way to specify my class methods, which are required for the DSL.
对于实际的时间戳转换,我们使用了下面的类方法。
For the actual timestamp conversion the following class method was used.
这就是类方法为了进行时间戳转换而在内部使用的值。
That is the value that would be used internally by the class method for the timestamp conversion.
第一类方法使用任意的xml片段,如下所示。
In one class, some of the methods work with arbitrary fragments of XML, as follows.
图2中的第二类方法则操纵元素中的属性。
The second class of method in Figure 2 comprises methods that manipulate attributes within elements.
用于类方法并返回函数的用例仅利用您的创造力进行限定。
The use cases for class methods that return functions is limited only by your creativity.
另外,这个库还提供以不同方式创建类型的对象的类方法。
In addition the library provides class methods to create objects of their type in different ways.
这意味着存储过程不同于类方法,因为它们不是表的一部分。
This would imply that stored procedures are not similar to class methods since they are not part of tables.
相反,可以在Web服务类方法中使用以下内容作为参数或返回值。
Conversely, you can use the following as parameters or return values in a Web service class method.
类的API目前包含对于继承和超类方法调用的完善支持。
The class API now includes full support for inheritance and superclass method calls. (See Mislav's tutorial for more info.)
一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
Generally, object references can be obtained by the invocation of a class method or instance method.
现在让我们了解一下四个有用的函数,并演示其他str类方法的工具。
Instead, let's look at four functions that are useful in their own right and demonstrate the utility of the rest of the STR class methods.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
UDDI4 J v 2通过向这些类添加一组集合类方法改进了这些类的可用性。
UDDI4J v2 has improved the usability of these classes by adding a set of collection class methods to these classes.
在本文中,我讨论了延迟静态绑定、名称空间支持、类方法重载和heredoc支持。
In this article, I looked at late static binding, namespace support, class method overloading, and heredoc support.
确定代码库中类方法的CC并连续监视这些值将使您的团队在复杂问题出现时抢先处理它们。
Determining the CC of class methods in a code base and continually monitoring these values will give your team a head start on addressing complexity issues as they arise.
第二行(在Python 2.2及以上版本中)告诉Psyco对类方法执行相同的操作。
The second line (in Python 2.2 and above) tells Psyco to do the same with class methods. To target Psyco's behavior a bit more precisely, you can use the commands.
为简化问题,我没有为类的所有属性都建模;也没有为其完整签名或任何类方法建模。
To keep the issues simple, I have not modeled all of the attributes of the classes; nor have I modeled their full signatures or any of the methods of the classes.
构建类的许多方面,例如getter和setter,不同的属性类型和类方法等都被提及。
Various aspects of building classes such as getter and setters, different property types as well as class methods.
您需要这些文本字段的内容和对其进行格式化的Formatter类方法,如 清单2所示。
You need the contents of these text fields and the Formatter class methods to format them, as Listing 2 shows.
意味着extend是一个类方法,即在整个类上操作的方法,比如new 方法。
means extend is a class method, meaning one method operates on the whole class, like the new method.
就像您有时想对继承方法中的超类方法进行调用一样,您有时还想在分派器内对不太特定的规则进行调用。
Just as you sometimes want to call on superclass methods in an inherited method, you also sometimes want to call on less specific rules within a dispatcher.
有了JSFUnitAPI,测试类方法可以提交表单数据,并且验证管理的bean是否被正确更新。
With JSFUnit API, the test class methods can submit data on a form and verify that managed beans are properly updated.
要确保对链中所有类的正确初始化,实现者必须手动编写超类方法调用的代码,如清单11 所示。
To guarantee the correct initialization for all the classes in the chain, the implementer must manually code the superclass method invocation as shown in Listing 11.
您可以研究本文的代码下载中包含的类方法,以了解关于如何计算每个结果对象值的更多信息(请参阅参考资料)。
You can examine the class methods included in the code download for this article to find out more about how each result object value is computed (see Resources).
每一个发布版都会着重解决性能问题,最终目标是Rubinius的所有核心类方法的性能都要比1.8中的要优秀。
Every release should narrow the gap and eventually push Rubinius over the top with all core methods in terms of performance compared to 1.8.
应用推荐