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
Parameter | Type | Description |
---|---|---|
value | Primitive |
Returns
Defined in
Properties
betweenTagAndValue
betweenTagAndValue:
undefined
|string
Whitespace between the tag and the value
Defined in
representation
representation:
undefined
|string
String representation of the value
Defined in
Methods
clone()
clone():
Value
Create an identical copy of this value
Returns
Defined in
getTag()
getTag():
null
|string
Return the tag of this entry, if any
Returns
null
| string
Defined in
getValue()
getValue():
Primitive
Return the value itself
Returns
Defined in
setTag()
setTag(
tag
):void
Set the tag of this entry to the given tag
Parameters
Parameter | Type | Description |
---|---|---|
tag | undefined | null | string |
Returns
void
Defined in
setValue()
setValue(
value
):void
Change the value
Parameters
Parameter | Type | Description |
---|---|---|
value | Primitive |
Returns
void