清单1展示了一个示例注释声明,后面是将该注释用于某些方法的类的定义。
Listing 1 shows a sample annotation declaration followed by the definition of a class using that annotation on some methods.
API方法实现是作为公共实例方法定义在控制器类中的。
The API method implementations are defined in the controller class as public instance 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方法。
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.
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.
Creator类用于定义创建产品对象实例的Factory方法。
Creator classes are used to define factory methods that create instances of the product objects.
这是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.
例如,有许多函数都是对“类文件”对象进行操作,其中只是通过支持类似 .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.
这种类型的错误是这样产生的:定义的某些基本例没有被给出它们自己的类,然后以这种方法定义了一个递归的数据类型。
Bugs of this sort result from defining a recursive datatype in such a way that certain base cases of the definition are not given their own classes.
利用强制方式动态自定义类行为最简单的方法是:首先创建类,然后添加方法和属性。
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.
通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。
With the direct dispatching approach, the API definition class is attached to the controller class, and the API methods are implemented in the controller class as public instance methods.
即使你分别测试了每个类的所有方法,确保定义类-级的测试。
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.
它的检测方法本质上是重新定义程序执行中的大多数类和方法,结果必然会明显减缓程序执行速度。
It's instrumentation approach will essentially redefine most of the classes and methods that your application is executing, and as a result is likely to slow down your application significantly.
当调用本机方法时,类装入器会尝试装入定义了该方法的本机库。
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.
该服务类将实现api类中定义的方法。
The service class implements the methods defined in the API class.
这种变量被称为类变量,顾名思义,该类型的变量在类的级别定义而非方法的级别。
These variables are called class variables and, as their name suggests, are defined at the level of the class rather than at the level of a method.
应用推荐