All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.groovy.tools.groovydoc.gstringTemplates.packageLevel.package-frame.html Maven / Gradle / Ivy

There is a newer version: 3.0.21
Show newest version




    ${packageDoc.nameWithDots()}
    <%
    // TODO enable errors(), enums() etc in SimpleGroovyPackageDoc then replace closures below
    def classTypes = [
    "Interface" : { it.isInterface() },
    "Trait" : { it.isTrait() },
    "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() }
    ]
    def pluralize = { name -> name + (name.endsWith("s") ? "es" : "s") }
    %>
    
    

    
    
    





<%
def isVisible = { it.isPublic() || (it.isProtected() && props.protectedScope == 'true') || (!it.isProtected() && !it.isPrivate() && props.packageScope == 'true') || props.privateScope == 'true' }
classTypes.each { k, v ->
if (packageDoc.allClasses().any{ isVisible(it) && v(it) }) {
%>

${pluralize(k)}

<% } %> <% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy