java.lang.Object
cn.wjybxx.dsoncodec.DynamicTypeMetaRegistry
- 所有已实现的接口:
TypeMetaRegistry
为更好的支持泛型,我们根据原型类型动态创建TypeMeta
- 作者:
- wjybxx date - 2024/5/16
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
DynamicTypeMetaRegistry
-
-
方法详细资料
-
ofClass
从接口复制的说明:TypeMetaRegistry通过类型信息查询类型元数据。 由于java在运行会擦除泛型信息,因此当声明类型和实际类型不一致时,我们只能根据运行时类型的原始类型查询。 所以java生成的文本,C#可能无法解析(无法构造Type);但C#生成的文本,Java可以解析。- 指定者:
ofClass在接口中TypeMetaRegistry- 参数:
clazz- 运行时类型
-
ofType
从接口复制的说明:TypeMetaRegistry通过完整的类型信息查询类型元数据- 指定者:
ofType在接口中TypeMetaRegistry
-
ofName
从接口复制的说明:TypeMetaRegistry通过字符串名字找到类型信息- 指定者:
ofName在接口中TypeMetaRegistry
-
export
从接口复制的说明:TypeMetaRegistry该方法的主要目的在于聚合多个Registry为单个Registry,以提高查询效率- 指定者:
export在接口中TypeMetaRegistry
-