Class: Value

A value represents a primitive in KDL, i.e. a string, boolean, number, or null

Values are always tied to an entry.

Constructors

new Value()

new Value(value): Value

Parameters

ParameterTypeDescription
valuePrimitive

Returns

Value

Defined in

src/model/value.js:51

Properties

betweenTagAndValue

betweenTagAndValue: undefined | string

Whitespace between the tag and the value

Defined in

src/model/value.js:46


representation

representation: undefined | string

String representation of the value

Defined in

src/model/value.js:31

Methods

clone()

clone(): Value

Create an identical copy of this value

Returns

Value

Defined in

src/model/value.js:67


getTag()

getTag(): null | string

Return the tag of this entry, if any

Returns

null | string

Defined in

src/model/value.js:101


getValue()

getValue(): Primitive

Return the value itself

Returns

Primitive

Defined in

src/model/value.js:80


setTag()

setTag(tag): void

Set the tag of this entry to the given tag

Parameters

ParameterTypeDescription
tagundefined | null | string

Returns

void

Defined in

src/model/value.js:110


setValue()

setValue(value): void

Change the value

Parameters

ParameterTypeDescription
valuePrimitive

Returns

void

Defined in

src/model/value.js:89