Class: Class
Defined in: | src/nodes/class.coffee |
Inherits: | Node |
Overview
The Node representation of a CoffeeScript class.
Direct Known Subclasses
Instance Method Summary
- .constructor(node, fileName, lineMapping, options, comment) Constructor Constructs a class.
- String .getClassName() Get the full class name
- .getDoc() Get the class doc
- String .getFileName() Get the source file name.
- String .getFullName() Alias for {::getClassName}
- Number .getLocation() Get the source line number
- Array .getMethods() Get all methods.
- String .getName() Get the class name
- String .getNamespace() Get the class namespace
- String .getParentClassName() Get the full parent class name
- Array .getVariables() Get all variables.
- Object .toJSON() Get a JSON representation of the object
Inherited Method Summary
Methods inherited from Node
Constructor Details
.constructor(node, fileName, lineMapping, options, comment)
Constructs a class.
Instance Method Details
String .getClassName()
Get the full class name
.getDoc()
Get the class doc
String .getFileName()
Get the source file name.
String .getFullName()
Alias for {::getClassName}
Number .getLocation()
Get the source line number
Array .getMethods()
Get all methods.
String .getName()
Get the class name
String .getNamespace()
Get the class namespace
String .getParentClassName()
Get the full parent class name
Array .getVariables()
Get all variables.
Object .toJSON()
Get a JSON representation of the object