VmClass<T> constructor
VmClass<T> ({
- required String identifier,
- bool isExternal = true,
- List<
String> superclassNames = const [], - Map<
String, VmProxy< ? externalProxyMap,T> > - Map<
String, VmProxy< ? internalProxyMap,T> > - Map<
String, VmValue> ? internalStaticPropertyMap, - List<
Map< ? internalInstanceFieldTree,VmKeys, dynamic> > - VmClass? internalSuperclass,
Implementation
VmClass({
required super.identifier,
this.isExternal = true,
this.superclassNames = const [],
this.externalProxyMap,
this.internalProxyMap,
this.internalStaticPropertyMap,
this.internalInstanceFieldTree,
VmClass? internalSuperclass,
}) : _internalSuperclass = isExternal ? null : internalSuperclass {
externalProxyMap?.forEach((key, value) => value.bindVmClass(this)); //给代理集合绑定包装类型
internalProxyMap?.forEach((key, value) => value.bindVmClass(this)); //给代理集合绑定包装类型
internalStaticPropertyMap?.forEach((key, value) => value.bindStaticScope(this)); //给类静态成员绑定作用域
}