在此之后,我们还将简单讨论一下类的垃圾回收;如果你对此已非常熟悉,则可以跳过这部分内容。
Once we've covered that, we'll briefly touch on garbage collection of classes; so if are comfortable with that, you can skip ahead.
在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。
Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.
这些规则与应用程序的Routingpolicy选项卡下的工作类关联。
These rules are those associated with work classes under the Routing policy tab of an application.
但有时您可能希望在载入类之前对其加以修改,或者希望在不载入类的情况下研究数据结构。
However, sometimes you may want to modify classes before loading them, or you might want to just investigate data structures without loading the classes at all.
下面的例子演示了优化概要文件在3类情况下的使用,即常规优化、查询重写和计划优化。
The following examples are demonstrative of optimization profiles usage in 3 categories, namely, general optimization, query rewrite, and plan optimization.
要想在不将类载入JVM的情况下访问泛型信息,您需要一种读取存储在二进制类表示内的泛型信息的方法。
To access generics information without loading classes into the JVM, you need a way of reading the generics information stored inside the binary class representation.
尝试一下非小说类和技术类书籍:这些不仅能迅速教会你说话的新方式,还能教会你思考的新方式。
Try nonfiction and technical books: these will rapidly teach you not only new ways to talk, but new ways to think.
即使是同一门类下的乳酪,其生产原料所用的乳品也是五花八门,各不相同,味道亦是千差万别。不过,有了本文手把手式的指导,你就再也不会在乳酪世界里晕头转向了。
Within each category, individual cheeses made from different types of milk will taste wildly different, but you'll always know your way around cheese with this handy guide.
在被人视为过时的一类科研机构的帮助下,动物园打了一个漂亮的翻身仗。
A nice twist, then, that it is helped by a type of scientific institution that some thought obsolete.
默认情况下,类通常是可串行化的。
在某些情况下,类中的大多数方法需要携带注释(如版本4中所示)。
In certain situations most of the methods in a class need to carry an annotation (such as the one in Version 4).
在很多情况下,类的相互作用分析足以帮助发现问题,但是您偶尔可能需要进行更深入的对象级别的分析。
In most situations, class interaction analysis (available with the ARM agent) is enough to help find problems, but occasionally you will need to do further profiling at the object level.
他们转向如电视、电脑、互联网、录像带、光盘和音频设备一类的电子媒体,按下按钮就可自娱自乐。
They turn to electronic media such as television, computers, the Internet, videos, CDs and audio equipment, which can provide them with instant self-entertainment at the push of a button.
在我结束对类型大小调整的讨论之前,我还希望提一下基类。
Before I conclude the discussion of the sizing of types, I also want to mention base classes.
默认情况下,顶级类将生成一个与类名相同名称的文件。
By default, a top-level class is generated into a file with the same name as itself.
有几种方法可以做到在不重新启动应用的情况下更新类,但每种方法都有其问题。
There are several ways to address the problem of updating changed classes within an application without restarting, but all come with different problems.
默认情况下,基类LoggingStopWatch将输出打印到System. err流中。
By default, the base LoggingStopWatch class prints output to the System.err stream.
点一下这个类的名字,你将发现在这个对话框的右边会出现上下箭头。
Click the name of the class and you'll see that up and down arrows appear on the right side of the dialog box.
然而,在业务接口模式下,实现类还将需要实现新的业务接口(在这种情况下,是ILibrary接口)。
Under the business interface pattern, however, the implementation classes will also need to implement your new business interface (in this case, the ILibrary interface).
除了尚未实现某些程序库以外,这两种方式的主要差别在于静态模式下的类装载并不完全符合JVM行为。
Aside from some libraries that are not yet implemented, the major difference is that class loading in static mode will not exactly match the JVM behavior.
让我们检查一下测试类HumanTaskExampleTest和HumanTaskExample - Data目录中的数据文件。
Let's examine the test class HumanTaskExampleTest and the data files in the HumanTaskExample-Data directory.
我们知道所有的对象搜索方法默认条件下都是在辅助类中执行。
We know that all the object finding methods are implemented in the helper classes by default.
在某些情况下,可以根据类所在的元素进一步限制基于类的规则。
In some cases, you might find it useful to further restrict a class-based rule based on the element to which the class is attached.
通常情况下,所有类都是由系统ClassLoader装载的;可是有些系统使用不同的ClassLoader将其运行时空间进行了划分。
Typically, all classes are loaded from the system ClassLoader; however, some systems partition their runtime space with different ClassLoaders.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
This header file should ideally contain all the class definitions, member functions, and variables.
默认情况下,这个名称空间将会用于类及其属性。
By default, this namespace will be used for the class and its properties.
这样,日后就可以在不改变库代码的情况下修改具体的类,因为库只依赖接口中创建的定义。
In this way, you can change the concrete class later without changing the library code, which relies solely on the definition you created in the interface.
回想一下之前关于使用接口还是具体类的讨论。
Recall the earlier discussion on using interfaces versus concrete classes.
在深入到AST定义之前,让我先简要概述一下什么是case类。
Before getting too deep into the AST definition, let me provide a quick overview of what case classes are.
在深入到AST定义之前,让我先简要概述一下什么是case类。
Before getting too deep into the AST definition, let me provide a quick overview of what case classes are.
应用推荐