与您可能假设的情况相反,即时优化不在创建实例时或方法运行时发生,而是在定义类的作用域内发生。
Contrary to what you might assume, just-in-time does not happen when an instance is created, or methods run, but rather in the scope where the class is defined.
您可以在代码的任何地方导入包、类等,它们的作用域限于导入它们的文件。
You can import packages, classes, etc. anywhere in the code, and they are scoped to where you import them.
静态函数与静态属性一样,作用域也是类而非该类的对象实例。
Static functions, like static properties, are scoped to the class rather than to object instances of that class.
提供的第二种和第三种形式方便了对与特定类相关联的程序单元作用域参数的检索。
The second and third forms are provided to facilitate the retrieval of program-unit scoped parameters associated to a specific class.
最佳实践是使用特定于一个XDIME元素的样式类来限定样式属性的作用域,而不是让它对所有XDIME元素都全局可用。
It is a best practice to scope style properties using style classes that are specific to an XDIME element, rather than globally for all XDIME elements.
现在将一组严格的可相互引用的类称为运行时作用域,而在JPA 1.0 中称为 持久化单元。
This notion of run-time scope as a strict set of mutually referable classes is captured in JPA 1.0 as a persistence unit.
下面的示例api类演示了前面提出的模型使用这种基于作用域实现的用法。
The following sample API classes demonstrate the use of the proposed model using this scope-based implementation.
没错—ruby中的类作用域界定不是关键词,它们仅仅是sticky属性。
That's right - class scoping designations in Ruby aren't keywords, they are merely sticky attributes.
为阐述该机制的功能,Ruby语言本身使用sticky属性来声明private、protected和public类作用域修饰符。
To illustrate this mechanism's power, the Ruby language itself USES sticky attributes to declare private, protected, and public class-scope modifiers.
例如,Guiceservlet包提供了两个其他作用域:Request和Session,它们为servlet请求和servlet会话提供类的一个独特实例。
As an example, the Guice servlet package supplies two additional scopes: request and session, which serve up a unique instance of your class per servlet request and servlet session.
使用nsstack类跟踪XML名称空间声明的作用域。
Use the NSStack class to track the scope of XML namespace declarations.
根据声明这些变量的方式及位置,这三类变量有以下五种作用域。
There are five types of scope that these three types of variables can have, depending on how and where they are declared.
类的定义对名字空间玩弄了一些小技巧,为了全面了解所发生的事情,你必须了解作用域与名字空间的工作方式。
Class definitions play some neat tricks with namespaces and you need to know how scopes and namespaces work to fully understand what's going on.
定义一个类的时候,会创建一个新的命名空间,将其作为局部作用域使用——因此,所以对局部变量的赋值都引入新的命名空间。
When a class definition is entered, a new namespace is created, and used as the local scope — thus, all assignments to local variables go into this new namespace.
湖盆层序是指在湖盆地内由沉积作用形成的一类层序,表现为随湖水面的升降变化沉积体系或体系域在时空上的变化。
Lake basin sequence is formed through and sedimentation, showing the changes of the sedimentary systems or system tracts in time and space with the lake level variation.
不要:类作用域之外的暴露状态。
类似于泛型类的定义,但是在方法和构造中所定义的类型参数的作用域只能在定义它们的方法和构造中。
This is similar to declaring a generic type, but the type parameter's scope is limited to the method or constructor in which it's declared.
与方法关联的全局作用域是包含类定义的模块。 (类本身永远不会做为全局作用域使用!)
The global scope associated with a method is the module containing the class definition. (The class itself is never used as a global scope!
含有死亡结构域或类死亡结构域的蛋白可以相互或与某些蛋白作用,从而进行信号传导。
Death domains and death domain-like protein interaction motifs in many proteins may bind each other or to some adaptor proteins for signaling.
一般,得到工作于名字空间、函数、类作用域的优秀的静态断言要比多使用一个难看的宏要值得。
The general conclusion was that the good of a static assert working at namespace, function, and class scope outweighed the ugliness of a macro.
场的相互作用大多都是非定域,这种非定域性也可以看作是对场以及场的质量做了某种特殊的“类重整化”修正。
The action of them are almost all nonlocal, and this kind of nonlocal property can be understood as some kind of "renormalization" of field and the mass of field.
一个CSS模块就是一个CSS文件,这个文件包含的所有类名和动画名默认都是局部作用域的。
CSS Module is a CSS file in which all class names and animation names are scoped locally by default.
通常,包含此方法的类也会定义在这个全局作用域,在下一节我们会了解为何一个方法要引用自己的类!
Usually, the class containing the method is itself defined in this global scope, and in the next section we'll find some good reasons why a method would want to reference its own class!
想要绑定给闭包的类作用域,或者'static' 表示不改变。
The class scope to which associate the closure is to be associated, or 'static' to keep the current one.
想要绑定给闭包的类作用域,或者'static' 表示不改变。
The class scope to which associate the closure is to be associated, or 'static' to keep the current one.
应用推荐