Class: Entry
An entry represents either an argument or a property to a node
Constructors
new Entry()
new Entry(
value
,name
):Entry
Parameters
Parameter | Type | Description |
---|---|---|
value | Value | |
name | null | Identifier |
Returns
Defined in
Properties
equals
equals:
undefined
|string
Equals sign
Defined in
leading
leading:
undefined
|string
Leading whitespace
Defined in
name
name:
null
|Identifier
The name of this entry if it's a property, or null if it's an argument
Defined in
trailing
trailing:
undefined
|string
Trailing whitespace
Defined in
value
value:
Value
The value of this entry
Defined in
Methods
clone()
clone():
Entry
Create an identical copy of this entry
Returns
Defined in
getName()
getName():
null
|string
Return the name of this entry, if any
Returns
null
| string
Defined in
getTag()
getTag():
null
|string
Return the tag of this entry, if any
Returns
null
| string
See
Defined in
getValue()
getValue():
Primitive
Return the value of this entry
Returns
Defined in
isArgument()
isArgument():
boolean
Return whether this entry is an argument
Returns
boolean
Defined in
isProperty()
isProperty():
boolean
Return whether this entry is a named property
Returns
boolean
Defined in
setName()
setName(
name
):void
Set the name of this entry to the given name
Parameters
Parameter | Type | Description |
---|---|---|
name | undefined | null | string |
Returns
void
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
See
Defined in
setValue()
setValue(
value
):void
Set the name of this entry to the given name
Parameters
Parameter | Type | Description |
---|---|---|
value | Primitive |
Returns
void
Defined in
createArgument()
static
createArgument(value
):Entry
Create a new argument entry with the given value
Parameters
Parameter | Type | Description |
---|---|---|
value | Primitive |
Returns
Defined in
createProperty()
static
createProperty(name
,value
):Entry
Create a new property entry for the given key and value
Parameters
Parameter | Type | Description |
---|---|---|
name | string | |
value | Primitive |