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

Entry

Defined in

src/model/entry.js:95

Properties

betweenTagAndValue

betweenTagAndValue: undefined | string

Whitespace between the tag and the value

Defined in

src/model/entry.js:89


equals

equals: undefined | string

Equals sign

Defined in

src/model/entry.js:82


leading

leading: undefined | string

Leading whitespace

Defined in

src/model/entry.js:68


name

name: null | Identifier

The name of this entry if it's a property, or null if it's an argument

Defined in

src/model/entry.js:47


tag

tag: null | Tag = null

Tag attached to this value, if any

Defined in

src/model/entry.js:61


trailing

trailing: undefined | string

Trailing whitespace

Defined in

src/model/entry.js:75


value

value: Value

The value of this entry

Defined in

src/model/entry.js:54

Methods

clone()

clone(): Entry

Create an identical copy of this entry

Returns

Entry

Defined in

src/model/entry.js:105


getName()

getName(): null | string

Return the name of this entry, if any

Returns

null | string

Defined in

src/model/entry.js:140


getTag()

getTag(): null | string

Return the tag of this entry, if any

Returns

null | string

Defined in

src/model/entry.js:122


getValue()

getValue(): null | string | number | boolean

Return the value of this entry

Returns

null | string | number | boolean

Defined in

src/model/entry.js:158


isArgument()

isArgument(): boolean

Return whether this entry is an argument

Returns

boolean

Defined in

src/model/entry.js:176


isProperty()

isProperty(): boolean

Return whether this entry is a named property

Returns

boolean

Defined in

src/model/entry.js:185


setName()

setName(name): void

Set the name of this entry to the given name

Parameters

name: undefined | null | string

Returns

void

Defined in

src/model/entry.js:149


setTag()

setTag(tag): void

Set the tag of this entry to the given tag

Parameters

tag: undefined | null | string

Returns

void

Defined in

src/model/entry.js:131


setValue()

setValue(value): void

Set the name of this entry to the given name

Parameters

value: null | string | number | boolean

Returns

void

Defined in

src/model/entry.js:167


createArgument()

static createArgument(value): Entry

Create a new argument entry with the given value

Parameters

value: null | string | number | boolean

Returns

Entry

Defined in

src/model/entry.js:15


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

Returns

Entry

Defined in

src/model/entry.js:26