You might combine these techniques into a class wrapper for convenience, using some magic methods.
为了方便起见,可以将这些技术组合成一个类包装器。
For example, the marshaler determines that the class wrapper should be used to wrap the interface that was passed into managed code.
例如,封送拆收器确定应当使用类包装来包装传递到托管代码中的接口。
By adding a wrapper class, you have broken subtype polymorphism.
通过添加包装程序类,您打破了子类型的多态性。
Like the wrapper class, this technique fulfills your requirements, but it comes with its own disadvantages.
像包装程序类一样,虽然此技术满足了您的需要,但是有其自己的缺点。
Listing 2 shows the code for the database wrapper class.
清单2显示了这个数据库封装类的代码。
This class provides a wrapper over a text file that lists each line of a file as it is iterated over.
以下这个类提供了文本文件的包装器,在遍历它的时候,它将列出文件中的每行内容。
This wrapper class drops its connection to the DataObject when it goes out of scope, or gets nulled.
此包装类会在超出范围或设置为空时丢弃其到数据对象的连接。
If you need another data type such as integer, floating point, or Boolean value, you will have to parse the string using the appropriate wrapper class.
如果需要其他的数据类型,比如说整数、浮点数或者布尔值,必须使用相应的包装器类来解析字符串。
The wrapper class also handles XSL transformations, namespaces and schema validation if needed.
包装器类还在必要时处理xsl转换、名称空间和模式检验。
A single driver script connects the front end to the back end, and another wrapper class on the front end gives you access to all the tables you need.
单个驱动程序脚本连接前端和后端,前端上的另一个包装类向您提供对所有所需表的访问权。
Listing 11 is a wrapper class that can generate a complete XML encrypted file.
清单11是一个能够生成完整X ML加密文件的封装器类。
To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method.
为了在递归方法中传递,匿名类应该扩展方法已知的包装器类型。
Listing 2 and Listing 3 show a simple PHP application with a class, methods, and some wrapper code.
清单2和清单3是一个简单的PHP应用程序,其中包含一个类、方法和一些包装器代码。
The wrapper class would take care of formatting the arguments into an XML string resembling the code above.
该包装类将参数格式化为类似上面代码的XML字符串。
For example, the lifeline of a wrapper class should probably be right next to the lifeline of the wrapped class.
例如,包裹类的生命线可能会靠近包裹类的生命线。
Primitive float type and wrapper class float have different comparison behavior.
基本浮点类型和包装类浮点有不同的比较行为。
Any access to the data repository is made through a thread-safe wrapper class named RepositoryWrapper.
对数据存储库的所有访问都是通过一个名为RepositoryWrapper的线程安全类实现的。
Listing 9 shows the wrapper class, which is named RepositoryWrapper in the sample application.
清单9给出了这个包装器类,在示例应用程序中称为RepositoryWrapper。
Autoboxing: Rather than generating calls to the valueOf method in the wrapper class, the compiler generates calls to the constructor instead.
自动装箱:编译器不生成对包装器类的value Of方法的调用,而是生成对构造函数的调用。
This is a very simple wrapper around the add method on the FeedList class.
这是一个非常简单的包装器,打包了feedlist类的add方法。
So ButterflyFile provides a standard wrapper class around a file.
因此,ButterflyFile提供了一个针对文件的标准封装类。
To make matters worse, the rules for comparing NaN and -0 are different between the primitive float type and the wrapper class float.
使事情更糟的是,在基本float类型和包装类float之间,用于比较NaN和- 0的规则是不同的。
A DataObjectPtr is really a wrapper class holding a pointer to the DataObject.
DataObjectPtr实际上是包含指向数据对象的指针的包装类。
In this shot the large frame in the upper right shows the disassembly of the timing wrapper method added to the StringBuilder class.
在这个快照中,右上角的大帧显示了添加到stringbuilder类中的计时包装器方法的分解。
A wrapper class hides the calls to the low-level Win32 functions and provides a comfortable generic interface.
包装类隐藏了对底层Win32函数的调用并提供了一种舒适的通用接口。
Now you can create the appropriate Web services artifacts based on this wrapper class, which internally USES the existing collection-based implementation.
现在,我们可以基于这个包装器类来创建适当的Web服务构件了,它在内部使用现有的基于集合的实现。
Enhance the bean definition in the Spring configuration file to reflect the wrapper class.
加强Spring配置文件中的bean的定义,以反射包装类。
The Ajax requests are fielded by a PHP driver page, which makes sure that the request is valid and then passes it onto a database wrapper class that handles the request.
Ajax请求受到一个PHP驱动程序页的保护,该页先确保请求有效,然后将其传递到一个处理该请求的数据库包装类。
We created a wrapper class, called HeaderCell to distinguish a header cell form a content cell.
我们创建一个称为HeaderCell的包装器类,用于区分标题栏单元格和内容单元格。
Wrap the IoC bean in a wrapper class, which can communicate with the Axis2 framework.
将IoCbean打包在一个能够与Axis2架构通信的包装类中。
应用推荐