This class builds a hash table of key-value pairs at the class instantiation.
此类在类实例化时构建一个键值对哈希表。
The maps are maintained in parallel and are constructed as part of the class instantiation process.
这些映射可以并行进行维护,并且可以构建为类实例化过程中的一部分。
Decorators do not currently let you modify class instantiation per se, but they can massage the methods that are attached to the class.
decorator目前并不允许您修改类实例化本身,但是它们可以修改依附于类的方法。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
It has a consistent class instantiation and inheritance structure and the ability of intercessive structural computational reflection, which enables it to support safe metaclass programming.
该语言具有协调一致的类对象结构,具备结构化计算反射能力,能够进行安全的元类程序设计。
This instantiation involves the default constructor for the class being called, with the injection of dependencies happening afterwards.
这种实例化涉及到要调用的类的默认构造函数,随后还要注入依赖关系。
Another way of handling this problem would be to throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
处理该问题的另一种方法是:只要泛型类的运行时实例化没有包括所需构造函数,就抛出异常。
A modified class loader USES template files that look almost exactly like ordinary class files except for "holes" in the constant pool that are filled in at load time for each instantiation class.
修改的类装入器使用看上去几乎与普通类文件完全一样的模板文件,不同的是这个模板文件在常量池中有一些“洞”,在装入时为每个实例化类填充这些“洞”。
Two things are worth mentioning when considering this code: First, the instantiation of an anonymous inner callback class requires a great amount of boilerplate code.
上面的代码有两点值得我们注意:首先,匿名内部回调类的实例化需要大量的样板代码。
It begins with the instantiation of the class to the CNT object.
首先要实例化这个类来获得cnt对象。
But in fact, all that is necessary to implement this strategy is to use a modified class loader that constructs new instantiation classes from a "template" class file.
但实际上,实现该策略所需的全部就是使用一个修改的类装入器,它根据“模板(template)”类文件构造新的实例化类。
First of all, in web application class we have to add a component instantiation listener that is responsible for injecting dependencies into Wicket components.
首先,在Web应用的类里,我们必须添加负责将依赖注入Wicket组件的组件实例化监听器。
As explained in the first article of this series, constructor injection implies that the framework supplies constructor parameters required by the class upon instantiation.
正如在本系列的第一篇文章中解释过的,构造函数注入表明框架会提供类在初始化时需要的构造函数参数。
Then we will get a signaled error, but it will be long after the real problem occurred -- the bad instantiation of class D.
然后,我们将得到一个报告的错误,但这将在实际问题发生很久以后 ―类 D 的糟糕实例化。
Implicit class loading occurs when a class is loaded as result of a reference, instantiation, or inheritance (not via an explicit method call).
隐式类装入发生在由于引用、实例化或继承导致装入类的时候(不是通过显式方法调用)。
The class also maintains its own identifier (set by the cache upon instantiation) that can be queried as shown in the bold portion of the code in Listing 8.
该类还维护着自己的标识(实例化的时候由缓存来设置),该标识可以被查询,如清单8中代码的粗体部分所示。
Throw an exception whenever a run-time instantiation of the generic class does not include a needed constructor.
只要泛型类的运行时实例化没有包括所需的构造函数,就抛出异常。
This placeholder class should represent the instantiation of List by binding the template parameter t to the template parameter of X.
该占位符类可以通过将模板参数t与模板参数X绑定来实例化。
The simplest possible class that can be declared in shown in Listing 4, and its instantiation in Listing 5.
清单4展示了最简单的类声明方式,清单5展示了该类的实例化。
Class objects support two kinds of operations: attribute references and instantiation.
类对象支持两种操作:属性引用和实例化。
In other words, Factory Method lets a class defer the instantiation to its subclasses.
换句话说,Factory方法令一个类实例化到其子类。
Each IER's content represents an instantiation of an OV-6c IO Entity class (see below), where the attributes represent the data characteristics that the DoDAF requires.
每个IER的内容都表示OV - 6cIO实体类(见下)的实例,在此,属性表示DoDAF需要的数据特征。
The controller servlet is an instantiation of class org.apache.struts.action.ActionServlet (hereafter called ActionServlet).
控制器servlet是or g . apache . struts . action . ActionServlet(以下简称ActionServlet)类的实例化。
After you've connected to the remote server (part of the instantiation of the Client class), you write your request.
在您连接上远程服务器之后(包括client类的部分初始化),您就可以编写您的请求。
Creating a new object is called instantiation, and the object is an instance of the class.
创建一个新的对象也叫做实例化,这个对象就是类的一个实例。
Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。
Factory Method lets a class defer instantiation to subclasses.
工厂方法让一个类的实例化延迟到子类中进行。
Declaring class members or methods as static makes them accessible without needing an instantiation of the class.
声明类里的静态类成员或者静态方法可以是这些类成员或者方法在不实例化的情况下直接被访问。
Define an interface for creating an object, but let subclass decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。
Our global instantiation function will return an object of another class that will allow us to produce instances of the CDB class.
我们的全局实例化函数会返回一个其它类的对象,这个类会让我们产生CD B类的实例。
应用推荐