我添加了一个字符串名称、一个端口类变量,还有两个函数:构造器和服务器。
I add a string name and port class variable and then two functions: a constructor and the server.
如果需要创建与时间相关的数据类型的单个值,可以使用类型构造器函数并提供时间的字符串表示形式作为参数。
When you want to create an atomic value of one of the time-oriented data types, use a type-constructor function and provide the string representation as an argument.
定义一个构造器函数来初始所需的数据。
Define a constructor function which initializes the required data.
还可以检查是否支持模式类型的构造器函数,特别是在当时。
It can also detect if a constructor function of a schema-type is supported; more about that in a moment.
如果IBinding是一个IFunction,贡献器会构造一个包含该函数名和参数(由逗号隔离并用圆括号括住)的StringBuffer。
If the IBinding is an IFunction, the contributor forms a StringBuffer containing the function's name and parameters — separated by commas and surrounded by parentheses.
该对象包括三个函数:构造器、动态创建脚本标记从而运行Yahoo !
Its implementation consists of three functions: a constructor, a method that dynamically creates a script tag and thereby runs the Yahoo!
将一个操作数包装到number 、boolean 、string或者其他新增的类型构造器函数中。
Wrap one of the comparands in number , Boolean , string , or one of the new type-constructor functions.
清单2显示了这个继承树(为了清晰起见,删除了实例计数器和构造函数代码)。
Listing 2 shows the inheritance tree (with the instance counter and constructor code removed for clarity).
配置传递给构造函数的记录器的内容不属于本文讨论范围。
Configuration of the logger passed to the constructor is beyond the scope of this article.
第二种情况是,类型具有一个用于静态字段的初始值设定项,在这种情况下,编译器会在后台添加类型构造函数。
The second scenario is when a type has a initializer for a static field, in which case the compiler adds a type constructor behind the scenes.
从侦听器的构造函数中登记它很诱惑人,但是这是一个应当避免的诱惑。
It is tempting to register a listener from its constructor, but it's a temptation you should avoid.
做这件事情最有条理的方法是在组件的构造函数中找到执行服务定位器查找的语句,把该语句移到实例化该组件的类中。
The most methodical way of doing this is to find one of the service locator lookups in a constructor and push it to the class instantiating it.
在使用该方法时,我们必须记住该机制只支持访问器注入,不支持基于构造函数参数的注入。
While using this approach we have to remember that this mechanism supports only accessor-based injection, constructor argument based injection is not supported.
清单1实例化一个默认的树查看器;您也可以定制树,并用树对象作为参数,用构造函数实例化树查看器。
Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
站点构造函数采用设计器宿主和组件,以便可以建立图2中所示的组件-容器关系。
The site constructor takes the designer host and the component so that it can establish the component-container relationship shown in Figure 2.
构造函数方法使用标准化的方法来确保重载值中不包含XML解析器所使用的符号。
The constructor method uses the normalize method to ensure that the override value strings do not contain symbols used by XML parser.
如果以非wsdl模式创建服务器,我们必须指定服务器uri;在清单3中,这是在作为第二个参数传递给构造函数的选项数组中指定的。
When setting up the server in non-WSDL mode, it is mandatory to specify the server URI; in Listing 3, this is specified in the options array passed to the constructor as the second argument.
通常,通过查找超类并确保存在匹配的超级构造函数,类型检查器确保这些超级构造函数调用会成功。
Normally, the type checker ensures that these super-constructor calls will succeed by looking up the superclass and making sure that a matching super-constructor exists.
这个检测器寻找在构造函数中初始化之前被读取的字段。
This detector finds fields that are read in constructors before they're initialized.
当存在显式类型构造函数时,编译器不会用beforefieldinit标记该类型,精确的计时限制会导致FxCop所暗示的性能下降。
When an explicit type constructor is present, the compilers will not mark the type with beforefieldinit, and the precise timing restrictions lead to the performance drop hinted at by FxCop.
构造函数用于将数据传递给sqrt类,并初始化作业调度器上的所有本地资源。
The constructor is used to pass data to the class and initialize any resources that are local to the job dispatcher.
其构造函数含有两个参数:初始化属性和预配置的记录器(logger)实例。
Its constructor takes two arguments: initialization properties and a pre-configured logger instance. Properties object contains the following.
当分析完成后,函数,对象,还有构造器应当分别注销,清理分析数据。
When finished profiling, functions, objects, and constructors can be unregistered individually, clearing the profile data.
自动装箱:编译器不生成对包装器类的value Of方法的调用,而是生成对构造函数的调用。
Autoboxing: Rather than generating calls to the valueOf method in the wrapper class, the compiler generates calls to the constructor instead.
我们还重写了构造函数,其中实例化了服务器类和SugarRestServiceXML:serve方法,以实例化响应类。
You also override the constructor where you instantiate the server class and the SugarRestServiceXML: : serve method to instantiate the response class.
为了轻松管理web页面的验证器,valid . js文件定义了Validator List构造函数(参见清单8),它创建一个包含有验证器数组的对象。
To easily manage the validators of a Web page, the valid.js file defines the ValidatorList constructor (see Listing 8), which creates an object wrapping an array of validators.
并且,由于Student控制器内的每个函数都会接触到模板视图,所以需要加载urlHelper,作为Student构造函数的一部分(参见清单14)。
And, because every function in the Student controller touches the template view, you need to load the URL Helper as part of the Student constructor (see Listing 14).
即使您不使用Static2的实例,该编译器仍然会创建这个新对象,以便不会遗漏调用该构造函数的任何副作用。
Even though you won't use the instance of Static2, the compiler will still create the new object so as not to miss any side effects of invoking the constructor.
不像我开始描述的两个定时器类,System . Threading . Timer有四个重载构造函数,就像下面这样。
Unlike the previous two timer classes that I have just covered, System.Threading.Timer has four overloaded constructors. The following shows what they look like.
而且请注意,类型检查器甚至不能检查是否每个mixin实例化都会产生有效的超级构造函数调用。
Also notice that the type checker can't even check that every instantiation of a mixin will result in valid super-constructor calls.
应用推荐