<% if(this.jsdoc.constructors && this.jsdoc.constructors.length) { %>
Constructors
<%
_(this.jsdoc.constructors).each(function(method) { %>
<%= self.printMethod(method) %>
-
<% if(method.params && method.params.length) { %>
Parameters:
<% _(method.params).each(function(param){ %>
-
<%= param.name %>
<%= self.printTypeAsString(param.type) %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% if(this.properties && _(this.properties).keys().length) { %>
Properties
<%
var self = this;
_(this.properties).each(function(p) {
var inherited = !JsDocMaker.classOwnsProperty(self.jsdoc, p);
//TODO: perform this in the view or plugin
var inheritedByName = p.absoluteName.substring(0, p.absoluteName.lastIndexOf('.'));
var inheritedBy = self.application.data.classes[inheritedByName] || {};
%>
-
<%= p.name %>
<%= self.printTypeAsString(p.type) %>
<%= !inherited ? '' : ('(inherited by ' + self.printTypeAsString(inheritedBy) + ')') %>
<% if (self.options.text) {%> <%= self.makePartialText(p)%><% }%>
<% }); %>
<% } %>
<% if(this.attributes && _(this.attributes).keys().length) { %>
attributes
<%
var self = this;
_(this.attributes).each(function(p) {
var inherited = !JsDocMaker.classOwnsProperty(self.jsdoc, p);
//TODO: perform this in the view or plugin
var inheritedByName = p.absoluteName.substring(0, p.absoluteName.lastIndexOf('.'));
var inheritedBy = self.application.data.classes[inheritedByName] || {};
%>
-
<%= p.name %>
<%= self.printTypeAsString(p.type) %>
<%= !inherited ? '' : ('(inherited by ' + self.printTypeAsString(inheritedBy) + ')') %>
<% if (self.options.text) {%> <%= self.makePartialText(p)%><% }%>
<% }); %>
<% } %>
<% if(this.events && _(this.events).keys().length) {%>
Events
<%
var self = this;
_(this.events).each(function(p) {
var inherited = !JsDocMaker.classOwnsProperty(self.jsdoc, p);
//TODO: perform this in the view or plugin
var inheritedByName = p.absoluteName.substring(0, p.absoluteName.lastIndexOf('.'));
var inheritedBy = self.application.data.classes[inheritedByName] || {};
%>
-
<%= p.name %>
<%= self.printTypeAsString(p.type) %>
<%= !inherited ? '' : ('(inherited by ' + self.printTypeAsString(inheritedBy) + ')') %>
<% if (self.options.text) {%> <%= self.makePartialText(p)%><% }%>
<% }); %>
<% } %>
<% if(this.methods && _(this.methods).keys().length) { %>
Methods
<%
_(this.methods).each(function(method) {
var inherited = !JsDocMaker.classOwnsProperty(self.jsdoc, method);
var inheritedByName = method.absoluteName.substring(0, method.absoluteName.lastIndexOf('.'));
var inheritedBy = self.application.data.classes[inheritedByName] || {};
%>
-
<%= self.makeLink(method, true)%>
(
<% if(method.params && method.params.length) { %>
<%
for(var paramIndex = 0; paramIndex < method.params.length; paramIndex++) {
var param = method.params[paramIndex];
%>
-
<%= self.printTypeAsString(param.type) %>
<%= param.name %>
<% if(paramIndex < method.params.length-1) { %>
,
<% } %>
<% } %>
<% } %>
) :
<% if(method.returns && (method.returns.type || method.returns.text)) {%>
<%= self.printTypeAsString(method.returns.type) %>
<% } else {%>
void
<% } %>
<%= !inherited ? '' : ('(inherited by ' + self.printTypeAsString(inheritedBy) + ')') %>
<% if (self.options.text) {%> <%= self.makePartialText(method)%><% }%>
<% }); %>
<% } %>