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) Source
Construct a variable node.
Instance Method Details
::getDoc() Source
Get the class doc
Number ::getLocation() Source
Get the source line number
String ::getName() Source
Get the variable name
String ::getType() Source
Get the variable type, either class
or constant
String ::getValue() Source
Get the variable value.
Boolean ::isConstant() Source
Test if the given value should be treated ad constant.
Object ::toJSON() Source
Get a JSON representation of the object