The other notable line in this test is the class definition, which points to the template class, rather than one that you might create.
这个测试中另一个值得注意的行是这个类定义,它指向这个模板的类,而不是您可能创建的模板。
Each binding factory class references the support classes for every class with a definition in that binding.
对于每个类,每个绑定工厂类都用这个绑定中的定义去引用支持类。
To allow recursion, a collaboration structure is nested within a class specification, which means that all instances of that class will have an internal structure specified by the class definition.
为了允许递归,协作结构被嵌套到类的规范中。这就是说这个类的所有实例都将有一个由类定义的内部结构。
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.
通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。
If the class is already loaded, the class definition reopens the class, allowing me to make changes.
如果已经加载了类,则类定义会重新打开类以允许我进行变更。
This process has a variety of USES for developers who want to modify a class without touching the source, or want to change the class definition dynamically at run time.
对于希望修改类而不触及源代码,或者希望在运行时动态修改类定义的开发人员,这个过程可以实现多种用途。
The generated code for the template class one has both the declaration and definition for the operation op within the template class declaration, as shown in Listing 7.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
To create the JRubyInterpreter class, create a new source code file with an empty class skeleton and add the Interpreter interface to the definition.
要创建jrubyinterpreter类,需要先创建一个新的源代码文件,其中带有空的类骨架,再向此定义中添加Interpreter接口。
The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.
addOrderFrom()方法成为公共类的匿名内部类创建的定义,将这两个工作项目包装起来。
Listing 1 shows the class definition and relevant method definitions for the PresenceMonitor Web service implementation class.
清单1展示了PresenceMonitorWeb服务实现类的类定义和相关方法定义。
If you've already pickled instances of a class that needs changing, you'll likely want to retrieve and update those instances so that they continue to function properly with the new class definition.
如果已经对某个类实例进行了pickle,而现在又需要更改这个类,则您可能要检索和更新那些实例,以便它们能在新的类定义下继续正常工作。
Note the implements keyword in the class definition where it's declared that this class implements the SensorListener interface.
注意类定义中的implements关键字,其中声明了该类实现Sensor Listener接口。
However, the major disadvantage of a stub class is that the slightest change of a web service definition may be enough to render a stub class useless, in this case, the stub class must be regenerated.
然而,存根类主要的不足之处在于即使是对Web服务定义做很小的变动也会造成存根类无法使用,这时存根类必须重建。
A class definition for the implementation code: this class must become the PortType class named in the Basics TAB of the properties box, and the class must be public.
实现代码的类定义:该类必须成为属性框的Basics选项卡中指定的porttype类,并且该类必须是公有的。
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
当目前执行的类已经编译,但是找不到它的定义时,会存在searched -for类定义。
In the block-size-column.py example, both nautilus.ColumnProvider and nautilus.InfoProvider are enumerated in the class definition, so the new class inherits from both.
在block -size - column . py的例子中,nautilus . ColumnProvider与nautilus . InfoProvider在类定义中有举例,因此新类要从这两处继承。
Then, Castor's mapping system USES the definition of the author class, within the class element, to handle the properties of an author.
这样的话,Castor的映射系统就会使用class元素中的author类的定义处理作者的属性。
For testing purposes, you can always change the definition of the class on the fly. You can open the existing class later.
为了测试,总可以动态地改变类的定义。
The definition is a simple one: The class is Post and extends AppModel, and you should set the class variable $name to post.
定义十分简单:类是Post并扩展 AppModel,并且应当将类变量 $name 设为 post。
The value of the class attribute in the extension definition above is: com.devworks.example.map.DirectionsLookupDelegate, which is the name of a class that extends the LiveNameActionDelegate class.
上述扩展定义中,class属性的值是:com . devworks . example . map . DirectionsLookup,这是扩展refreshpersonaction类的类名称。
Before JPA 2.0, this semantic distinction was represented via corresponding class-level annotations in the persistent-class definition.
在JPA 2.0之前,这种语义区分是通过持久化类定义中的对应类级别注释来表示的。
Registers a class definition with this container and marks the class as a singleton class.
用这个容器注册一个类定义,并将该类定义为一个单独的类。
Notice that now in a class definition, keyword arguments are allowed after the list of base classes—generally speaking, class Foo(*bases, **kwds): pass.
请注意,现在,在类定义中,关键字参数被允许出现在基类列表之后 —通常来讲,即class Foo(*bases, **kwds): pass。
Scala makes it possible to reuse the new member definitions of a class (i.e. the delta in relationship to the superclass) in the definition of a new class.
Scala允许定义新类的时候重用“一个类中新增的成员定义(即相较于其父类的差异之处)”。
An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method.
类的属性:属于某个类的对象的属性。类的属性都在类定义的内部,在类内方法之外。
The derived class that you design must have a nested template class/structure named definition (you may not change this name). The definition class has the following properties
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
Methods are defined inside a class definition in order to make the relationship between the class and the method explicit.
方法要定义在一个类定义内部,这样能保证方法和类之间的关系明确。
As I've done in previous articles in this series, I'll use the Person class as a starting point for exploring Scala's inheritance system. Listing 1 shows the Person class definition.
与本系列之前的文章类似,我将使用Person类作为起点,探索Scala的继承系统。
But to be able to reach any private data within a user defined class you have to declare the global function as a friend within the definition of the class.
为了访问一个用户定义的类里的私有数据,你必须声明全局函数为友元函数,并且在类中定义。
There is one crucially important difference between how we define variables and class data members: We ordinarily cannot initialize the members of a class as part of their definition.
定义变量和定义数据成员存在非常重要的区别:一般不能把类成员的初始化作为其定义的一部分。
应用推荐