跳到主要内容

loadEntries 加载属性词条到映射表中

loadEntries

类型: MethodDeclaration

定义位置: variable.ts

描述

加载属性词条到映射表中

参数 map: 属性映射表

参数 entries: 属性键值对列表

参数

参数名类型描述默认值
mapAttributeMap--
entriesArray<InitialAttribute>--

返回值

类型: void

源代码

位置: 第 256 行

public loadEntries(map: AttributeMap, entries: Array<InitialAttribute>): void {
for (const entry of entries) {
const attr = Attribute.get(entry.key)
if (attr !== undefined) {
if (attr.type === 'enum') {
const enumstr = Enum.get(entry.value as string)
if (enumstr !== undefined) {
map[attr.key] = enumstr.value
}
} else {
map[attr.key] = entry.value
}
}
}
}

文档生成时间:2025/7/7 12:07:07