这些模块方法会变成包含它们的类的实例方法。
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.
一般来讲,可以通过类方法或实例方法的调用来获得对象引用。
Generally, object references can be obtained by the invocation of a class method or instance method.
然后,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:方法覆盖模块视图。
SignatureVisitor接口中返回 SignatureVisitor实例的方法均有此作用。
The methods in the SignatureVisitor interface that return a SignatureVisitor instance all have this effect.
清单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.
Creator类用于定义创建产品对象实例的Factory方法。
Creator classes are used to define factory methods that create instances of the product objects.
还应注意,Weatherman被直接传递到AsyncContext实例的start方法。
Also notice that the Weatherman was passed directly to the start method of the AsyncContext instance.
以下的代码例子展示如何用这种方法创建CBE实例。
The following code sample shows how to create a CBE instance using this method.
线程1退出synchronized块并从getInstance()方法返回实例。
Thread 1 exits the synchronized block and returns instance from the getInstance() method.
有许多其它约束实例数据的方法;请参阅 附录E以获得完整列表。
There are many other ways of constraining the instance data; see Appendix E for the full list.
流程修复实质上是指手动干预失败的流程实例,通过此方法可以成功完成以前失败的某些工作。
Process repair basically means to manually intervene in a failing process instance, in such a way that it can successfully complete some work that has previously failed.
上述 AutomobilePolicyDocument实例的getAutomobilePolicy()方法可以提供根元素automobile-policy 的句柄。
The getAutomobilePolicy() method on the above instance of AutomobilePolicyDocument then gives a handle to the root element, automobile-policy.
激活Http管道要创建一个新的HttpRuntime类实例,调用ProcessRequest方法。
The Http pipeline is activated by creating a new instance of the HttpRuntime class and then calling its ProcessRequest method.
应用推荐