Class Property
Defined in: | src/nodes/property.coffee |
Inherits: | Node |
Overview
Public: A class property that is defined by custom property set/get methods.
Examples
class Test
get = (props) => @::__defineGetter__ name, getter for name, getter of props
set = (props) => @::__defineSetter__ name, setter for name, setter of props
get name: -> @name
set name: (@name) ->
Examples:
class Test
get = (props) => @::__defineGetter__ name, getter for name, getter of props
set = (props) => @::__defineSetter__ name, setter for name, setter of props
get name: -> @name
set name: (@name) ->
Instance Method Summary
- ::constructor(entity, node, lineMapping, options, name, comment) Construct a new property node.
- Number ::getLocation() Get the source line number
- String ::getSignature() Get the property signature.
- Object ::toJSON() Get a JSON representation of the object
Inherited Method Summary
Methods inherited from Node
Constructor Details
::constructor(entity, node, lineMapping, options, name, comment) Source