Class: Property

Defined in: src/nodes/property.coffee
Inherits: Node

Overview

A class property that is defined by custom property set/get methods.

Examples:

Instance Method Summary

Inherited Method Summary

Methods inherited from Node

.findAncestor

Constructor Details

.constructor(entity, node, lineMapping, options, name, comment) Source

Construct a new property

Parameters:

  • entityThe methods class (a [Class])
  • nodeThe class node (a [Object])
  • optionsThe parser options (a [Object])
  • nameThe name of the property (a [String])
  • commentThe comment node (a [Object])

Instance Method Details

Number .getLocation() Source

Get the source line number

Returns:

  • (Number) — Returns a {Number}

.getSignature() Source

Get the property signature.

Returns:

  • Returns the signature (a [String])

.toJSON() Source

Get a JSON representation of the object

Returns:

  • Returns the JSON object (a [Object])