VmClass<T> constructor

VmClass<T>({
  1. required String identifier,
  2. bool isExternal = true,
  3. List<String> superclassNames = const [],
  4. Map<String, VmProxy<T>>? externalProxyMap,
  5. Map<String, VmProxy<T>>? internalProxyMap,
  6. Map<String, VmValue>? internalStaticPropertyMap,
  7. List<Map<VmKeys, dynamic>>? internalInstanceFieldTree,
  8. 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)); //给类静态成员绑定作用域
}