public class GroovyDocTool
extends Object
Coordinates source parsing and template-driven rendering for GroovyDoc generation.
| Modifiers | Name | Description |
|---|---|---|
protected Properties |
properties |
Rendering properties shared with the parser and template engine. |
| Constructor and description |
|---|
GroovyDocTool(String[] sourcepaths)Constructor for use by people who only want to interact with the Groovy Doclet Tree (rootDoc) |
GroovyDocTool(ResourceManager resourceManager, String[] sourcepaths, String classTemplate)Creates a GroovyDocTool with a resource manager, source paths, and a single class-level template. |
GroovyDocTool(ResourceManager resourceManager, String[] sourcepaths, String[] docTemplates, String[] packageTemplates, String[] classTemplates, List<LinkArgument> links, String javaVersion, Properties properties)Constructs a GroovyDocTool instance with the specified parameters. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
add(List<String> filenames)Adds source files to the documentation set. |
|
public int |
getErrorCount()
|
|
public GroovyRootDoc |
getRootDoc()Returns the root documentation object built from all added source files. |
|
public void |
renderToOutput(OutputTool output, String destdir)Renders the collected documentation to the given output using the configured templates. |
Rendering properties shared with the parser and template engine.
Constructor for use by people who only want to interact with the Groovy Doclet Tree (rootDoc)
sourcepaths - where the sources to be added can be foundCreates a GroovyDocTool with a resource manager, source paths, and a single class-level template.
Constructs a GroovyDocTool instance with the specified parameters.
resourceManager - the resource manager for handling resources, or null if not requiredsourcepaths - the paths to the source files to be processeddocTemplates - the templates for generating documentationpackageTemplates - the templates for generating package-level documentationclassTemplates - the templates for generating class-level documentationlinks - a list of link arguments for external referencesjavaVersion - the Java version to be used for parsing and processing Java source filesproperties - additional properties to be used when generating the groovydocAdds source files to the documentation set.
filenames - relative source file paths to process
Returns the root documentation object built from all added source files.
Renders the collected documentation to the given output using the configured templates.
output - the output destinationdestdir - the destination directory pathCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.