public class GroovydocManager
extends Object
A utilities for managing groovydoc, e.g. 1) extracting groovydoc from groovy AST; 2) TODO extracting tags from groovydoc; 3) attach groovydoc to AST node as metadata
| Modifiers | Name | Description |
|---|---|---|
static String |
DOC_COMMENT |
Metadata key for the doc comment stored on a node. |
| Constructor and description |
|---|
GroovydocManager(boolean groovydocEnabled, boolean runtimeGroovydocEnabled)Stores which groovydoc attachments are active. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
handle(ASTNode node, GroovyParserRuleContext ctx)Attach doc comment to member node as meta data |
Metadata key for the doc comment stored on a node. Same string as
GroovydocHolder.DOC_COMMENT.
Stores which groovydoc attachments are active. When
groovydocEnabled is true, a doc comment is stored as node
metadata. When runtimeGroovydocEnabled is true, a comment
that begins with the runtime prefix (a block-comment opener plus
@) is also attached as a Groovydoc annotation.
groovydocEnabled - whether to keep the comment as node metadataruntimeGroovydocEnabled - whether to attach a runtime
Groovydoc annotationAttach doc comment to member node as meta data
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.