EvaluationTarget class

运行时模板状态。

构造函数

EvaluationTarget(string, MemoryInterface)

创建 EvaluationTarget 类的新实例。

属性

cachedEvaluatedChildren

此模板当前已评估的子模板。

scope

作用域。

templateName

模板名称。

方法

getId()

获取当前实例 ID。如果两个目标具有相同的 ID,我们可以说它们具有相同的模板评估结果。

构造函数详细信息

EvaluationTarget(string, MemoryInterface)

创建 EvaluationTarget 类的新实例。

new EvaluationTarget(templateName: string, scope: MemoryInterface)

参数

templateName

string

模板名称。

scope

MemoryInterface

模板范围。

属性详细信息

cachedEvaluatedChildren

此模板当前已评估的子模板。

cachedEvaluatedChildren: Map<string, unknown>

属性值

Map<string, unknown>

scope

作用域。

scope: MemoryInterface

属性值

MemoryInterface

templateName

模板名称。

templateName: string

属性值

string

方法详细信息

getId()

获取当前实例 ID。如果两个目标具有相同的 ID,我们可以说它们具有相同的模板评估结果。

function getId(): string

返回

string

Id.