Weak and soft references both extend the abstract reference class (as do phantom references, which will be discussed in a future article).
弱引用和软引用都扩展了抽象的reference类(虚引用(phantomreferences)也一样,这将在以后的文章中介绍)。
Clear: Setting the reference object's referent field to null and declaring the object in the heap that the reference class referred to as finalizable.
清除:将引用对象的referent域设置为 null ,并将引用类在堆中引用的对象声明为 可结束的。
However, when it occurs within the declaration portion of a managed reference class type, it is treated as a keyword within the context of that class declaration.
但是,当它出现在托管引用类类型的声明部分中时,将其视为该类声明的上下文中的关键字。
When you use generics, you supply that added information as part of the source code, and the compiler incorporates the added reference type information directly into your binary class files.
在使用泛型时,可以提供附加信息作为源代码的一部分,然后编译器会把附加的引用类型信息直接整合到二进制的类文件中。
SCA deployment logic and the binding implementation will introspect the reference interface class to determine whether it is local or remote.
SCA部署逻辑和绑定实现将对引用接口类进行自检,以确定是本地接口还是远程接口。
If you try to print or view a class file as text, you'll generally see many strings of this type, each a reference to some class.
如果您尝试将一个类文件作为文本输出或查看,那么通常会看到上述形式的多个字符串,每个字符串都是对某个类的引用。
In the change that follows, it stores a reference to the view part instance in a class variable.
在随后进行更改时,将视图部件实例的引用存储到一个类变量中。
AOT code must therefore be generated with every static, field, class, and method reference unresolved.
AOT代码因此必须在没有解析每个静态、字段、类和方法引用的情况下生成。
Finally, add a reference to the class library assembly from within any VSTO project and voila.
最后,在其他VS TO项目添加对这个类库项目(或者生成的程序集)的引用。
Each class loader also keeps a reference to a parent class loader, defining a tree of class loaders with the bootstrap loader at the root.
每个类装入器还保留对父类装入器的引用,这样就定义了类装入器树,树根为引导程序装入器。
If it is not a static class, you first need to declare the name of the field that will hold the reference to the parent class of the nested class before you get to the preview box.
如果它不是一个静态类,那么需要首先声明保存有对此嵌套类的父类的引用的那个字段的名称,之后才能看到这个预览框。
Metadata provides a helpful way to indicate if methods are dependent on other methods, if they are incomplete, if a certain class must reference another class, and so on.
元数据提供了一种有用的方法来指明方法是否取决于其他方法,它们是否完整,特定类是否必须引用其他类,等等。
Afferent coupling represents the count of how many other classes reference the current class, via either fields or parameters.
而传入耦合则表示其他类通过字段或参数引用当前类的次数。
Other features include class invariants, non-nullable reference types, and enhanced static analysis capabilities.
其他的特性还包括类不变量、非空引用类型和加强的静态分析功能。
Having created this class, build the UI ZUL file, and then reference the associated controller.
创建这个类之后,构建UIZUL文件,然后引用相关联的控制器。
As with explicit class loading, if the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
与显式类装入一样,如果类已经装入了,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
By simply copying the array reference instead of cloning it, both the message and the class that produces it hold a reference to the master copy of the previous bids array.
通过简单地复制而不是克隆数组引用,消息和产生消息的类都保存了前一投标数组的主副本的一个引用。
The module-specific class loader for module 1 finds a reference to another module (the common objects library) and loads that module.
模块1的特定于模块的类加载器找到对另一个模块(公共对象库)的引用并加载那个模块。
Obtains the reference for the table ID, value object class, session attribute for data rows, and session attribute for combo box if one exists.
取得对表格ID、值对象类、数据行的会话属性和组合框(如果有的话)的会话属性的引用。
If the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
如果类已经装入,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
The single instance of mentioned class holds the reference for drop-down values of that class.
上述类的单独一个实例具有相应类的下拉列表值的引用。
Following the constant pool are several items that reference constant pool entries for the class itself, its super class, and interfaces.
常量池后面还有几项,它们引用了类本身、其超类以及接口的常量池项。
At some point, class B is created, and class a adds a reference to this newly created class.
在某个时候,类b被创建,类A添加对这个新创建的类的一个引用。
This feature is richer than function Pointers because it allows the inner class instance to retain a reference to the environment in which it was created.
该特性比函数指针更强大,因为它允许内部类实例保持对创建它的环境的引用。
OK, so you can't copy a reference to a type whose class is totally unknown at compile time.
因此,不能复制在编译时根本不知道是什么类的类型引用。
One item in this code snippet that should raise some eyebrows is the reference to the ServiceLocatorManager class.
代码片断中有一项应该增加一些内容,这是对servicelocatormanager类的引用。
Spring comes with a variable resolver implementation class that lets you reference Spring managed beans in JSF expressions.
Spring附带了一个变量解析器实现类,允许您在JSF表达式中引用 Spring托管Bean。
The getSource() method on the context should return a reference to a UML class, since we specified in the extension point that we were interested only in Class transforms.
环境中的getSource()方法应该返回对UML类的引用,因为我们在扩展点中指定我们只对Classtransforms感兴趣。
Next up in Listing 2 is the @IdClass annotation, which defines the composite key class reference.
清单2中的下一个注释是 @IdClass,它定义组合键类引用。
Most caches are implemented using the Singleton pattern involving a static reference to a top level cache class as shown in this example.
使用Singleton模式实现的大多数缓存都涉及本例所示的对顶级cache类的静态引用。
应用推荐