Class: Variable
Defined in: | src/nodes/variable.coffee |
Inherits: | Node |
Overview
A CoffeeScript variable
Instance Method Summary
- .constructor(entity, node, smc, options, classType = false, comment = null) Constructor Construct a variable
- .getDoc() Get the class doc
- Number .getLocation() Get the source line number
- .getName() Get the variable name
-
.getType()
Get the variable type, either
class
orconstant
- .getValue() Get the variable value.
- .isConstant() Test if the given value should be treated ad constant.
- .toJSON() Get a JSON representation of the object
Inherited Method Summary
Methods inherited from Node
Constructor Details
.constructor(entity, node, smc, options, classType = false, comment = null) Source
Construct a variable
Instance Method Details
.getDoc() Source
Get the class doc
Number .getLocation() Source
Get the source line number
.getName() Source
Get the variable name
.getType() Source
Get the variable type, either class
or constant
.getValue() Source
Get the variable value.
.isConstant() Source
Test if the given value should be treated ad constant.
.toJSON() Source
Get a JSON representation of the object