Class: Entry
An entry represents either an argument or a property to a node
Constructors
new Entry()
new Entry(
value
,name
):Entry
Parameters
• value: Value
• name: null
| Identifier
Returns
Defined in
Properties
betweenTagAndValue
betweenTagAndValue:
undefined
|string
Whitespace between the tag and the value
Defined in
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
tag
tag:
null
|Tag
=null
Tag attached to this value, if any
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
Defined in
getValue()
getValue():
null
|string
|number
|boolean
Return the value of this entry
Returns
null
| string
| number
| boolean
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
• name: undefined
| null
| string
Returns
void
Defined in
setTag()
setTag(
tag
):void
Set the tag of this entry to the given tag
Parameters
• tag: undefined
| null
| string
Returns
void
Defined in
setValue()
setValue(
value
):void
Set the name of this entry to the given name
Parameters
• value: null
| string
| number
| boolean
Returns
void
Defined in
createArgument()
static
createArgument(value
):Entry
Create a new argument entry with the given value
Parameters
• value: null
| string
| number
| boolean
Returns
Defined in
createProperty()
static
createProperty(name
,value
):Entry
Create a new property entry for the given key and value
Parameters
• name: string
• value: null
| string
| number
| boolean