这个问题的应对方法是使用一个用作数组容器但是没有扩展INOUT _ HOLDER的自定义类。
The workaround to this problem is to use a custom class that ACTS as a container for the array but does not extend INOUT_HOLDER.
常见的基本类型有string、integer和boolean,不过,后面将看到还能将元素映射为数组或自定义类。
Common primitive types are string, integer and Boolean; however, as you'll see a little further along in this article, you can also map an element to an array or a custom class.
Rails同时为许多其他对象提供了合理的blank ?定义:true,false,空数组及哈希表,数值类型,甚至是Object类本身。
Rails provides reasonable definitions of blank? For several other objects too: true, false, empty arrays or hashes, numeric types, and even the object class.
TypeDescription类只是个抽象基类,其中定义了处理三种类型的方法:原生类型、数组和类实例。
The TypeDescription class is just an abstract base class with methods defined for dealing with three kinds of types: primitives, arrays, and instances of classes.
当然,字符串数组不是惟一可以接受或返回的数组类型,INTEGERARRAY_HOLDER、LONGARRAY_HOLDER、和lsxsd.lss 文件中定义的类似的类也可以为其他原生数据类型提供相同的功能。
Of course, string arrays are not the only kind of arrays you can accept or return. There are also INTEGERARRAY_HOLDER, LONGARRAY_HOLDER, and similar classes defined in the lsxsd.lss
GenericTemplate实例包含类的基本类型参数信息,还有为类定义的字段的数组。
The GenericTemplate instance holds the basic type parameter information for the class, along with the array of fields defined for the class.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
还有另外的方式返回多个值,例如从要领中返回一个数组,或者建立一个特别定义的类的实例。
There are other ways of returning multiple values, such as returning an array from the method, or creating a specialized class and returning an instance of it.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
应用推荐