Package org.apache.groovy.parser.antlr4
Class GroovydocManager
java.lang.Object
org.apache.groovy.parser.antlr4.GroovydocManager
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMetadata key for the doc comment stored on a node. -
Constructor Summary
ConstructorsConstructorDescriptionGroovydocManager(boolean groovydocEnabled, boolean runtimeGroovydocEnabled) Stores which groovydoc attachments are active. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ASTNode node, GroovyParser.GroovyParserRuleContext ctx) Attach doc comment to member node as meta data
-
Field Details
-
DOC_COMMENT
Metadata key for the doc comment stored on a node. Same string asGroovydocHolder.DOC_COMMENT.- See Also:
-
-
Constructor Details
-
GroovydocManager
public GroovydocManager(boolean groovydocEnabled, boolean runtimeGroovydocEnabled) Stores which groovydoc attachments are active. WhengroovydocEnabledis true, a doc comment is stored as node metadata. WhenruntimeGroovydocEnabledis true, a comment that begins with the runtime prefix (a block-comment opener plus@) is also attached as aGroovydocannotation.- Parameters:
groovydocEnabled- whether to keep the comment as node metadataruntimeGroovydocEnabled- whether to attach a runtimeGroovydocannotation
-
-
Method Details
-
handle
Attach doc comment to member node as meta data
-