
org.codehaus.groovy.tools.groovydoc.gstringTemplates.packageLevel.package-summary.html Maven / Gradle / Ivy
<%
def isVisible = { it.isPublic() || (it.isProtected() && props.protectedScope == 'true') || (!it.isProtected() && !it.isPrivate() && props.packageScope == 'true') || props.privateScope == 'true' }
def title = packageDoc.nameWithDots() + (props.windowTitle ? " ($props.windowTitle)" : "")
// TODO enable errors(), enums() etc in SimpleGroovyPackageDoc then replace closures below
def classTypes = [
"Interface" : { it.isInterface() },
"Class" : { it.isClass() && !it.parentClasses*.qualifiedTypeName().contains('java.lang.Throwable') },
"Enum" : { it.isEnum() },
"Exception" : { it.isClass() && it.parentClasses*.qualifiedTypeName().contains('java.lang.Exception') },
"Error" : { it.isClass() && it.parentClasses*.qualifiedTypeName().contains('java.lang.Error') },
"Annotation Type" : { it.isAnnotationType() },
"Script" : { it.isScript() }
]
%>
${title}
Overview
Package
Class
Deprecated
Index
Help
<% if (props.header) { %>${props.header}<% } %>
PREV
NEXT
FRAMES
NO FRAMES
Package ${packageDoc.nameWithDots()}
${packageDoc.description()}
<%
classTypes.each{ k, v ->
if (packageDoc.allClasses().any{ isVisible(it) && v(it) }) {
%>
${k} Summary
<% for (classDoc in packageDoc.allClasses().findAll{ isVisible(it) && v(it) }) { %>
${classDoc.name()}
${classDoc.firstSentenceCommentText()}
<% } %>
<% } %>
<% } %>
${props['footer']?:""}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy