public class GroovyDocParser
extends Object
implements GroovyDocParserI
Parses Groovy and Java source files and builds GroovyClassDoc maps. Groovy sources are processed via the Groovy compiler AST (GroovydocVisitor); Java sources via JavaParser (GroovydocJavaVisitor).
| Constructor and description |
|---|
GroovyDocParser(List<LinkArgument> links, Properties properties)Creates a parser with a default com.github.javaparser.JavaParser instance. |
GroovyDocParser(com.github.javaparser.JavaParser javaParser, List<LinkArgument> links, Properties properties)Creates a parser with the supplied com.github.javaparser.JavaParser instance. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Map<String, GroovyClassDoc> |
getClassDocsFromSingleSource(String packagePath, String file, String src)Parses one source unit and returns the classes discovered in it.
|
Creates a parser with a default com.github.javaparser.JavaParser instance.
Creates a parser with the supplied com.github.javaparser.JavaParser instance.
Parses one source unit and returns the classes discovered in it.
packagePath - the package path associated with the sourcefile - the source file namesrc - the source text to parseCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.