Class GroovydocManager

java.lang.Object
org.apache.groovy.parser.antlr4.GroovydocManager

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
  • Field Details

    • DOC_COMMENT

      public static final String DOC_COMMENT
      Metadata key for the doc comment stored on a node. Same string as GroovydocHolder.DOC_COMMENT.
      See Also:
  • Constructor Details

    • GroovydocManager

      public GroovydocManager(boolean groovydocEnabled, boolean runtimeGroovydocEnabled)
      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.
      Parameters:
      groovydocEnabled - whether to keep the comment as node metadata
      runtimeGroovydocEnabled - whether to attach a runtime Groovydoc annotation
  • Method Details