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 node.

Parameters:

  • (Class) entityThe property's Class
  • (Object) nodeThe property node (a Object)
  • lineMappingAn object mapping the actual position of a member to its Biscotto one
  • (Object) optionsThe parser options (a Object)
  • (String) nameThe filename (a String)
  • (Object) commentThe comment node (a Object)

Instance Method Details

Number ::getLocation() Source

Get the source line number

Returns:

  • (Number) — Returns a Number.

String ::getSignature() Source

Get the property signature.

Returns:

  • (String) — Returns the signature (a String)

Object ::toJSON() Source

Get a JSON representation of the object

Returns:

  • (Object) — Returns the JSON object (a Object)