这表明这个方法是一个实例方法。
事件对象现在扩展了一组实例方法。
Event objects are now extended with a collection of instance methods.
根据其定义,实例方法涉及对象状态。
Instance methods, almost by definition, involve object state.
我们能够利用实例方法作为可重用组件。
We are able to leverage instance methods as reusable components.
这些模块方法会变成包含它们的类的实例方法。
Those module methods then become instance methods of the including class.
该类处理模块属性并引入不同的类和实例方法。
This class handles the attributes for the module and introduces the various class and instance methods.
在服务类中实现作为公共实例方法的API方法。
Implement the API methods in the service class as public instance methods.
在控制器类中实现作为公共实例方法的API方法。
Implement the API methods in the controller class as public instance methods.
API方法实现是作为公共实例方法定义在控制器类中的。
The API method implementations are defined in the controller class as public instance methods.
此外,枚举类型支持拥有构造函数、实例方法和变量,等等。
In addition, enumerated types support having constructors, instance methods, and variables, among other things.
那个方法既可以是静态方法,也可以是实例方法。
That method can be either a static method or an instance method.
一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
Generally, object references can be obtained by the invocation of a class method or instance method.
因此在编写一个全新的扩展函数时,实例方法并非首选。
Thus they're rarely the first choice when writing a new extension function.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
The static methods in the Factory class will then call the instance methods of your factory instance.
Log对象可以要求其自己的、由init()实例方法执行的初始化。
The Log object could require its own initialization, to be performed by an init() instance method.
因此,这些断言方法现在都是TestCase上的实例方法,如清单17 所示。
Therefore, all those assert methods are now instance methods on TestCase, as you can see back in Listing 17.
一个实例方法的执行在类的一个特定示例中有效;您在调用该类的方法之前必须创建一个类的实例。
Execution of an instance method is scoped to a particular instance of the class; you must create an instance of the class before you can invoke the method of the class.
如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。
If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.
通过直接调度方法,可以把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.
回顾一下插件制作者需要的三个条件:放置实现的位置,公开DSL(类方法)的方法以及为状态机公开实例方法的方法。
Recall that a plug-in author needs three things: a place to put the implementation, a way to expose the DSL (the class methods), and a way to expose the instance methods for the state machine.
可以将GuiTestObject只传递到构造函数中一次,然后将设置和获取文本的方法用作实例方法,而不是用作类方法。
Instead, you can pass in the GuiTestObject to the constructor once, and then use the methods to set and get the text as instance methods instead of class methods.
它们不像实例方法那样常见,但您将会经常看到一些类方法,它们作为创建新的类实例的工厂方法;这免得您必须进行分配和初始化。
These are not as common as instance methods, but you will often see class methods that are factory methods for creating new instances of the class; this saves you from having to alloc and initialize.
这样,您不必手动定位调用方法的每个实例并进行更改,这将为您节省大量时间并避免潜在错误。
This way, you don't have to manually locate every instance in which a method is called and change it, which saves you a lot of time and prevents potential errors.
第一个也是最重要的新特性是针对类的方法和实例变量的访问保护 ——public、protected 和 private关键字。
The first and most important addition was access protection for methods and instance variables on classes -- the public, protected, and private keywords.
测量实例3:方法覆盖模块视图。
通过创建一个新的Appointment实例开始方法链接。
Starts the method chain by creating a new Appointment instance.
SignatureVisitor接口中返回 SignatureVisitor实例的方法均有此作用。
The methods in the SignatureVisitor interface that return a SignatureVisitor instance all have this effect.
动作方法把实例变量拷贝到视图。
The action method copies any instance variables to the view.
清单3显示使用字段反射方法的一个实例,以方法的格式根据名称增加对象的int字段。
Listing 3 shows an example of using the field reflection methods, in the form of a method to increment an int field of an object by name.
启动流程实例的方法需要输入ClientObject Wrapper,它包装包含真正的输入数据的WSIFMessage。
The method to initiate a process instance expects as input ClientObjectWrapper, which wraps a WSIFMessage that contains the real input data.
应用推荐