public class SimpleGroovyRootDoc
extends SimpleGroovyDoc
implements GroovyRootDoc
Default GroovyRootDoc implementation used to collect packages, classes, and lookup caches.
| Fields inherited from class | Fields |
|---|---|
class SimpleGroovyDoc |
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF |
| Constructor and description |
|---|
SimpleGroovyRootDoc(String name)Creates a root documentation model with the supplied name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public GroovyClassDoc |
classNamed(GroovyClassDoc groovyClassDoc, String name)Resolves a class name from the perspective of another documented class.
|
|
public GroovyClassDoc |
classNamedExact(String name)Resolves a class using its exact internal name. |
|
public GroovyClassDoc[] |
classes()Returns all classes known to this documentation run.
|
|
public String |
description()Returns the root description text. |
|
public Map<String, GroovyClassDoc> |
getResolvedClasses()Returns the classes that have already been resolved for the current documentation run.
|
|
public String[] |
getSourcepaths()Returns the source paths used to build this root document. |
|
public Map<String, GroovyClassDoc> |
getVisibleClasses(List importedClassesAndPackages)Returns the classes visible from a set of imports.
|
|
public String[] |
options()Returns the effective tool options associated with this documentation run.
|
|
public GroovyPackageDoc |
packageNamed(String packageName)Resolves a package by name.
|
|
public void |
printError(String arg0)Reports an error message.
|
|
public void |
printNotice(String arg0)Reports an informational notice.
|
|
public void |
printWarning(String arg0)Reports a warning message.
|
|
public void |
put(String packageName, GroovyPackageDoc packageDoc)Adds a package to this root document. |
|
public void |
putAllClasses(Map<String, GroovyClassDoc> classes)Adds all supplied classes to this root document. |
|
public void |
resolve()Resolves deferred type references across all collected classes. |
|
public void |
setDescription(String description)Sets the root description text. |
|
public void |
setSourcepaths(String[] sourcepaths)Stores the source paths used to build this root document. |
|
public GroovyClassDoc[] |
specifiedClasses()Returns the classes explicitly specified as documentation targets.
|
|
public GroovyPackageDoc[] |
specifiedPackages()Returns the packages explicitly specified as documentation targets.
|
|
public String |
summary()Returns the first-sentence summary derived from description(). |
| Methods inherited from class | Name |
|---|---|
class SimpleGroovyDoc |
calculateFirstSentence, commentText, compareTo, firstSentenceCommentText, getRawCommentText, getTypeDescription, getTypeSourceDescription, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isHidden, isIncluded, isInterface, isMarkdown, isMethod, isOrdinaryClass, isRecord, isScript, isTrait, name, setCommentText, setDeprecated, setFirstSentenceCommentText, setHidden, setMarkdown, setRawCommentText, setScript, setTokenType, tags, toString, tokenType |
Creates a root documentation model with the supplied name.
name - the root document nameResolves a class name from the perspective of another documented class.
groovyClassDoc - the class providing the lookup contextname - the class name to resolvenull if it cannot be resolvedResolves a class using its exact internal name.
name - the exact class name to resolvenull if none existsReturns all classes known to this documentation run.
Returns the root description text.
Returns the classes that have already been resolved for the current documentation run.
Returns the source paths used to build this root document.
Returns the classes visible from a set of imports.
importedClassesAndPackages - the imported classes and packages to evaluateReturns the effective tool options associated with this documentation run.
Resolves a package by name.
arg0 - the package name to resolvenull if none existsReports an error message.
arg0 - the error messageReports an informational notice.
arg0 - the notice messageReports a warning message.
arg0 - the warning messageAdds a package to this root document.
packageName - the package name keypackageDoc - the package documentation objectAdds all supplied classes to this root document.
classes - the classes to addResolves deferred type references across all collected classes.
Sets the root description text.
description - the root descriptionStores the source paths used to build this root document.
sourcepaths - the source paths to retainReturns the classes explicitly specified as documentation targets.
Returns the packages explicitly specified as documentation targets.
Returns the first-sentence summary derived from description().
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.