Class: Value
Defined in: src/model/value.js:13
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
Defined in: src/model/value.js:51
Parameters
| Parameter | Type | Description |
|---|---|---|
value | Primitive |
Returns
Properties
betweenTagAndValue
betweenTagAndValue:
undefined|string
Defined in: src/model/value.js:46
Whitespace between the tag and the value
representation
representation:
undefined|string
Defined in: src/model/value.js:31
String representation of the value
Methods
clone()
clone():
Value
Defined in: src/model/value.js:67
Create an identical copy of this value
Returns
getTag()
getTag():
null|string
Defined in: src/model/value.js:101
Return the tag of this entry, if any
Returns
null | string
getValue()
getValue():
Primitive
Defined in: src/model/value.js:80
Return the value itself
Returns
setTag()
setTag(
tag):void
Defined in: src/model/value.js:110
Set the tag of this entry to the given tag
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | undefined | null | string |
Returns
void
setValue()
setValue(
value):void
Defined in: src/model/value.js:89
Change the value
Parameters
| Parameter | Type | Description |
|---|---|---|
value | Primitive |
Returns
void