对于抽象类,可以定义任意数目的方法签名。
As with abstract classes, you can define any number of method signatures.
清单1展示了一个示例注释声明,后面是将该注释用于某些方法的类的定义。
Listing 1 shows a sample annotation declaration followed by the definition of a class using that annotation on some methods.
这个阶段准备代表每个类中定义的字段、方法和实现接口所必需的数据结构。
This stage prepares the necessary data structures that represent fields, methods, and implemented interfaces that are defined within each class.
或者换句话说,您可以定义出这样的方法,在整合到使用特征的类定义之前,不会检查其正确性。
Or, put differently, you can define methods that aren't checked for correctness until they're incorporated into a trait-using class definition.
执行环境定义在特定平台中可用的方法和类。
Execution environment defines what methods and classes are available in a specific platform.
供应商定义的工厂类将提供方法以允许程序员设置连接参数。
A vendor-defined factory class will expose methods that allow the programmer to set the connection parameters.
定义api类和一个或多个API方法。
首先,没有main方法或者类定义,只有一些简单的代码。
First, there is no main method or class definition, just some simple code.
通过编写一个简单的类定义,可以将自己的方法添加到QueryPath中。
By writing a simple class definition, you can add your own methods to QueryPath.
dojo提供了使用dojo . declare结构定义自己的类的更好方法。
Dojo provides a better way to define your own classes using the dojo.declare.
更新和重新pickle先前进行过pickle的所有实例之后,现在可以从类定义中除去_ setstate _方法。
After all the previously pickled instances have been updated and re-pickled, we can remove the _setstate_ method from the class definition.
它还通过target指示器明确指定了在雇员类中定义的方法。
It also specifically identifies the method as defined in the Employee class through the target designator.
这意味着,用户可以仅使用DataObject接口中定义的方法类获取和设置数据对象的属性,而无需使用静态api场景中生成的API。
This means that users can only use methods defined in the DataObject interface to get and set properties of the data object instead of using APIs generated in the static APIs scenario.
基类定义了名为load的方法。
archiveDocument是csnjobsamples脚本库中的子过程,它根据CreateCSNJobs中定义的类和方法创建一个存档作业。
ArchiveDocument is a sub in the CSNJobSamples script library that creates an archive job based on the classes and methods defined in CreateCSNJobs.
创建了存根的实例后,可以选择使用or g . apache . axis2 . client . Stub基类定义的方法来配置各个功能。
After you've created an instance of the stub, you can optionally use methods defined by the base org.apache.axis2.client.Stub class to configure various features.
这是activity类中定义的方法,通常被定制的Activity覆盖。
This is a method defined in the Activity class and is typically overridden by any custom Activity.
Bytecode类细节页面向您展示了方法以及定义的区域和使用的类。
The Bytecode class details page shows the methods and fields that are defined and the classes that are used.
类定义和main方法如清单14所示。
The class definition and the main method are shown in Listing 14.
此代码定义为watchit类的静态方法。
This code is defined as the static method of the watchit class.
例如,有许多函数都是对“类文件”对象进行操作,其中只是通过支持类似 .read() 、 .readlines()也许还有 .seek() 这样的几个方法来定义类文件。
For example, there are many functions that operate on "file-like" objects, where file-like is defined simply by supporting a few methods like .read(), .readlines(), and maybe .seek().
清单5:定义访问方法的statistics类。
其他编程语言可能要使用继承才能做到:比如在类中定义方法并强迫用户扩展这个方法。
Other languages would have to resort to Inheritance for this, ie. define the method in a class and force users to extend that.
利用强制方式动态自定义类行为最简单的方法是:首先创建类,然后添加方法和属性。
The easiest way to dynamically customize class behavior USES an imperative style: first create the class, then add methods and attributes.
使用把XML映射到类定义的方法,可能存在两种情况:要么得到一个正确的对象,要么该对象会丢失某些字段。
Alternatively with the XML mapped to a class's design, there would either be a correct object, or it would be missing some fields.
更新上个月的代码以使用自定义类加载器方法是很容易的。
Updating the code from last month to use the custom classloader approach is easy.
即使你分别测试了每个类的所有方法,确保定义类-级的测试。
Even if you test all of the methods of the classes individually, be sure to define class-level tests.
原因:定义的某些基本例没有给出自己的类,然后以这种方法定义了递归数据类型。
Cause: The recursive datatype is defined in such a way that certain base cases of the definition are not given their own classes.
当调用本机方法时,类装入器会尝试装入定义了该方法的本机库。
When a native method is invoked, the class loader attempts to load the native library that defines that method.
PHPV5提供了一些可用于类内部的特别定义的方法,称为魔术方法。
PHP V5 has several specially defined methods that can be used inside classes known as magic methods.
应用推荐