The constructor methods for both versions are virtually identical, except for the format of values being stored, as shown in Listing 3.
两个版本的构造方法实际上都是相类似的,除了存储值的格式之外,如清单3所示。
A class can have different constructor methods, differentiated by the different attributes enclosed within the parentheses following the class name.
类可以有不同的构造函数方法,这些方法是通过类名称后的圆括号内附带的不同属性进行区分。
Do not provide any mutating methods other than the constructor.
除构造函数之外,不再提供任何的可变方法。
Of course, the fun doesn't stop there: you can include methods, animations, constructor properties, and much more in components.
当然,有趣的事情不仅仅是这些。您可以在组件中包括方法、动画、构造函数属性,等等。
Events, such as methods or constructor calls, classes or object initialization, and exceptions, are all valid AOP triggers.
事件,例如方法或者构造器调用,类或者对象初始化,以及异常,这些都是有效的aop触发器。
Listing 3 shows the richest example, which is for the permission-oriented constructor; the other methods are similar but even simpler.
清单3显示了最丰富的示例,该示例用于面向权限的构造函数;其他方法也是类似的甚至更简单。
These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.
这些类定义了修改由它们所表示的对象的所有方法的方法,包括方法或者构造函数中的实际字节码内容。
Overriding methods in a parent class is not limited to the constructor.
父类中的重写方法不仅局限于构造函数。
The most commonly implemented of these methods is the constructor method.
最常实现的方法是构造函数方法。
Incorrect objects: Using the address, it is possible to check that methods are being invoked on the desired object by matching to the address on the constructor call for that object.
错误对象:使用地址,通过与对象的构建函数调用的地址进行比对,可以检查出是不是在正确的对象上调用方法。
Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.
如果没有beforefieldinit,运行库就必须在某个精确时间运行类型构造函数,即,恰好在第一次访问该类型的静态或实例字段和方法之前。
You start by filling out the instance variables, constructor, and some helper methods that are not specific to Lotus Sametime.
首先需要填充实例变量、构造器和一些帮助器方法,这些内容并非特定于Lotus Sametime。
Note that method changes to the class are irrelevant to db4o because it doesn't store methods or method implementations as part of the stored object data, and ditto for constructor refactorings.
注意,对类中方法的更改与db4o无关,因为它不将方法或方法实现作为存储的对象数据的一部分,对于构造函数的重构也是如此。
The connection factory's constructor is parameterless, so the factory has mutator methods that can be invoked to control the properties of the connection the factory will supply.
连接工厂的构造器是无参数的,因此工厂有变异方法可以被调用,以控制工厂将提供的连接的特性。
The two constructor signatures have already been constructed by Eclipse, and you do not add any methods.
Eclipse已经构建了这两个构造器签名,因此无需再添加任何方法。
The application logic shown in Listing 4 is contained within two methods in this class: the constructor and the showProduct method.
清单4 中所示的应用逻辑包含在这个类的两个方法中:构造函数和showProduct方法。
The field class itself is pretty simple; it pretty much consists of the instance variables of the field, accessor methods for those instance variables, a toString method, and a normal constructor.
Field类本身相当简单;它几乎包含了这个字段的实例变量,访问这些变量的方法,一个toString方法,和一个标准的构造方法。
Our ACL class in Listing 8a features a public constructor accepting the securedResource, the ACLHolder that the ACL protects, and utility methods that operate on the ACL's internal grants structure.
清单8a 中的ACL类提供了一个公共构造函数,用于接收securedResource,即 ACL保护的ACLHolder;还提供了实用方法,对 ACL的内部授权结构进行操作。
I also added a constructor that'll make creating fully initialized objects a lot easier as compared to calling a lot of setter methods.
我还添加了一个构造函数,与调用大量setter方法相比,这个构造函数可以更加轻松地创建完全初始化的对象。
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.
可以将GuiTestObject只传递到构造函数中一次,然后将设置和获取文本的方法用作实例方法,而不是用作类方法。
The name and ordinal methods report back the constructor arguments, and toString reports back the name.
name和ordinal方法返回构造函数参数,而toString返回名称。
The argument to the constructor is the fully qualified URL of the metadata service being exposed, which we construct using methods in the private class HostDescriptor.
该构造函数的参数是正在被显示的元数据服务的全限定url,我们使用私有类HostDescriptor中的方法构造了它。
Then it generates a default constructor, and passes the elements into the getter-and-setter template to generate the getter and setter methods of the property.
然后它将生成默认构造函数,并把元素传递到getter-and-setter模板中以生成属性的 getter和setter方法。
This abstract aspect, called Trace, has several standard methods for printing messages about entering and exiting a method or constructor, and for formatting the output.
这个抽象的方面,叫做Trace,有几种标准程序来打印关于输入和退出一个程序,或构造方法的信息以及格式化输出的结果。
Kind of, (but not really), like how the __ is used with magic methods such as the constructor method.
种,(但不是真的),怎么像是用魔术方法__如构造函数方法。
It has two methods, the constructor and the GetParameter.
它有两个方法,构造函数和GetParameter方法。
When you create a structured type, DB2 automatically creates a constructor function for the type and creates both mutator and observer methods for the attributes of the type.
当您创建结构化类型时,DB 2为类型自动创建一个构造函数,并为类型的属性创建mutator方法和observer方法。
Does "use strict" in the constructor extend to prototype methods?
并在构造函数中“使用严格”延伸至原型方法吗?
The constructor and destructor methods of this object do the necessary setup and cleanup.
这个对象的constructor和destructor方法执行必需的设置和清除工作。
The constructor and destructor methods of this object do the necessary setup and cleanup.
这个对象的constructor和destructor方法执行必需的设置和清除工作。
应用推荐