comparison src/main/resources/org/ssdt_ohio/gradle/userdoc/templates/classDocName.html @ 20:e8e14d5d6be2

improve formatting. exclude @transient and version
author smith@nwoca.org
date Fri, 08 Jan 2016 20:16:44 +0000
parents 3741247de37a
children e2d02e8742be
comparison
equal deleted inserted replaced
19:c3527be50f56 20:e8e14d5d6be2
169 169
170 <!-- ======== START OF CLASS DATA ======== --> 170 <!-- ======== START OF CLASS DATA ======== -->
171 <div class="header"> 171 <div class="header">
172 <% 172 <%
173 def pkg = classDoc.containingPackage().nameWithDots() 173 def pkg = classDoc.containingPackage().nameWithDots()
174 String classDesc = "${classDoc.isGroovy() ? "[Groovy]" : "[Java]"} ${classDoc.typeDescription} ${org.codehaus.groovy.tools.groovydoc.SimpleGroovyClassDoc.encodeAngleBrackets(classDoc.getNameWithTypeArgs())}" 174 String classDesc = "${classDoc.typeDescription} ${org.codehaus.groovy.tools.groovydoc.SimpleGroovyClassDoc.encodeAngleBrackets(classDoc.getNameWithTypeArgs())}"
175 if (pkg != "DefaultPackage") { 175 if (pkg != "DefaultPackage") {
176 %> 176 %>
177 <div class="subTitle">Package: <strong>${pkg}</strong></div> 177 <div class="subTitle">Package: <strong>${pkg}</strong></div>
178 <%}%> 178 <%}%>
179 <h2 title="${classDesc}" class="title">${classDesc}</h2> 179 <h2 title="${classDesc}" class="title">${classDesc}</h2>
563 <h3>Field Detail</h3> 563 <h3>Field Detail</h3>
564 <% visibleFields.each { field -> %> 564 <% visibleFields.each { field -> %>
565 <a name="${field.name()}"><!-- --></a> 565 <a name="${field.name()}"><!-- --></a>
566 <ul class="blockListLast"> 566 <ul class="blockListLast">
567 <li class="blockList"> 567 <li class="blockList">
568 <h4>${annotations(field, '\n') + modifiersWithIgnore(field, false) + linkable(field.type())} <strong>${field.name()}</strong></h4> 568 <pre>${annotations(field, '\n')}</pre> ${modifiersWithIgnore(field, false) + linkable(field.type())} <h4>${field.name()}</h4>
569 <p>${field.commentText()}</p> 569 <p>${field.commentText()}</p>
570 </li> 570 </li>
571 </ul> 571 </ul>
572 <% } %> 572 <% } %>
573 </li> 573 </li>
583 <h3>Property Detail</h3> 583 <h3>Property Detail</h3>
584 <% visibleProperties.each { prop -> %> 584 <% visibleProperties.each { prop -> %>
585 <a name="${prop.name()}"><!-- --></a> 585 <a name="${prop.name()}"><!-- --></a>
586 <ul class="blockListLast"> 586 <ul class="blockListLast">
587 <li class="blockList"> 587 <li class="blockList">
588 <h4>${annotations(prop, '\n') + modifiers(prop) + linkable(prop.type())} <strong>${prop.name()}</strong></h4> 588 <h4>${modifiers(prop) + linkable(prop.type())} <strong>${prop.name()}</strong></h4>
589 <blockquote><pre>${annotations(prop, '\n')}</pre></blockquote>
589 <p>${prop.commentText()}</p> 590 <p>${prop.commentText()}</p>
590 </li> 591 </li>
591 </ul> 592 </ul>
592 <% } %> 593 <% } %>
593 </li> 594 </li>
644 <h3>Method Detail</h3> 645 <h3>Method Detail</h3>
645 <% visibleMethods.each { method -> %> 646 <% visibleMethods.each { method -> %>
646 <a name="${nameFromParams(method)}"><!-- --></a> 647 <a name="${nameFromParams(method)}"><!-- --></a>
647 <ul class="blockListLast"> 648 <ul class="blockListLast">
648 <li class="blockList"> 649 <li class="blockList">
649 <h4>${annotations(method, '\n') + modifiers(method)}${linkable(method.returnType())} <strong>${method.name()}</strong>(${paramsOf(method, false)})</h4> 650 <h4>${modifiers(method)}${linkable(method.returnType())} <strong>${method.name()}</strong>(${paramsOf(method, false)})</h4>
651 <blockquote><pre>${annotations(method, '\n')}</pre></blockquote>
650 <p>${method.commentText()}</p> 652 <p>${method.commentText()}</p>
651 </li> 653 </li>
652 </ul> 654 </ul>
653 <% } %> 655 <% } %>
654 </li> 656 </li>