Class VirtualMethod
Defined in: | src/nodes/virtual_method.coffee |
Inherits: | Node |
Overview
Public: The Node representation of a CoffeeScript virtual method that has
been declared by the `@method` tag.
Instance Method Summary
- ::constructor(entity, doc, options) Construct a virtual method node.
- String ::getCoffeeScriptSource() Get the method source in CoffeeScript
- Doc ::getDoc() Get the class doc
- String ::getJavaScriptSource() Get the method source in JavaScript
- String ::getName() Get the method name
- ::getParameters() Get the method parameters
- String ::getShortSignature() Get the short method signature.
- String ::getSignature() Get the full method signature.
-
String ::getType()
Get the method type, either
class
,instance
ormixin
. - Object ::toJSON() Get a JSON representation of the object
Inherited Method Summary
Methods inherited from Node
Constructor Details
Instance Method Details
String ::getCoffeeScriptSource() Source
Public: Get the method source in CoffeeScript
Returns the CoffeeScript source (a String).
String ::getJavaScriptSource() Source
Public: Get the method source in JavaScript
Returns the JavaScript source (a String).
::getParameters() Source
Public: Get the method parameters
params - The method parameters
String ::getShortSignature() Source
Public: Get the short method signature.
Returns the short signature (a String).
String ::getSignature() Source
Public: Get the full method signature.
Returns the signature (a String).