Redigera

Dela via


EvaluationTarget class

Runtime template state.

Constructors

EvaluationTarget(string, MemoryInterface)

Creates a new instance of the EvaluationTarget class.

Properties

cachedEvaluatedChildren

The children templates that this template has evaluated currently.

scope

Scope.

templateName

Template name.

Methods

getId()

Get current instance id. If two target has the same Id, we can say they have the same template evaluation result.

Constructor Details

EvaluationTarget(string, MemoryInterface)

Creates a new instance of the EvaluationTarget class.

new EvaluationTarget(templateName: string, scope: MemoryInterface)

Parameters

templateName

string

Template name.

scope

MemoryInterface

Template scope.

Property Details

cachedEvaluatedChildren

The children templates that this template has evaluated currently.

cachedEvaluatedChildren: Map<string, unknown>

Property Value

Map<string, unknown>

scope

Scope.

scope: MemoryInterface

Property Value

MemoryInterface

templateName

Template name.

templateName: string

Property Value

string

Method Details

getId()

Get current instance id. If two target has the same Id, we can say they have the same template evaluation result.

function getId(): string

Returns

string

Id.