Class GroovyRootDocBuilder
java.lang.Object
org.codehaus.groovy.tools.groovydoc.GroovyRootDocBuilder
Builds a
SimpleGroovyRootDoc from source files by dispatching each file to either the
Groovy AST visitor or the Java parser.-
Constructor Summary
ConstructorsConstructorDescriptionGroovyRootDocBuilder(String[] sourcepaths, List<LinkArgument> links, Properties properties) Creates a builder for the given source paths, link arguments, and generation properties.GroovyRootDocBuilder(GroovyDocTool tool, String[] sourcepaths, List<LinkArgument> links, Properties properties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses all given source files and populates the root doc.intReturns the number of source files that failed to parse.Resolves inter-class references and returns the completed root doc.
-
Constructor Details
-
GroovyRootDocBuilder
@Deprecated public GroovyRootDocBuilder(GroovyDocTool tool, String[] sourcepaths, List<LinkArgument> links, Properties properties) Deprecated.Thetoolparameter is unused; useGroovyRootDocBuilder(String[], List, Properties)instead. -
GroovyRootDocBuilder
Creates a builder for the given source paths, link arguments, and generation properties.
-
-
Method Details
-
buildTree
Parses all given source files and populates the root doc.- Parameters:
filenames- source file paths to process- Throws:
IOException- if a file cannot be read
-
getErrorCount
public int getErrorCount()Returns the number of source files that failed to parse.- Since:
- 6.0.0
-
getRootDoc
Resolves inter-class references and returns the completed root doc.
-
toolparameter is unused; useGroovyRootDocBuilder(String[], List, Properties)instead.