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